haikuwebkit/Source/WTF/wtf/SetForScope.h

73 lines
2.5 KiB
C
Raw Permalink Normal View History

/*
* Copyright (C) 2011 Google Inc. All rights reserved.
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
* Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
#pragma once
Make WTF public headers use fully-qualified include paths and remove ForwardingHeaders/wtf https://bugs.webkit.org/show_bug.cgi?id=80363 Reviewed by Mark Rowe. Source/JavaScriptCore: Historically WTF has been part of JavaScriptCore, and on Mac and Windows its headers have appeared as part of the "private" headers exported by JavaScriptCore. All of the WTF headers there are "flattened" into a single private headers directory, and WebCore, WebKit and WebKit2 have used "ForwardingHeaders" to re-map fully-qualified <wtf/text/Foo.h> includes to simple <JavaScriptCore/Foo.h> includes. However, very soon, we are moving the WTF source code out of JavaScriptCore into its own directory and project. As part of such, the WTF headers will no longer be part of the JavaScriptCore private interfaces. In preparation for that, this change makes both the Mac and Win builds export WTF headers in a non-flattened manner. On Mac, that means into usr/local/include/wtf (and subdirectories), on Windows for now that means JavaScriptCore/wtf (and subdirectories). There are 5 parts to this change. 1. Updates the JavaScriptCore XCode and VCProj files to actually install these headers (and header directories) into the appropriate places in the build directory. 2. Updates JavaScriptCore.xcodeproj to look for these WTF headers in this install location (WebCore, WebKit, etc. had already been taught to look in previous patches). 3. Fixes all JavaScriptCore source files, and WTF headers to include WTF headers using fully qualified paths. 4. Stops the Mac and Win builds from installing these WTF headers in their old "flattened" location. 5. Removes WebCore and WebKit ForwardingHeaders/wtf directories now that the flattened headers no longer exist. Unfortunately we see no way to do this change in smaller parts, since all of these steps are interdependant. It is possible there are internal Apple projects which depend on JavaScriptCore/Foo.h working for WTF headers, those will have to be updated to use <wtf/Foo.h> after this change. I've discussed this proposed change at length with Mark Rowe, and my understanding is they are ready for (and interested in) this change happening. * API/tests/JSNode.c: * API/tests/JSNodeList.c: * Configurations/Base.xcconfig: * JavaScriptCore.vcproj/JavaScriptCore/copy-files.cmd: * JavaScriptCore.xcodeproj/project.pbxproj: * assembler/MacroAssemblerCodeRef.h: * bytecompiler/BytecodeGenerator.h: * dfg/DFGOperations.cpp: * heap/GCAssertions.h: * heap/HandleHeap.h: * heap/HandleStack.h: * heap/MarkedSpace.h: * heap/PassWeak.h: * heap/Strong.h: * heap/Weak.h: * jit/HostCallReturnValue.cpp: * jit/JIT.cpp: * jit/JITStubs.cpp: * jit/ThunkGenerators.cpp: * parser/Lexer.cpp: * runtime/Completion.cpp: * runtime/Executable.cpp: * runtime/Identifier.h: * runtime/InitializeThreading.cpp: * runtime/JSDateMath.cpp: * runtime/JSGlobalObjectFunctions.cpp: * runtime/JSStringBuilder.h: * runtime/JSVariableObject.h: * runtime/NumberPrototype.cpp: * runtime/WriteBarrier.h: * tools/CodeProfile.cpp: * tools/TieredMMapArray.h: * wtf/AVLTree.h: * wtf/Alignment.h: * wtf/AlwaysInline.h: * wtf/ArrayBufferView.h: * wtf/Assertions.h: * wtf/Atomics.h: * wtf/Bitmap.h: * wtf/BoundsCheckedPointer.h: * wtf/CheckedArithmetic.h: * wtf/Deque.h: * wtf/ExportMacros.h: * wtf/FastAllocBase.h: * wtf/FastMalloc.h: * wtf/Float32Array.h: * wtf/Float64Array.h: * wtf/Functional.h: * wtf/HashCountedSet.h: * wtf/HashFunctions.h: * wtf/HashMap.h: * wtf/HashSet.h: * wtf/HashTable.h: * wtf/HashTraits.h: * wtf/Int16Array.h: * wtf/Int32Array.h: * wtf/Int8Array.h: * wtf/IntegralTypedArrayBase.h: * wtf/ListHashSet.h: * wtf/MainThread.h: * wtf/MetaAllocator.h: * wtf/Noncopyable.h: * wtf/OwnArrayPtr.h: * wtf/OwnPtr.h: * wtf/PackedIntVector.h: * wtf/ParallelJobs.h: * wtf/PassOwnArrayPtr.h: * wtf/PassOwnPtr.h: * wtf/PassRefPtr.h: * wtf/PassTraits.h: * wtf/Platform.h: * wtf/PossiblyNull.h: * wtf/RefCounted.h: * wtf/RefCountedLeakCounter.h: * wtf/RefPtr.h: * wtf/RetainPtr.h: * wtf/SimpleStats.h: * wtf/Spectrum.h: * wtf/StdLibExtras.h: * wtf/TCPageMap.h: * wtf/TemporaryChange.h: * wtf/ThreadSafeRefCounted.h: * wtf/Threading.h: * wtf/ThreadingPrimitives.h: * wtf/TypeTraits.h: * wtf/TypedArrayBase.h: * wtf/Uint16Array.h: * wtf/Uint32Array.h: * wtf/Uint8Array.h: * wtf/Uint8ClampedArray.h: * wtf/UnusedParam.h: * wtf/Vector.h: * wtf/VectorTraits.h: * wtf/dtoa/double-conversion.h: * wtf/dtoa/utils.h: * wtf/gobject/GRefPtr.h: * wtf/gobject/GlibUtilities.h: * wtf/text/AtomicString.h: * wtf/text/AtomicStringImpl.h: * wtf/text/CString.h: * wtf/text/StringConcatenate.h: * wtf/text/StringHash.h: * wtf/text/WTFString.h: * wtf/unicode/CharacterNames.h: * wtf/unicode/UTF8.h: * wtf/unicode/glib/UnicodeGLib.h: * wtf/unicode/qt4/UnicodeQt4.h: * wtf/unicode/wince/UnicodeWinCE.h: * wtf/url/api/ParsedURL.h: * wtf/url/api/URLString.h: * wtf/wince/FastMallocWinCE.h: * yarr/YarrJIT.cpp: Source/WebCore: ForwardingHeaders/wtf is no longer needed (or functional) now that JavaScriptCore no longer includes the WTF headers as private headers. * DerivedSources.make: * ForwardingHeaders/wtf/ASCIICType.h: Removed. * ForwardingHeaders/wtf/AVLTree.h: Removed. * ForwardingHeaders/wtf/Alignment.h: Removed. * ForwardingHeaders/wtf/AlwaysInline.h: Removed. * ForwardingHeaders/wtf/ArrayBuffer.h: Removed. * ForwardingHeaders/wtf/ArrayBufferView.h: Removed. * ForwardingHeaders/wtf/Assertions.h: Removed. * ForwardingHeaders/wtf/Atomics.h: Removed. * ForwardingHeaders/wtf/Bitmap.h: Removed. * ForwardingHeaders/wtf/BloomFilter.h: Removed. * ForwardingHeaders/wtf/BumpPointerAllocator.h: Removed. * ForwardingHeaders/wtf/ByteArray.h: Removed. * ForwardingHeaders/wtf/CheckedArithmetic.h: Removed. * ForwardingHeaders/wtf/CheckedBoolean.h: Removed. * ForwardingHeaders/wtf/Compiler.h: Removed. * ForwardingHeaders/wtf/Complex.h: Removed. * ForwardingHeaders/wtf/CryptographicallyRandomNumber.h: Removed. * ForwardingHeaders/wtf/CurrentTime.h: Removed. * ForwardingHeaders/wtf/DataLog.h: Removed. * ForwardingHeaders/wtf/DateInstanceCache.h: Removed. * ForwardingHeaders/wtf/DateMath.h: Removed. * ForwardingHeaders/wtf/DecimalNumber.h: Removed. * ForwardingHeaders/wtf/Decoder.h: Removed. * ForwardingHeaders/wtf/Deque.h: Removed. * ForwardingHeaders/wtf/DisallowCType.h: Removed. * ForwardingHeaders/wtf/DoublyLinkedList.h: Removed. * ForwardingHeaders/wtf/DynamicAnnotations.h: Removed. * ForwardingHeaders/wtf/Encoder.h: Removed. * ForwardingHeaders/wtf/ExportMacros.h: Removed. * ForwardingHeaders/wtf/FastAllocBase.h: Removed. * ForwardingHeaders/wtf/FastMalloc.h: Removed. * ForwardingHeaders/wtf/FixedArray.h: Removed. * ForwardingHeaders/wtf/Float32Array.h: Removed. * ForwardingHeaders/wtf/Float64Array.h: Removed. * ForwardingHeaders/wtf/Forward.h: Removed. * ForwardingHeaders/wtf/Functional.h: Removed. * ForwardingHeaders/wtf/GetPtr.h: Removed. * ForwardingHeaders/wtf/HashCountedSet.h: Removed. * ForwardingHeaders/wtf/HashFunctions.h: Removed. * ForwardingHeaders/wtf/HashMap.h: Removed. * ForwardingHeaders/wtf/HashSet.h: Removed. * ForwardingHeaders/wtf/HashTable.h: Removed. * ForwardingHeaders/wtf/HashTraits.h: Removed. * ForwardingHeaders/wtf/HexNumber.h: Removed. * ForwardingHeaders/wtf/Int16Array.h: Removed. * ForwardingHeaders/wtf/Int32Array.h: Removed. * ForwardingHeaders/wtf/Int8Array.h: Removed. * ForwardingHeaders/wtf/ListHashSet.h: Removed. * ForwardingHeaders/wtf/ListRefPtr.h: Removed. * ForwardingHeaders/wtf/Locker.h: Removed. * ForwardingHeaders/wtf/MD5.h: Removed. * ForwardingHeaders/wtf/MainThread.h: Removed. * ForwardingHeaders/wtf/MathExtras.h: Removed. * ForwardingHeaders/wtf/MessageQueue.h: Removed. * ForwardingHeaders/wtf/MetaAllocator.h: Removed. * ForwardingHeaders/wtf/MetaAllocatorHandle.h: Removed. * ForwardingHeaders/wtf/NonCopyingSort.h: Removed. * ForwardingHeaders/wtf/Noncopyable.h: Removed. * ForwardingHeaders/wtf/NotFound.h: Removed. * ForwardingHeaders/wtf/OSAllocator.h: Removed. * ForwardingHeaders/wtf/OwnArrayPtr.h: Removed. * ForwardingHeaders/wtf/OwnPtr.h: Removed. * ForwardingHeaders/wtf/OwnPtrCommon.h: Removed. * ForwardingHeaders/wtf/PageAllocation.h: Removed. * ForwardingHeaders/wtf/PageAllocationAligned.h: Removed. * ForwardingHeaders/wtf/PageBlock.h: Removed. * ForwardingHeaders/wtf/PageReservation.h: Removed. * ForwardingHeaders/wtf/ParallelJobs.h: Removed. * ForwardingHeaders/wtf/PassOwnArrayPtr.h: Removed. * ForwardingHeaders/wtf/PassOwnPtr.h: Removed. * ForwardingHeaders/wtf/PassRefPtr.h: Removed. * ForwardingHeaders/wtf/Platform.h: Removed. * ForwardingHeaders/wtf/PossiblyNull.h: Removed. * ForwardingHeaders/wtf/RandomNumber.h: Removed. * ForwardingHeaders/wtf/RedBlackTree.h: Removed. * ForwardingHeaders/wtf/RefCounted.h: Removed. * ForwardingHeaders/wtf/RefCountedLeakCounter.h: Removed. * ForwardingHeaders/wtf/RefPtr.h: Removed. * ForwardingHeaders/wtf/RetainPtr.h: Removed. * ForwardingHeaders/wtf/SHA1.h: Removed. * ForwardingHeaders/wtf/SegmentedVector.h: Removed. * ForwardingHeaders/wtf/SimpleStats.h: Removed. * ForwardingHeaders/wtf/Spectrum.h: Removed. * ForwardingHeaders/wtf/StackBounds.h: Removed. * ForwardingHeaders/wtf/StaticConstructors.h: Removed. * ForwardingHeaders/wtf/StdLibExtras.h: Removed. * ForwardingHeaders/wtf/StringExtras.h: Removed. * ForwardingHeaders/wtf/StringHasher.h: Removed. * ForwardingHeaders/wtf/TemporaryChange.h: Removed. * ForwardingHeaders/wtf/ThreadRestrictionVerifier.h: Removed. * ForwardingHeaders/wtf/ThreadSafeRefCounted.h: Removed. * ForwardingHeaders/wtf/ThreadSpecific.h: Removed. * ForwardingHeaders/wtf/Threading.h: Removed. * ForwardingHeaders/wtf/ThreadingPrimitives.h: Removed. * ForwardingHeaders/wtf/TypeTraits.h: Removed. * ForwardingHeaders/wtf/Uint16Array.h: Removed. * ForwardingHeaders/wtf/Uint32Array.h: Removed. * ForwardingHeaders/wtf/Uint8Array.h: Removed. * ForwardingHeaders/wtf/Uint8ClampedArray.h: Removed. * ForwardingHeaders/wtf/UnusedParam.h: Removed. * ForwardingHeaders/wtf/VMTags.h: Removed. * ForwardingHeaders/wtf/ValueCheck.h: Removed. * ForwardingHeaders/wtf/Vector.h: Removed. * ForwardingHeaders/wtf/VectorTraits.h: Removed. * ForwardingHeaders/wtf/WTFThreadData.h: Removed. * ForwardingHeaders/wtf/dtoa.h: Removed. * ForwardingHeaders/wtf/dtoa/double-conversion.h: Removed. * ForwardingHeaders/wtf/text/ASCIIFastPath.h: Removed. * ForwardingHeaders/wtf/text/AtomicString.h: Removed. * ForwardingHeaders/wtf/text/AtomicStringHash.h: Removed. * ForwardingHeaders/wtf/text/AtomicStringImpl.h: Removed. * ForwardingHeaders/wtf/text/CString.h: Removed. * ForwardingHeaders/wtf/text/StringBuffer.h: Removed. * ForwardingHeaders/wtf/text/StringBuilder.h: Removed. * ForwardingHeaders/wtf/text/StringConcatenate.h: Removed. * ForwardingHeaders/wtf/text/StringHash.h: Removed. * ForwardingHeaders/wtf/text/StringImpl.h: Removed. * ForwardingHeaders/wtf/text/TextPosition.h: Removed. * ForwardingHeaders/wtf/text/WTFString.h: Removed. * ForwardingHeaders/wtf/unicode/CharacterNames.h: Removed. * ForwardingHeaders/wtf/unicode/Collator.h: Removed. * ForwardingHeaders/wtf/unicode/UTF8.h: Removed. * ForwardingHeaders/wtf/unicode/Unicode.h: Removed. * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Removed. * ForwardingHeaders/wtf/unicode/wince/UnicodeWince.h: Removed. * ForwardingHeaders/wtf/url/ParsedURL.h: Removed. Source/WebKit/mac: ForwardingHeaders/wtf is no longer necessary (or functional) now that JavaScriptCore no longer includes the WTF headers as private headers. * ForwardingHeaders/wtf/ASCIICType.h: Removed. * ForwardingHeaders/wtf/AlwaysInline.h: Removed. * ForwardingHeaders/wtf/Assertions.h: Removed. * ForwardingHeaders/wtf/Deque.h: Removed. * ForwardingHeaders/wtf/DisallowCType.h: Removed. * ForwardingHeaders/wtf/FastMalloc.h: Removed. * ForwardingHeaders/wtf/Forward.h: Removed. * ForwardingHeaders/wtf/GetPtr.h: Removed. * ForwardingHeaders/wtf/HashCountedSet.h: Removed. * ForwardingHeaders/wtf/HashMap.h: Removed. * ForwardingHeaders/wtf/HashSet.h: Removed. * ForwardingHeaders/wtf/HashTraits.h: Removed. * ForwardingHeaders/wtf/ListHashSet.h: Removed. * ForwardingHeaders/wtf/ListRefPtr.h: Removed. * ForwardingHeaders/wtf/Locker.h: Removed. * ForwardingHeaders/wtf/MathExtras.h: Removed. * ForwardingHeaders/wtf/Noncopyable.h: Removed. * ForwardingHeaders/wtf/OwnArrayPtr.h: Removed. * ForwardingHeaders/wtf/OwnPtr.h: Removed. * ForwardingHeaders/wtf/OwnPtrCommon.h: Removed. * ForwardingHeaders/wtf/PassOwnPtr.h: Removed. * ForwardingHeaders/wtf/PassRefPtr.h: Removed. * ForwardingHeaders/wtf/Platform.h: Removed. * ForwardingHeaders/wtf/RefCounted.h: Removed. * ForwardingHeaders/wtf/RefCountedLeakCounter.h: Removed. * ForwardingHeaders/wtf/RefPtr.h: Removed. * ForwardingHeaders/wtf/RetainPtr.h: Removed. * ForwardingHeaders/wtf/StdLibExtras.h: Removed. * ForwardingHeaders/wtf/TemporaryChange.h: Removed. * ForwardingHeaders/wtf/Threading.h: Removed. * ForwardingHeaders/wtf/UnusedParam.h: Removed. * ForwardingHeaders/wtf/VMTags.h: Removed. * ForwardingHeaders/wtf/ValueCheck.h: Removed. * ForwardingHeaders/wtf/Vector.h: Removed. * ForwardingHeaders/wtf/VectorTraits.h: Removed. * ForwardingHeaders/wtf/unicode/Unicode.h: Removed. * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Removed. Canonical link: https://commits.webkit.org/97650@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-03-07 08:50:54 +00:00
#include <wtf/Noncopyable.h>
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
#include <wtf/StdLibExtras.h>
namespace WTF {
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
// SetForScope<> is useful for setting a variable to a new value only within a
// particular scope. An SetForScope<> object changes a variable to its original
// value upon destruction, making it an alternative to writing "var = false;"
// or "var = oldVal;" at all of a block's exit points.
//
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
// This should be obvious, but note that an SetForScope<> instance should have a
// shorter lifetime than its scopedVariable, to prevent invalid memory writes
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
// when the SetForScope<> object is destroyed.
template<typename T>
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
class SetForScope {
[WTF][JSC] Make JSC and WTF aggressively-fast-malloced https://bugs.webkit.org/show_bug.cgi?id=200611 Reviewed by Saam Barati. Source/JavaScriptCore: This patch aggressively puts many classes into FastMalloc. In JSC side, we grep `std::make_unique` etc. to find potentially system-malloc-allocated classes. After this patch, all the JSC related allocations in JetStream2 cli is done from bmalloc. In the future, it would be nice that we add `WTF::makeUnique<T>` helper function and throw a compile error if `T` is not FastMalloc annotated[1]. Putting WebKit classes in FastMalloc has many benefits. 1. Simply, it is fast. 2. vmmap can tell the amount of memory used for WebKit. 3. bmalloc can isolate WebKit memory allocation from the rest of the world. This is useful since we can know more about what component is corrupting the memory from the memory corruption crash. [1]: https://bugs.webkit.org/show_bug.cgi?id=200620 * API/ObjCCallbackFunction.mm: * assembler/AbstractMacroAssembler.h: * b3/B3PhiChildren.h: * b3/air/AirAllocateRegistersAndStackAndGenerateCode.h: * b3/air/AirDisassembler.h: * bytecode/AccessCaseSnippetParams.h: * bytecode/CallVariant.h: * bytecode/DeferredSourceDump.h: * bytecode/ExecutionCounter.h: * bytecode/GetByIdStatus.h: * bytecode/GetByIdVariant.h: * bytecode/InByIdStatus.h: * bytecode/InByIdVariant.h: * bytecode/InstanceOfStatus.h: * bytecode/InstanceOfVariant.h: * bytecode/PutByIdStatus.h: * bytecode/PutByIdVariant.h: * bytecode/ValueProfile.h: * dfg/DFGAbstractInterpreter.h: * dfg/DFGByteCodeParser.cpp: (JSC::DFG::ByteCodeParser::newVariableAccessData): * dfg/DFGFlowIndexing.h: * dfg/DFGFlowMap.h: * dfg/DFGLiveCatchVariablePreservationPhase.cpp: (JSC::DFG::LiveCatchVariablePreservationPhase::newVariableAccessData): * dfg/DFGMaximalFlushInsertionPhase.cpp: (JSC::DFG::MaximalFlushInsertionPhase::newVariableAccessData): * dfg/DFGOSRExit.h: * dfg/DFGSpeculativeJIT.h: * dfg/DFGVariableAccessData.h: * disassembler/ARM64/A64DOpcode.h: * inspector/remote/socket/RemoteInspectorMessageParser.h: * inspector/remote/socket/RemoteInspectorSocket.h: * inspector/remote/socket/RemoteInspectorSocketEndpoint.h: * jit/PCToCodeOriginMap.h: * runtime/BasicBlockLocation.h: * runtime/DoublePredictionFuzzerAgent.h: * runtime/JSRunLoopTimer.h: * runtime/PromiseDeferredTimer.h: (JSC::PromiseDeferredTimer::create): PromiseDeferredTimer should be allocated as `Ref<>` instead of `std::unique_ptr` since it is inheriting ThreadSafeRefCounted<>. Holding such a class with std::unique_ptr could lead to potentially dangerous operations (like, someone holds it with Ref<> while it is deleted by std::unique_ptr<>). * runtime/RandomizingFuzzerAgent.h: * runtime/SymbolTable.h: * runtime/VM.cpp: (JSC::VM::VM): * runtime/VM.h: * tools/JSDollarVM.cpp: * tools/SigillCrashAnalyzer.cpp: * wasm/WasmFormat.h: * wasm/WasmMemory.cpp: * wasm/WasmSignature.h: * yarr/YarrJIT.h: Source/WebCore: Changed the accessor since we changed std::unique_ptr to Ref for this field. No behavior change. * bindings/js/WorkerScriptController.cpp: (WebCore::WorkerScriptController::addTimerSetNotification): (WebCore::WorkerScriptController::removeTimerSetNotification): Source/WTF: WTF has many data structures, in particular, containers. And these containers can be allocated like `std::make_unique<Container>()`. Without WTF_MAKE_FAST_ALLOCATED, this container itself is allocated from the system malloc. This patch attaches WTF_MAKE_FAST_ALLOCATED more aggressively not to allocate them from the system malloc. And we add some `final` to containers and classes that would be never inherited. * wtf/Assertions.cpp: * wtf/Atomics.h: * wtf/AutodrainedPool.h: * wtf/Bag.h: (WTF::Bag::Bag): Deleted. (WTF::Bag::~Bag): Deleted. (WTF::Bag::clear): Deleted. (WTF::Bag::add): Deleted. (WTF::Bag::iterator::iterator): Deleted. (WTF::Bag::iterator::operator! const): Deleted. (WTF::Bag::iterator::operator* const): Deleted. (WTF::Bag::iterator::operator++): Deleted. (WTF::Bag::iterator::operator== const): Deleted. (WTF::Bag::iterator::operator!= const): Deleted. (WTF::Bag::begin): Deleted. (WTF::Bag::begin const): Deleted. (WTF::Bag::end const): Deleted. (WTF::Bag::isEmpty const): Deleted. (WTF::Bag::unwrappedHead const): Deleted. * wtf/BitVector.h: (WTF::BitVector::BitVector): Deleted. (WTF::BitVector::~BitVector): Deleted. (WTF::BitVector::operator=): Deleted. (WTF::BitVector::size const): Deleted. (WTF::BitVector::ensureSize): Deleted. (WTF::BitVector::quickGet const): Deleted. (WTF::BitVector::quickSet): Deleted. (WTF::BitVector::quickClear): Deleted. (WTF::BitVector::get const): Deleted. (WTF::BitVector::contains const): Deleted. (WTF::BitVector::set): Deleted. (WTF::BitVector::add): Deleted. (WTF::BitVector::ensureSizeAndSet): Deleted. (WTF::BitVector::clear): Deleted. (WTF::BitVector::remove): Deleted. (WTF::BitVector::merge): Deleted. (WTF::BitVector::filter): Deleted. (WTF::BitVector::exclude): Deleted. (WTF::BitVector::bitCount const): Deleted. (WTF::BitVector::isEmpty const): Deleted. (WTF::BitVector::findBit const): Deleted. (WTF::BitVector::isEmptyValue const): Deleted. (WTF::BitVector::isDeletedValue const): Deleted. (WTF::BitVector::isEmptyOrDeletedValue const): Deleted. (WTF::BitVector::operator== const): Deleted. (WTF::BitVector::hash const): Deleted. (WTF::BitVector::iterator::iterator): Deleted. (WTF::BitVector::iterator::operator* const): Deleted. (WTF::BitVector::iterator::operator++): Deleted. (WTF::BitVector::iterator::isAtEnd const): Deleted. (WTF::BitVector::iterator::operator== const): Deleted. (WTF::BitVector::iterator::operator!= const): Deleted. (WTF::BitVector::begin const): Deleted. (WTF::BitVector::end const): Deleted. (WTF::BitVector::bitsInPointer): Deleted. (WTF::BitVector::maxInlineBits): Deleted. (WTF::BitVector::byteCount): Deleted. (WTF::BitVector::makeInlineBits): Deleted. (WTF::BitVector::cleanseInlineBits): Deleted. (WTF::BitVector::bitCount): Deleted. (WTF::BitVector::findBitFast const): Deleted. (WTF::BitVector::findBitSimple const): Deleted. (WTF::BitVector::OutOfLineBits::numBits const): Deleted. (WTF::BitVector::OutOfLineBits::numWords const): Deleted. (WTF::BitVector::OutOfLineBits::bits): Deleted. (WTF::BitVector::OutOfLineBits::bits const): Deleted. (WTF::BitVector::OutOfLineBits::OutOfLineBits): Deleted. (WTF::BitVector::isInline const): Deleted. (WTF::BitVector::outOfLineBits const): Deleted. (WTF::BitVector::outOfLineBits): Deleted. (WTF::BitVector::bits): Deleted. (WTF::BitVector::bits const): Deleted. * wtf/Bitmap.h: (WTF::Bitmap::size): Deleted. (WTF::Bitmap::iterator::iterator): Deleted. (WTF::Bitmap::iterator::operator* const): Deleted. (WTF::Bitmap::iterator::operator++): Deleted. (WTF::Bitmap::iterator::operator== const): Deleted. (WTF::Bitmap::iterator::operator!= const): Deleted. (WTF::Bitmap::begin const): Deleted. (WTF::Bitmap::end const): Deleted. * wtf/Box.h: * wtf/BumpPointerAllocator.h: * wtf/CPUTime.h: * wtf/CheckedBoolean.h: * wtf/CommaPrinter.h: (WTF::CommaPrinter::CommaPrinter): Deleted. (WTF::CommaPrinter::dump const): Deleted. (WTF::CommaPrinter::didPrint const): Deleted. * wtf/CompactPointerTuple.h: (WTF::CompactPointerTuple::encodeType): Deleted. (WTF::CompactPointerTuple::decodeType): Deleted. (WTF::CompactPointerTuple::CompactPointerTuple): Deleted. (WTF::CompactPointerTuple::pointer const): Deleted. (WTF::CompactPointerTuple::setPointer): Deleted. (WTF::CompactPointerTuple::type const): Deleted. (WTF::CompactPointerTuple::setType): Deleted. * wtf/CompilationThread.h: (WTF::CompilationScope::CompilationScope): Deleted. (WTF::CompilationScope::~CompilationScope): Deleted. (WTF::CompilationScope::leaveEarly): Deleted. * wtf/CompletionHandler.h: (WTF::CompletionHandler<Out): (WTF::Detail::CallableWrapper<CompletionHandler<Out): (WTF::CompletionHandlerCallingScope::CompletionHandlerCallingScope): Deleted. (WTF::CompletionHandlerCallingScope::~CompletionHandlerCallingScope): Deleted. (WTF::CompletionHandlerCallingScope::CompletionHandler<void): Deleted. * wtf/ConcurrentBuffer.h: (WTF::ConcurrentBuffer::ConcurrentBuffer): Deleted. (WTF::ConcurrentBuffer::~ConcurrentBuffer): Deleted. (WTF::ConcurrentBuffer::growExact): Deleted. (WTF::ConcurrentBuffer::grow): Deleted. (WTF::ConcurrentBuffer::array const): Deleted. (WTF::ConcurrentBuffer::operator[]): Deleted. (WTF::ConcurrentBuffer::operator[] const): Deleted. (WTF::ConcurrentBuffer::createArray): Deleted. * wtf/ConcurrentPtrHashSet.h: (WTF::ConcurrentPtrHashSet::contains): Deleted. (WTF::ConcurrentPtrHashSet::add): Deleted. (WTF::ConcurrentPtrHashSet::size const): Deleted. (WTF::ConcurrentPtrHashSet::Table::maxLoad const): Deleted. (WTF::ConcurrentPtrHashSet::hash): Deleted. (WTF::ConcurrentPtrHashSet::cast): Deleted. (WTF::ConcurrentPtrHashSet::containsImpl const): Deleted. (WTF::ConcurrentPtrHashSet::addImpl): Deleted. * wtf/ConcurrentVector.h: (WTF::ConcurrentVector::~ConcurrentVector): Deleted. (WTF::ConcurrentVector::size const): Deleted. (WTF::ConcurrentVector::isEmpty const): Deleted. (WTF::ConcurrentVector::at): Deleted. (WTF::ConcurrentVector::at const): Deleted. (WTF::ConcurrentVector::operator[]): Deleted. (WTF::ConcurrentVector::operator[] const): Deleted. (WTF::ConcurrentVector::first): Deleted. (WTF::ConcurrentVector::first const): Deleted. (WTF::ConcurrentVector::last): Deleted. (WTF::ConcurrentVector::last const): Deleted. (WTF::ConcurrentVector::takeLast): Deleted. (WTF::ConcurrentVector::append): Deleted. (WTF::ConcurrentVector::alloc): Deleted. (WTF::ConcurrentVector::removeLast): Deleted. (WTF::ConcurrentVector::grow): Deleted. (WTF::ConcurrentVector::begin): Deleted. (WTF::ConcurrentVector::end): Deleted. (WTF::ConcurrentVector::segmentExistsFor): Deleted. (WTF::ConcurrentVector::segmentFor): Deleted. (WTF::ConcurrentVector::subscriptFor): Deleted. (WTF::ConcurrentVector::ensureSegmentsFor): Deleted. (WTF::ConcurrentVector::ensureSegment): Deleted. (WTF::ConcurrentVector::allocateSegment): Deleted. * wtf/Condition.h: (WTF::Condition::waitUntil): Deleted. (WTF::Condition::waitFor): Deleted. (WTF::Condition::wait): Deleted. (WTF::Condition::notifyOne): Deleted. (WTF::Condition::notifyAll): Deleted. * wtf/CountingLock.h: (WTF::CountingLock::LockHooks::lockHook): Deleted. (WTF::CountingLock::LockHooks::unlockHook): Deleted. (WTF::CountingLock::LockHooks::parkHook): Deleted. (WTF::CountingLock::LockHooks::handoffHook): Deleted. (WTF::CountingLock::tryLock): Deleted. (WTF::CountingLock::lock): Deleted. (WTF::CountingLock::unlock): Deleted. (WTF::CountingLock::isHeld const): Deleted. (WTF::CountingLock::isLocked const): Deleted. (WTF::CountingLock::Count::operator bool const): Deleted. (WTF::CountingLock::Count::operator== const): Deleted. (WTF::CountingLock::Count::operator!= const): Deleted. (WTF::CountingLock::tryOptimisticRead): Deleted. (WTF::CountingLock::validate): Deleted. (WTF::CountingLock::doOptimizedRead): Deleted. (WTF::CountingLock::tryOptimisticFencelessRead): Deleted. (WTF::CountingLock::fencelessValidate): Deleted. (WTF::CountingLock::doOptimizedFencelessRead): Deleted. (WTF::CountingLock::getCount): Deleted. * wtf/CrossThreadQueue.h: * wtf/CrossThreadTask.h: * wtf/CryptographicallyRandomNumber.cpp: * wtf/DataMutex.h: * wtf/DateMath.h: * wtf/Deque.h: (WTF::Deque::size const): Deleted. (WTF::Deque::isEmpty const): Deleted. (WTF::Deque::begin): Deleted. (WTF::Deque::end): Deleted. (WTF::Deque::begin const): Deleted. (WTF::Deque::end const): Deleted. (WTF::Deque::rbegin): Deleted. (WTF::Deque::rend): Deleted. (WTF::Deque::rbegin const): Deleted. (WTF::Deque::rend const): Deleted. (WTF::Deque::first): Deleted. (WTF::Deque::first const): Deleted. (WTF::Deque::last): Deleted. (WTF::Deque::last const): Deleted. (WTF::Deque::append): Deleted. * wtf/Dominators.h: * wtf/DoublyLinkedList.h: * wtf/Expected.h: * wtf/FastBitVector.h: * wtf/FileMetadata.h: * wtf/FileSystem.h: * wtf/GraphNodeWorklist.h: * wtf/GregorianDateTime.h: (WTF::GregorianDateTime::GregorianDateTime): Deleted. (WTF::GregorianDateTime::year const): Deleted. (WTF::GregorianDateTime::month const): Deleted. (WTF::GregorianDateTime::yearDay const): Deleted. (WTF::GregorianDateTime::monthDay const): Deleted. (WTF::GregorianDateTime::weekDay const): Deleted. (WTF::GregorianDateTime::hour const): Deleted. (WTF::GregorianDateTime::minute const): Deleted. (WTF::GregorianDateTime::second const): Deleted. (WTF::GregorianDateTime::utcOffset const): Deleted. (WTF::GregorianDateTime::isDST const): Deleted. (WTF::GregorianDateTime::setYear): Deleted. (WTF::GregorianDateTime::setMonth): Deleted. (WTF::GregorianDateTime::setYearDay): Deleted. (WTF::GregorianDateTime::setMonthDay): Deleted. (WTF::GregorianDateTime::setWeekDay): Deleted. (WTF::GregorianDateTime::setHour): Deleted. (WTF::GregorianDateTime::setMinute): Deleted. (WTF::GregorianDateTime::setSecond): Deleted. (WTF::GregorianDateTime::setUtcOffset): Deleted. (WTF::GregorianDateTime::setIsDST): Deleted. (WTF::GregorianDateTime::operator tm const): Deleted. (WTF::GregorianDateTime::copyFrom): Deleted. * wtf/HashTable.h: * wtf/Hasher.h: * wtf/HexNumber.h: * wtf/Indenter.h: * wtf/IndexMap.h: * wtf/IndexSet.h: * wtf/IndexSparseSet.h: * wtf/IndexedContainerIterator.h: * wtf/Insertion.h: * wtf/IteratorAdaptors.h: * wtf/IteratorRange.h: * wtf/KeyValuePair.h: * wtf/ListHashSet.h: (WTF::ListHashSet::begin): Deleted. (WTF::ListHashSet::end): Deleted. (WTF::ListHashSet::begin const): Deleted. (WTF::ListHashSet::end const): Deleted. (WTF::ListHashSet::random): Deleted. (WTF::ListHashSet::random const): Deleted. (WTF::ListHashSet::rbegin): Deleted. (WTF::ListHashSet::rend): Deleted. (WTF::ListHashSet::rbegin const): Deleted. (WTF::ListHashSet::rend const): Deleted. * wtf/Liveness.h: * wtf/LocklessBag.h: (WTF::LocklessBag::LocklessBag): Deleted. (WTF::LocklessBag::add): Deleted. (WTF::LocklessBag::iterate): Deleted. (WTF::LocklessBag::consumeAll): Deleted. (WTF::LocklessBag::consumeAllWithNode): Deleted. (WTF::LocklessBag::~LocklessBag): Deleted. * wtf/LoggingHashID.h: * wtf/MD5.h: * wtf/MachSendRight.h: * wtf/MainThreadData.h: * wtf/Markable.h: * wtf/MediaTime.h: * wtf/MemoryPressureHandler.h: * wtf/MessageQueue.h: (WTF::MessageQueue::MessageQueue): Deleted. * wtf/MetaAllocator.h: * wtf/MonotonicTime.h: (WTF::MonotonicTime::MonotonicTime): Deleted. (WTF::MonotonicTime::fromRawSeconds): Deleted. (WTF::MonotonicTime::infinity): Deleted. (WTF::MonotonicTime::nan): Deleted. (WTF::MonotonicTime::secondsSinceEpoch const): Deleted. (WTF::MonotonicTime::approximateMonotonicTime const): Deleted. (WTF::MonotonicTime::operator bool const): Deleted. (WTF::MonotonicTime::operator+ const): Deleted. (WTF::MonotonicTime::operator- const): Deleted. (WTF::MonotonicTime::operator% const): Deleted. (WTF::MonotonicTime::operator+=): Deleted. (WTF::MonotonicTime::operator-=): Deleted. (WTF::MonotonicTime::operator== const): Deleted. (WTF::MonotonicTime::operator!= const): Deleted. (WTF::MonotonicTime::operator< const): Deleted. (WTF::MonotonicTime::operator> const): Deleted. (WTF::MonotonicTime::operator<= const): Deleted. (WTF::MonotonicTime::operator>= const): Deleted. (WTF::MonotonicTime::isolatedCopy const): Deleted. (WTF::MonotonicTime::encode const): Deleted. (WTF::MonotonicTime::decode): Deleted. * wtf/NaturalLoops.h: * wtf/NoLock.h: * wtf/OSAllocator.h: * wtf/OptionSet.h: * wtf/Optional.h: * wtf/OrderMaker.h: * wtf/Packed.h: (WTF::alignof): * wtf/PackedIntVector.h: (WTF::PackedIntVector::PackedIntVector): Deleted. (WTF::PackedIntVector::operator=): Deleted. (WTF::PackedIntVector::size const): Deleted. (WTF::PackedIntVector::ensureSize): Deleted. (WTF::PackedIntVector::resize): Deleted. (WTF::PackedIntVector::clearAll): Deleted. (WTF::PackedIntVector::get const): Deleted. (WTF::PackedIntVector::set): Deleted. (WTF::PackedIntVector::mask): Deleted. * wtf/PageBlock.h: * wtf/ParallelJobsOpenMP.h: * wtf/ParkingLot.h: * wtf/PriorityQueue.h: (WTF::PriorityQueue::size const): Deleted. (WTF::PriorityQueue::isEmpty const): Deleted. (WTF::PriorityQueue::enqueue): Deleted. (WTF::PriorityQueue::peek const): Deleted. (WTF::PriorityQueue::dequeue): Deleted. (WTF::PriorityQueue::decreaseKey): Deleted. (WTF::PriorityQueue::increaseKey): Deleted. (WTF::PriorityQueue::begin const): Deleted. (WTF::PriorityQueue::end const): Deleted. (WTF::PriorityQueue::isValidHeap const): Deleted. (WTF::PriorityQueue::parentOf): Deleted. (WTF::PriorityQueue::leftChildOf): Deleted. (WTF::PriorityQueue::rightChildOf): Deleted. (WTF::PriorityQueue::siftUp): Deleted. (WTF::PriorityQueue::siftDown): Deleted. * wtf/RandomDevice.h: * wtf/Range.h: * wtf/RangeSet.h: (WTF::RangeSet::RangeSet): Deleted. (WTF::RangeSet::~RangeSet): Deleted. (WTF::RangeSet::add): Deleted. (WTF::RangeSet::contains const): Deleted. (WTF::RangeSet::overlaps const): Deleted. (WTF::RangeSet::clear): Deleted. (WTF::RangeSet::dump const): Deleted. (WTF::RangeSet::dumpRaw const): Deleted. (WTF::RangeSet::begin const): Deleted. (WTF::RangeSet::end const): Deleted. (WTF::RangeSet::addAll): Deleted. (WTF::RangeSet::compact): Deleted. (WTF::RangeSet::overlapsNonEmpty): Deleted. (WTF::RangeSet::subsumesNonEmpty): Deleted. (WTF::RangeSet::findRange const): Deleted. * wtf/RecursableLambda.h: * wtf/RedBlackTree.h: (WTF::RedBlackTree::Node::successor const): Deleted. (WTF::RedBlackTree::Node::predecessor const): Deleted. (WTF::RedBlackTree::Node::successor): Deleted. (WTF::RedBlackTree::Node::predecessor): Deleted. (WTF::RedBlackTree::Node::reset): Deleted. (WTF::RedBlackTree::Node::parent const): Deleted. (WTF::RedBlackTree::Node::setParent): Deleted. (WTF::RedBlackTree::Node::left const): Deleted. (WTF::RedBlackTree::Node::setLeft): Deleted. (WTF::RedBlackTree::Node::right const): Deleted. (WTF::RedBlackTree::Node::setRight): Deleted. (WTF::RedBlackTree::Node::color const): Deleted. (WTF::RedBlackTree::Node::setColor): Deleted. (WTF::RedBlackTree::RedBlackTree): Deleted. (WTF::RedBlackTree::insert): Deleted. (WTF::RedBlackTree::remove): Deleted. (WTF::RedBlackTree::findExact const): Deleted. (WTF::RedBlackTree::findLeastGreaterThanOrEqual const): Deleted. (WTF::RedBlackTree::findGreatestLessThanOrEqual const): Deleted. (WTF::RedBlackTree::first const): Deleted. (WTF::RedBlackTree::last const): Deleted. (WTF::RedBlackTree::size): Deleted. (WTF::RedBlackTree::isEmpty): Deleted. (WTF::RedBlackTree::treeMinimum): Deleted. (WTF::RedBlackTree::treeMaximum): Deleted. (WTF::RedBlackTree::treeInsert): Deleted. (WTF::RedBlackTree::leftRotate): Deleted. (WTF::RedBlackTree::rightRotate): Deleted. (WTF::RedBlackTree::removeFixup): Deleted. * wtf/ResourceUsage.h: * wtf/RunLoop.cpp: * wtf/RunLoopTimer.h: * wtf/SHA1.h: * wtf/Seconds.h: (WTF::Seconds::Seconds): Deleted. (WTF::Seconds::value const): Deleted. (WTF::Seconds::minutes const): Deleted. (WTF::Seconds::seconds const): Deleted. (WTF::Seconds::milliseconds const): Deleted. (WTF::Seconds::microseconds const): Deleted. (WTF::Seconds::nanoseconds const): Deleted. (WTF::Seconds::minutesAs const): Deleted. (WTF::Seconds::secondsAs const): Deleted. (WTF::Seconds::millisecondsAs const): Deleted. (WTF::Seconds::microsecondsAs const): Deleted. (WTF::Seconds::nanosecondsAs const): Deleted. (WTF::Seconds::fromMinutes): Deleted. (WTF::Seconds::fromHours): Deleted. (WTF::Seconds::fromMilliseconds): Deleted. (WTF::Seconds::fromMicroseconds): Deleted. (WTF::Seconds::fromNanoseconds): Deleted. (WTF::Seconds::infinity): Deleted. (WTF::Seconds::nan): Deleted. (WTF::Seconds::operator bool const): Deleted. (WTF::Seconds::operator+ const): Deleted. (WTF::Seconds::operator- const): Deleted. (WTF::Seconds::operator* const): Deleted. (WTF::Seconds::operator/ const): Deleted. (WTF::Seconds::operator% const): Deleted. (WTF::Seconds::operator+=): Deleted. (WTF::Seconds::operator-=): Deleted. (WTF::Seconds::operator*=): Deleted. (WTF::Seconds::operator/=): Deleted. (WTF::Seconds::operator%=): Deleted. (WTF::Seconds::operator== const): Deleted. (WTF::Seconds::operator!= const): Deleted. (WTF::Seconds::operator< const): Deleted. (WTF::Seconds::operator> const): Deleted. (WTF::Seconds::operator<= const): Deleted. (WTF::Seconds::operator>= const): Deleted. (WTF::Seconds::isolatedCopy const): Deleted. (WTF::Seconds::encode const): Deleted. (WTF::Seconds::decode): Deleted. * wtf/SegmentedVector.h: (WTF::SegmentedVector::~SegmentedVector): Deleted. (WTF::SegmentedVector::size const): Deleted. (WTF::SegmentedVector::isEmpty const): Deleted. (WTF::SegmentedVector::at): Deleted. (WTF::SegmentedVector::at const): Deleted. (WTF::SegmentedVector::operator[]): Deleted. (WTF::SegmentedVector::operator[] const): Deleted. (WTF::SegmentedVector::first): Deleted. (WTF::SegmentedVector::first const): Deleted. (WTF::SegmentedVector::last): Deleted. (WTF::SegmentedVector::last const): Deleted. (WTF::SegmentedVector::takeLast): Deleted. (WTF::SegmentedVector::append): Deleted. (WTF::SegmentedVector::alloc): Deleted. (WTF::SegmentedVector::removeLast): Deleted. (WTF::SegmentedVector::grow): Deleted. (WTF::SegmentedVector::clear): Deleted. (WTF::SegmentedVector::begin): Deleted. (WTF::SegmentedVector::end): Deleted. (WTF::SegmentedVector::shrinkToFit): Deleted. (WTF::SegmentedVector::deleteAllSegments): Deleted. (WTF::SegmentedVector::segmentExistsFor): Deleted. (WTF::SegmentedVector::segmentFor): Deleted. (WTF::SegmentedVector::subscriptFor): Deleted. (WTF::SegmentedVector::ensureSegmentsFor): Deleted. (WTF::SegmentedVector::ensureSegment): Deleted. (WTF::SegmentedVector::allocateSegment): Deleted. * wtf/SetForScope.h: * wtf/SingleRootGraph.h: * wtf/SinglyLinkedList.h: * wtf/SmallPtrSet.h: * wtf/SpanningTree.h: * wtf/Spectrum.h: * wtf/StackBounds.h: * wtf/StackShot.h: * wtf/StackShotProfiler.h: * wtf/StackStats.h: * wtf/StackTrace.h: * wtf/StreamBuffer.h: * wtf/SynchronizedFixedQueue.h: (WTF::SynchronizedFixedQueue::create): Deleted. (WTF::SynchronizedFixedQueue::open): Deleted. (WTF::SynchronizedFixedQueue::close): Deleted. (WTF::SynchronizedFixedQueue::isOpen): Deleted. (WTF::SynchronizedFixedQueue::enqueue): Deleted. (WTF::SynchronizedFixedQueue::dequeue): Deleted. (WTF::SynchronizedFixedQueue::SynchronizedFixedQueue): Deleted. * wtf/SystemTracing.h: * wtf/ThreadGroup.h: (WTF::ThreadGroup::create): Deleted. (WTF::ThreadGroup::threads const): Deleted. (WTF::ThreadGroup::getLock): Deleted. (WTF::ThreadGroup::weakFromThis): Deleted. * wtf/ThreadSpecific.h: * wtf/ThreadingPrimitives.h: (WTF::Mutex::impl): Deleted. * wtf/TimeWithDynamicClockType.h: (WTF::TimeWithDynamicClockType::TimeWithDynamicClockType): Deleted. (WTF::TimeWithDynamicClockType::fromRawSeconds): Deleted. (WTF::TimeWithDynamicClockType::secondsSinceEpoch const): Deleted. (WTF::TimeWithDynamicClockType::clockType const): Deleted. (WTF::TimeWithDynamicClockType::withSameClockAndRawSeconds const): Deleted. (WTF::TimeWithDynamicClockType::operator bool const): Deleted. (WTF::TimeWithDynamicClockType::operator+ const): Deleted. (WTF::TimeWithDynamicClockType::operator- const): Deleted. (WTF::TimeWithDynamicClockType::operator+=): Deleted. (WTF::TimeWithDynamicClockType::operator-=): Deleted. (WTF::TimeWithDynamicClockType::operator== const): Deleted. (WTF::TimeWithDynamicClockType::operator!= const): Deleted. * wtf/TimingScope.h: * wtf/TinyLRUCache.h: * wtf/TinyPtrSet.h: * wtf/URLParser.cpp: * wtf/URLParser.h: * wtf/Unexpected.h: * wtf/Variant.h: * wtf/WTFSemaphore.h: (WTF::Semaphore::Semaphore): Deleted. (WTF::Semaphore::signal): Deleted. (WTF::Semaphore::waitUntil): Deleted. (WTF::Semaphore::waitFor): Deleted. (WTF::Semaphore::wait): Deleted. * wtf/WallTime.h: (WTF::WallTime::WallTime): Deleted. (WTF::WallTime::fromRawSeconds): Deleted. (WTF::WallTime::infinity): Deleted. (WTF::WallTime::nan): Deleted. (WTF::WallTime::secondsSinceEpoch const): Deleted. (WTF::WallTime::approximateWallTime const): Deleted. (WTF::WallTime::operator bool const): Deleted. (WTF::WallTime::operator+ const): Deleted. (WTF::WallTime::operator- const): Deleted. (WTF::WallTime::operator+=): Deleted. (WTF::WallTime::operator-=): Deleted. (WTF::WallTime::operator== const): Deleted. (WTF::WallTime::operator!= const): Deleted. (WTF::WallTime::operator< const): Deleted. (WTF::WallTime::operator> const): Deleted. (WTF::WallTime::operator<= const): Deleted. (WTF::WallTime::operator>= const): Deleted. (WTF::WallTime::isolatedCopy const): Deleted. * wtf/WeakHashSet.h: (WTF::WeakHashSet::WeakHashSetConstIterator::WeakHashSetConstIterator): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::get const): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::operator* const): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::operator-> const): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::operator++): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::skipEmptyBuckets): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::operator== const): Deleted. (WTF::WeakHashSet::WeakHashSetConstIterator::operator!= const): Deleted. (WTF::WeakHashSet::WeakHashSet): Deleted. (WTF::WeakHashSet::begin const): Deleted. (WTF::WeakHashSet::end const): Deleted. (WTF::WeakHashSet::add): Deleted. (WTF::WeakHashSet::remove): Deleted. (WTF::WeakHashSet::contains const): Deleted. (WTF::WeakHashSet::capacity const): Deleted. (WTF::WeakHashSet::computesEmpty const): Deleted. (WTF::WeakHashSet::hasNullReferences const): Deleted. (WTF::WeakHashSet::computeSize const): Deleted. (WTF::WeakHashSet::checkConsistency const): Deleted. * wtf/WeakRandom.h: (WTF::WeakRandom::WeakRandom): Deleted. (WTF::WeakRandom::setSeed): Deleted. (WTF::WeakRandom::seed const): Deleted. (WTF::WeakRandom::get): Deleted. (WTF::WeakRandom::getUint32): Deleted. (WTF::WeakRandom::lowOffset): Deleted. (WTF::WeakRandom::highOffset): Deleted. (WTF::WeakRandom::nextState): Deleted. (WTF::WeakRandom::generate): Deleted. (WTF::WeakRandom::advance): Deleted. * wtf/WordLock.h: (WTF::WordLock::lock): Deleted. (WTF::WordLock::unlock): Deleted. (WTF::WordLock::isHeld const): Deleted. (WTF::WordLock::isLocked const): Deleted. (WTF::WordLock::isFullyReset const): Deleted. * wtf/generic/MainThreadGeneric.cpp: * wtf/glib/GMutexLocker.h: * wtf/linux/CurrentProcessMemoryStatus.h: * wtf/posix/ThreadingPOSIX.cpp: (WTF::Semaphore::Semaphore): Deleted. (WTF::Semaphore::~Semaphore): Deleted. (WTF::Semaphore::wait): Deleted. (WTF::Semaphore::post): Deleted. * wtf/text/ASCIILiteral.h: (WTF::ASCIILiteral::operator const char* const): Deleted. (WTF::ASCIILiteral::fromLiteralUnsafe): Deleted. (WTF::ASCIILiteral::null): Deleted. (WTF::ASCIILiteral::characters const): Deleted. (WTF::ASCIILiteral::ASCIILiteral): Deleted. * wtf/text/AtomString.h: (WTF::AtomString::operator=): Deleted. (WTF::AtomString::isHashTableDeletedValue const): Deleted. (WTF::AtomString::existingHash const): Deleted. (WTF::AtomString::operator const String& const): Deleted. (WTF::AtomString::string const): Deleted. (WTF::AtomString::impl const): Deleted. (WTF::AtomString::is8Bit const): Deleted. (WTF::AtomString::characters8 const): Deleted. (WTF::AtomString::characters16 const): Deleted. (WTF::AtomString::length const): Deleted. (WTF::AtomString::operator[] const): Deleted. (WTF::AtomString::contains const): Deleted. (WTF::AtomString::containsIgnoringASCIICase const): Deleted. (WTF::AtomString::find const): Deleted. (WTF::AtomString::findIgnoringASCIICase const): Deleted. (WTF::AtomString::startsWith const): Deleted. (WTF::AtomString::startsWithIgnoringASCIICase const): Deleted. (WTF::AtomString::endsWith const): Deleted. (WTF::AtomString::endsWithIgnoringASCIICase const): Deleted. (WTF::AtomString::toInt const): Deleted. (WTF::AtomString::toDouble const): Deleted. (WTF::AtomString::toFloat const): Deleted. (WTF::AtomString::percentage const): Deleted. (WTF::AtomString::isNull const): Deleted. (WTF::AtomString::isEmpty const): Deleted. (WTF::AtomString::operator NSString * const): Deleted. * wtf/text/AtomStringImpl.h: (WTF::AtomStringImpl::lookUp): Deleted. (WTF::AtomStringImpl::add): Deleted. (WTF::AtomStringImpl::addWithStringTableProvider): Deleted. * wtf/text/CString.h: (WTF::CStringBuffer::data): Deleted. (WTF::CStringBuffer::length const): Deleted. (WTF::CStringBuffer::CStringBuffer): Deleted. (WTF::CStringBuffer::mutableData): Deleted. (WTF::CString::CString): Deleted. (WTF::CString::data const): Deleted. (WTF::CString::length const): Deleted. (WTF::CString::isNull const): Deleted. (WTF::CString::buffer const): Deleted. (WTF::CString::isHashTableDeletedValue const): Deleted. * wtf/text/ExternalStringImpl.h: (WTF::ExternalStringImpl::freeExternalBuffer): Deleted. * wtf/text/LineBreakIteratorPoolICU.h: * wtf/text/NullTextBreakIterator.h: * wtf/text/OrdinalNumber.h: * wtf/text/StringBuffer.h: * wtf/text/StringBuilder.h: * wtf/text/StringConcatenateNumbers.h: * wtf/text/StringHasher.h: * wtf/text/StringImpl.h: * wtf/text/StringView.cpp: * wtf/text/StringView.h: (WTF::StringView::left const): Deleted. (WTF::StringView::right const): Deleted. (WTF::StringView::underlyingStringIsValid const): Deleted. (WTF::StringView::setUnderlyingString): Deleted. * wtf/text/SymbolImpl.h: (WTF::SymbolImpl::StaticSymbolImpl::StaticSymbolImpl): Deleted. (WTF::SymbolImpl::StaticSymbolImpl::operator SymbolImpl&): Deleted. (WTF::PrivateSymbolImpl::PrivateSymbolImpl): Deleted. (WTF::RegisteredSymbolImpl::symbolRegistry const): Deleted. (WTF::RegisteredSymbolImpl::clearSymbolRegistry): Deleted. (WTF::RegisteredSymbolImpl::RegisteredSymbolImpl): Deleted. * wtf/text/SymbolRegistry.h: * wtf/text/TextBreakIterator.h: * wtf/text/TextPosition.h: * wtf/text/TextStream.h: * wtf/text/WTFString.h: (WTF::String::swap): Deleted. (WTF::String::adopt): Deleted. (WTF::String::isNull const): Deleted. (WTF::String::isEmpty const): Deleted. (WTF::String::impl const): Deleted. (WTF::String::releaseImpl): Deleted. (WTF::String::length const): Deleted. (WTF::String::characters8 const): Deleted. (WTF::String::characters16 const): Deleted. (WTF::String::is8Bit const): Deleted. (WTF::String::sizeInBytes const): Deleted. (WTF::String::operator[] const): Deleted. (WTF::String::find const): Deleted. (WTF::String::findIgnoringASCIICase const): Deleted. (WTF::String::reverseFind const): Deleted. (WTF::String::contains const): Deleted. (WTF::String::containsIgnoringASCIICase const): Deleted. (WTF::String::startsWith const): Deleted. (WTF::String::startsWithIgnoringASCIICase const): Deleted. (WTF::String::hasInfixStartingAt const): Deleted. (WTF::String::endsWith const): Deleted. (WTF::String::endsWithIgnoringASCIICase const): Deleted. (WTF::String::hasInfixEndingAt const): Deleted. (WTF::String::append): Deleted. (WTF::String::left const): Deleted. (WTF::String::right const): Deleted. (WTF::String::createUninitialized): Deleted. (WTF::String::fromUTF8WithLatin1Fallback): Deleted. (WTF::String::isAllASCII const): Deleted. (WTF::String::isAllLatin1 const): Deleted. (WTF::String::isSpecialCharacter const): Deleted. (WTF::String::isHashTableDeletedValue const): Deleted. (WTF::String::hash const): Deleted. (WTF::String::existingHash const): Deleted. * wtf/text/cf/TextBreakIteratorCF.h: * wtf/text/icu/TextBreakIteratorICU.h: * wtf/text/icu/UTextProviderLatin1.h: * wtf/threads/BinarySemaphore.h: (WTF::BinarySemaphore::waitFor): Deleted. (WTF::BinarySemaphore::wait): Deleted. * wtf/unicode/Collator.h: * wtf/win/GDIObject.h: * wtf/win/PathWalker.h: * wtf/win/Win32Handle.h: Canonical link: https://commits.webkit.org/214396@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-12 20:57:15 +00:00
WTF_MAKE_FAST_ALLOCATED;
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
WTF_MAKE_NONCOPYABLE(SetForScope);
public:
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
SetForScope(T& scopedVariable)
: m_scopedVariable(scopedVariable)
, m_originalValue(scopedVariable)
SVGCSSParser: m_implicitShorthand value is not reset after adding the shorthand property https://bugs.webkit.org/show_bug.cgi?id=116470 Reviewed by Simon Fraser. Source/WebCore: When we encounter a shorthand css property, we set m_implicitShorthand to true to tell addProperty() later that the individual properties are all set through a short hand one. We need to make sure that setting m_implicitShorthand to true will not be leaked after finishing parsing the short hand property. Test: fast/css/implicit-property-restore.html * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): (WTF::ImplicitScope::ImplicitScope): Deleted. (WTF::ImplicitScope::~ImplicitScope): Deleted. Get rid of ImplicitScope and replace its calls by TemporaryChange<bool>. * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): Restore m_implicitShorthand value after setting it temporarily to true. Source/WTF: * wtf/TemporaryChange.h: (WTF::TemporaryChange::TemporaryChange): Add a new constructor to make TemporaryChange work as a restorer. The temporary change will happen after we construct the object. LayoutTests: * fast/css/implicit-property-restore-expected.txt: Added. * fast/css/implicit-property-restore.html: Added. * fast/css/remove-shorthand-expected.txt: Rebase-line the test expected results because of fixing the leak of m_implicitShorthand. The bug was happening because "background: ..." property comes immediately before the "list-style: ...." property. Canonical link: https://commits.webkit.org/181384@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-10-18 17:41:14 +00:00
{
}
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
template<typename U>
SetForScope(T& scopedVariable, U&& newValue)
: SetForScope(scopedVariable)
{
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
m_scopedVariable = std::forward<U>(newValue);
}
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
~SetForScope()
{
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
m_scopedVariable = WTFMove(m_originalValue);
}
private:
T& m_scopedVariable;
T m_originalValue;
};
}
[JSC] WTF::TemporaryChange with WTF::SetForScope https://bugs.webkit.org/show_bug.cgi?id=164761 Reviewed by Saam Barati. Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: * bytecompiler/SetForScope.h: Removed. * debugger/Debugger.cpp: * inspector/InspectorBackendDispatcher.cpp: (Inspector::BackendDispatcher::dispatch): * inspector/ScriptDebugServer.cpp: (Inspector::ScriptDebugServer::dispatchBreakpointActionLog): (Inspector::ScriptDebugServer::dispatchBreakpointActionSound): (Inspector::ScriptDebugServer::dispatchBreakpointActionProbe): (Inspector::ScriptDebugServer::sourceParsed): (Inspector::ScriptDebugServer::dispatchFunctionToListeners): * parser/Parser.cpp: Source/WebCore: No behavior change. * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp: (WebCore::IDBServer::MemoryBackingStoreTransaction::abort): * bindings/js/JSCustomElementRegistryCustom.cpp: (WebCore::JSCustomElementRegistry::define): * bindings/js/ScriptController.cpp: (WebCore::ScriptController::evaluateModule): * css/ElementRuleCollector.cpp: (WebCore::ElementRuleCollector::matchSlottedPseudoElementRules): * css/StyleResolver.cpp: * css/parser/CSSParser.cpp: (WebCore::CSSParser::parseFillShorthand): (WebCore::CSSParser::parseShorthand): (WebCore::CSSParser::parse4Values): (WebCore::CSSParser::parseBorderRadius): * css/parser/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * dom/CustomElementRegistry.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): (WebCore::Document::styleForElementIgnoringPendingStylesheets): (WebCore::Document::destroyRenderTree): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): * dom/Microtasks.cpp: (WebCore::MicrotaskQueue::performMicrotaskCheckpoint): * history/PageCache.cpp: (WebCore::PageCache::pruneToSizeNow): * html/DOMTokenList.cpp: (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): * html/parser/CSSPreloadScanner.cpp: (WebCore::CSSPreloadScanner::scan): * html/parser/HTMLConstructionSite.h: * loader/ContentFilter.cpp: (WebCore::ContentFilter::handleProvisionalLoadFailure): * loader/SubresourceLoader.cpp: * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::pruneLiveResourcesToSize): (WebCore::MemoryCache::pruneDeadResourcesToSize): * page/Chrome.cpp: (WebCore::Chrome::runModal): * page/FrameView.cpp: (WebCore::FrameView::layout): (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::applyRecursivelyWithVisibleRect): (WebCore::FrameView::autoSizeIfEnabled): * page/csp/ContentSecurityPolicy.cpp: (WebCore::ContentSecurityPolicy::didReceiveHeaders): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): (WebCore::GraphicsLayerCA::commitLayerChangesAfterSublayers): * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::TextureMapperGL::drawTexture): * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::purgeBackingStores): * platform/graphics/win/GraphicsLayerDirect2D.cpp: * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::writeClipboardContents): * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): * rendering/RenderBlock.cpp: * rendering/RenderGeometryMap.cpp: (WebCore::RenderGeometryMap::pushMappingsToAncestor): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateLayerPositions): * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::updateCompositingLayers): * rendering/RenderView.cpp: (WebCore::RenderView::hitTest): * replay/EventLoopInputDispatcher.cpp: (WebCore::EventLoopInputDispatcher::dispatchInput): * storage/StorageMap.cpp: (WebCore::StorageMap::setItemIgnoringQuota): * svg/SVGPathBlender.cpp: (WebCore::SVGPathBlender::addAnimatedPath): Source/WebKit: * WebCoreSupport/WebResourceLoadScheduler.cpp: Source/WebKit/mac: * WebView/WebView.mm: (-[WebView updateTextTouchBar]): Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::initialize): * PluginProcess/WebProcessConnection.cpp: (WebKit::WebProcessConnection::didReceiveMessage): (WebKit::WebProcessConnection::didReceiveSyncMessage): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (createEncodedObject): (decodeObject): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::updateTextTouchBar): * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm: (WebKit::ScrollingTreeOverflowScrollingNodeIOS::commitStateAfterChildren): * UIProcess/gtk/WebPasteboardProxyGtk.cpp: (WebKit::WebPasteboardProxy::writeToClipboard): * WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp: (WebKit::CompositingCoordinator::flushPendingLayerChanges): (WebKit::CompositingCoordinator::purgeBackingStores): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::mouseEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::dispatchTouchEvent): (WebKit::WebPage::setInitialFocus): (WebKit::WebPage::insertTextAsync): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::dynamicViewportSizeUpdate): * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: * WebProcess/WebPage/mac/WebPageMac.mm: Source/WTF: JavaScriptCore's bytecompiler/SetForScope.h is completely the same to WTF::TemporaryChange. SetForScope sounds better name since it says that this object works as Scope. We rename WTF::TemporaryChange to WTF::SetForScope. And replace all the use to this WTF::SetForScope. * WTF.xcodeproj/project.pbxproj: * wtf/SetForScope.h: Renamed from Source/WTF/wtf/TemporaryChange.h. (WTF::SetForScope::SetForScope): (WTF::SetForScope::~SetForScope): Tools: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/SetForScope.cpp: Renamed from Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp. (TestWebKitAPI::TEST): * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): Canonical link: https://commits.webkit.org/182552@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-17 08:48:34 +00:00
using WTF::SetForScope;