1. 14 Jan, 2014 1 commit
    • andersca@apple.com's avatar
      Get rid of ThreadRestrictionVerifier · 98621338
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127004
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      Remove now unneeded calls.
      
      * loader/icon/IconDatabase.cpp:
      (WebCore::IconDatabase::defaultIcon):
      (WebCore::IconDatabase::setIconDataForIconURL):
      (WebCore::IconDatabase::getOrCreateIconRecord):
      (WebCore::IconDatabase::readFromDatabase):
      
      Source/WTF:
      
      The ThreadRestrictionVerifier mechanism has been turned off for a while
      since it doesn't really have a good solution for objects that are passed between threads.
      Instead of having dead code in the tree, just get rid of it.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/RefCounted.h:
      (WTF::RefCountedBase::ref):
      (WTF::RefCountedBase::hasOneRef):
      (WTF::RefCountedBase::refCount):
      (WTF::RefCountedBase::derefBase):
      * wtf/ThreadRestrictionVerifier.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98621338
  2. 11 Jan, 2014 1 commit
    • weinig@apple.com's avatar
      Clean up iterator filter / iterator range code · c3967736
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126817
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit2: 
      
      * Shared/APIArray.h:
      Update elementsOfType() to use combination of FilterIterator and TransformIterator
      (now that FilterIterator no longer has a transform predicate) and make use of the 
      makeFoo() helpers.
      
      Source/WTF: 
      
      - Renames IteratorPair to IteratorRange.
      - Splits FilterIterator into FilterIterator (which now only filters) and
        TransformIterator (which does the transform part of the old FilterIterator).
        Move both of these to IteratorAdaptors.h
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/FilterIterator.h: Removed.
      Add/remove files.
      
      * wtf/HashMap.h:
      (WTF::HashMap::keys):
      (WTF::HashMap::values):
      * wtf/RefPtrHashMap.h:
      Update for rename to IteratorRange. Simplify by using makeIteratorRange().
      
      * wtf/IteratorAdaptors.h: Copied from wtf/FilterIterator.h.
      (WTF::FilterIterator::FilterIterator):
      (WTF::FilterIterator::operator*):
      (WTF::makeFilterIterator):
      (WTF::TransformIterator::TransformIterator):
      (WTF::TransformIterator::operator++):
      (WTF::TransformIterator::operator*):
      (WTF::TransformIterator::operator==):
      (WTF::TransformIterator::operator!=):
      (WTF::makeTransformIterator):
      Split up filtering and transforming. Add makeFilterIterator() and makeTransformIterator()
      helpers.
      
      * wtf/IteratorPair.h: Removed.
      * wtf/IteratorRange.h: Copied from wtf/IteratorPair.h.
      (WTF::IteratorRange::IteratorRange):
      (WTF::makeIteratorRange):
      Renamed to IteratorRange and adds makeIteratorRange() helper.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3967736
  3. 08 Jan, 2014 1 commit
    • andersca@apple.com's avatar
      Add WTF::StringView and use it for grammar checking · a2cf5704
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126644
      
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      Use a StringView in TextCheckerClient::checkTextOfParagraph to avoid upconverting strings unnecessarily.
      
      * editing/TextCheckingHelper.cpp:
      (WebCore::checkTextOfParagraph):
      Pass a StringView to TextCheckerClient::checkTextOfParagraph.
      
      * loader/EmptyClients.h:
      Update for TextCheckerClient changes.
      
      * platform/text/TextCheckerClient.h:
      Change TextCheckerClient::checkTextOfParagraph to take a StringView.
      
      Source/WebKit/efl:
      
      Update to match WebCore changes.
      
      * WebCoreSupport/EditorClientEfl.h:
      (WebCore::EditorClientEfl::checkTextOfParagraph):
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebEditorClient.h:
      * WebCoreSupport/WebEditorClient.mm:
      (WebEditorClient::checkTextOfParagraph):
      Update to match the new signature.
      
      (nsStringWithoutCopying):
      New function that creates an NSString that references StringView data
      without copying the data. (If this function proves to be useful elsewhere, it could
      potentially be added to StringView).
      
      Source/WebKit2:
      
      Use a StringView and remove a FIXME.
      
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::checkTextOfParagraph):
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      
      Source/WTF:
      
      Add a new StringView class which is an immutable reference to either an 8-bit or a 16-bit string.
      
      This makes it easier to pass substrings around without having to either copy string data
      or upconvert and use UChar pointers.
      
      The StringView class is very loosely based on the std::string_view class which is proposed for a future version of C++,
      see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3609.html for more details.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/Forward.h:
      * wtf/text/StringView.h: Added.
      (WTF::StringView::StringView):
      (WTF::StringView::empty):
      (WTF::StringView::characters8):
      (WTF::StringView::characters16):
      (WTF::StringView::isEmpty):
      (WTF::StringView::length):
      (WTF::StringView::is8Bit):
      (WTF::StringView::substring):
      (WTF::StringView::toString):
      (WTF::StringView::toStringWithoutCopying):
      (WTF::StringView::encodedCharacters):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2cf5704
  4. 30 Dec, 2013 2 commits
  5. 28 Dec, 2013 1 commit
    • weinig@apple.com's avatar
      Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys()... · 548b85b4
      weinig@apple.com authored
      Move FilterIterator and IteratorPair to WTF and reimplement HashMap::keys() and HashMap::values() using IteratorPair
      https://bugs.webkit.org/show_bug.cgi?id=126253
      
      Reviewed by Anders Carlsson.
      
      ../WebKit2: 
      
      * Shared/APIArray.h:
      Update includes and make elementsOfType() a bit easier to read by using a typedef and some
      judicial indentation.
      
      * Shared/FilterIterator.h: Moved to WTF.
      * Shared/IteratorPair.h: Moved to WTF.
              
      * WebKit2.xcodeproj/project.pbxproj:
      Remove the two files.
      
      ../WTF: 
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      Add new files.
      
      * wtf/HashMap.h:
      * wtf/RefPtrHashMap.h:
      Remove the old implementation of keys() and values() and replace it with one
      that uses IteratorPair.
              
      * wtf/FilterIterator.h: Copied from Source/WebKit2/Shared/FilterIterator.h.
      * wtf/IteratorPair.h: Copied from Source/WebKit2/Shared/IteratorPair.h.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      548b85b4
  6. 19 Dec, 2013 1 commit
  7. 18 Dec, 2013 1 commit
    • commit-queue@webkit.org's avatar
      [WinCairo] Preparation for GStreamer on Windows. · f0ed9efc
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125946
      
      Patch by Alex Christensen <achristensen@webkit.org> on 2013-12-18
      Reviewed by Brent Fulgham.
      
      Source/WebCore:
      
      * WebCore.vcxproj/WebCore.vcxproj:
      Use new GStreamer property sheets for WinCairo.
      * WebCore.vcxproj/WebCoreCairo.props:
      Include GStreamer directory.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKit/WebKit.vcxproj:
      Use new GStreamer property sheets for WinCairo.
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Fixed 64-bit symbols, added GStreamer symbol.
      
      Source/WTF:
      
      * WTF.vcxproj/WTF.vcxproj:
      Use new GStreamer property sheets for WinCairo.
      
      Tools:
      
      * WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj:
      Use new GStreamer property sheets for WinCairo.
      * win/DLLLauncher/DLLLauncherMain.cpp:
      (modifyPath):
      (wWinMain):
      Prepend GStreamer bin directory to path if it exists.
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefinesCairo.props:
      Added ENABLE_MEDIA_CONTROLS_SCRIPT and ENABLE_VIDEO_TRACK for DerivedSources.make.
      * win/tools/vsprops/GStreamer32.props: Added.
      * win/tools/vsprops/GStreamer64.props: Added.
      * win/tools/vsprops/GStreamerCommon.props: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0ed9efc
  8. 16 Dec, 2013 2 commits
    • andersca@apple.com's avatar
      Remove EnumClass.h from WTF · 82c2afe7
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125820
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Replace uses of ENUM_CLASS with real enum class declarations.
      
      * Modules/webdatabase/DatabaseBasicTypes.h:
      * Modules/webdatabase/DatabaseError.h:
      * Modules/webdatabase/SQLTransactionState.h:
      * bindings/js/JSSubtleCryptoCustom.cpp:
      * bindings/js/SerializedScriptValue.cpp:
      * crypto/CryptoAlgorithmIdentifier.h:
      * crypto/CryptoAlgorithmParameters.h:
      * crypto/CryptoKey.h:
      * crypto/CryptoKeyData.h:
      * crypto/CryptoKeyType.h:
      * crypto/keys/CryptoKeyDataRSAComponents.h:
      * inspector/InspectorTimelineAgent.h:
      
      Source/WTF:
      
      All compilers we build on now support real strongly typed enums, so we can remove the ENUM_CLASS version.
      
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CheckedArithmetic.h:
      * wtf/EnumClass.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82c2afe7
    • commit-queue@webkit.org's avatar
      Fixed Win64 build on VS2013. · b638e272
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125753
      
      Patch by Alex Christensen <achristensen@webkit.org> on 2013-12-16
      Reviewed by Brent Fulgham.
      
      Source/JavaScriptCore:
      
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
      * JavaScriptCore.vcxproj/JavaScriptCoreGenerated.vcxproj:
      * JavaScriptCore.vcxproj/LLInt/LLIntAssembly/LLIntAssembly.vcxproj:
      * JavaScriptCore.vcxproj/LLInt/LLIntDesiredOffsets/LLIntDesiredOffsets.vcxproj:
      * JavaScriptCore.vcxproj/LLInt/LLIntOffsetsExtractor/LLIntOffsetsExtractor.vcxproj:
      * JavaScriptCore.vcxproj/jsc/jsc.vcxproj:
      * JavaScriptCore.vcxproj/testRegExp/testRegExp.vcxproj:
      * JavaScriptCore.vcxproj/testapi/testapi.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      Source/ThirdParty/ANGLE:
      
      * ANGLE.vcxproj/libGLESv2.vcxproj:
      * ANGLE.vcxproj/preprocessor.vcxproj:
      * ANGLE.vcxproj/translator_common.vcxproj:
      * ANGLE.vcxproj/translator_glsl.vcxproj:
      * ANGLE.vcxproj/translator_hlsl.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      Source/WebCore:
      
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCoreTestSupport.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      Source/WebInspectorUI:
      
      * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj:
      Added 64-bit configuration.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKit.sln:
      Use new 64-bit WebInspectorUI configurations.
      * WebKit.vcxproj/Interfaces/Interfaces.vcxproj:
      * WebKit.vcxproj/WebKit/WebKit.vcxproj:
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExportGenerator.vcxproj:
      * WebKit.vcxproj/WebKitGUID/WebKitGUID.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      Source/WTF:
      
      * WTF.vcxproj/WTF.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      Tools:
      
      * DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTree.vcxproj:
      * DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTreeLauncher.vcxproj:
      * DumpRenderTree/DumpRenderTree.vcxproj/ImageDiff/ImageDiff.vcxproj:
      * DumpRenderTree/DumpRenderTree.vcxproj/ImageDiff/ImageDiffLauncher.vcxproj:
      * DumpRenderTree/DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.vcxproj:
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
      * WinLauncher/WinLauncher.vcxproj/WinLauncher.vcxproj:
      * WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj:
      * win/record-memory/record-memory.vcxproj:
      Added correct PlatformToolset for 64-bit builds.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b638e272
  9. 13 Dec, 2013 2 commits
    • bfulgham@apple.com's avatar
      [Win] Unreviewed build fix after r160548 · a5c4c835
      bfulgham@apple.com authored
      Source/JavaScriptCore: 
      
      * JavaScriptCore.vcxproj/JavaScriptCoreGenerated.vcxproj: Specify
      that we are using the vs12_xp target for Makefile-based projects.
      * JavaScriptCore.vcxproj/LLInt/LLIntAssembly/LLIntAssembly.vcxproj: Ditto
      * JavaScriptCore.vcxproj/LLInt/LLIntDesiredOffsets/LLIntDesiredOffsets.vcxproj: Ditto.
      
      Source/WebCore: 
      
      * WebCore.vcxproj/WebCoreGenerated.vcxproj: Specify that we are
      using the vs120_xp build target for Makefile-based projects.
      
      Source/WTF: 
      
      * WTF.vcxproj/WTFGenerated.vcxproj: Specify that we are using
      the vs12_xp target for Makefile-based projects.
      
      Tools: 
      
      * win/AssembleBuildLogs/AssembleBuildLogs.vcxproj: Specify
      we are using vs12_xp target for Makefile-based projects.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5c4c835
    • bfulgham@apple.com's avatar
      [Win] Switch WebKit solution to Visual Studio 2013 · 0d3ee590
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125192
      
      Reviewed by Anders Carlsson.
      
      Source/JavaScriptCore: 
      
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: Update for VS2013
      * JavaScriptCore.vcxproj/LLInt/LLIntOffsetsExtractor/LLIntOffsetsExtractor.vcxproj:
      Ditto
      * JavaScriptCore.vcxproj/jsc/jsc.vcxproj: Ditto
      * JavaScriptCore.vcxproj/testRegExp/testRegExp.vcxproj: Ditto
      * JavaScriptCore.vcxproj/testapi/testapi.vcxproj: Ditto
      
      Source/ThirdParty: 
      
      * gtest/msvc/gtest-md.vcxproj: Update for VS2013
      
      Source/WebCore: 
      
      * WebCore.vcxproj/WebCore.vcxproj: Update for VS2013
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto
      * WebCore.vcxproj/WebCoreTestSupport.vcxproj: Ditto
      
      Source/WebInspectorUI: 
      
      * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Update for VS2013
      
      Source/WebKit: 
      
      * WebKit.vcxproj/Interfaces/Interfaces.vcxproj: Update for VS2013
      * WebKit.vcxproj/WebKit.sln: Ditto
      * WebKit.vcxproj/WebKit/WebKit.vcxproj: Ditto
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExportGenerator.vcxproj: Ditto
      * WebKit.vcxproj/WebKitGUID/WebKitGUID.vcxproj: Ditto
      
      Source/WTF: 
      
      * WTF.vcxproj/WTF.vcxproj: Update for VS2013
      * WTF.vcxproj/WTF.vcxproj.filters: Ditto
      
      Tools: 
      
      Project files must reference vs12_xp for 32-bit builds. 
      
      * DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTree.vcxproj:
      Update for VS2013
      * DumpRenderTree/DumpRenderTree.vcxproj/DumpRenderTree/DumpRenderTreeLauncher.vcxproj:
      Ditto
      * DumpRenderTree/DumpRenderTree.vcxproj/ImageDiff/ImageDiff.vcxproj:
      Ditto
      * DumpRenderTree/DumpRenderTree.vcxproj/ImageDiff/ImageDiffLauncher.vcxproj:
      Ditto
      * DumpRenderTree/DumpRenderTree.vcxproj/TestNetscapePlugin/TestNetscapePlugin.vcxproj:
      Ditto
      * Scripts/webkitdirs.pm:
      (visualStudioInstallDir): Specify VS2013
      (visualStudioVersion): Ditto.
      (setupAppleWinEnv): Use VS2013 in messages
      (setupCygwinEnv): Ditto
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj:
      Update for VS2013
      * WinLauncher/WinLauncher.vcxproj/WinLauncher.vcxproj:
      Ditto
      * WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj:
      Ditto
      * win/record-memory/record-memory.vcxproj:
      Ditto
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d3ee590
  10. 12 Dec, 2013 1 commit
  11. 09 Dec, 2013 1 commit
  12. 27 Nov, 2013 1 commit
    • fpizlo@apple.com's avatar
      Do bytecode validation as part of testing · 2eb67eca
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124913
      
      Source/JavaScriptCore: 
      
      Reviewed by Oliver Hunt.
              
      Also fix some small bugs in the bytecode liveness analysis that I found by doing
      this validation thingy.
      
      * bytecode/BytecodeLivenessAnalysis.cpp:
      (JSC::isValidRegisterForLiveness):
      (JSC::BytecodeLivenessAnalysis::runLivenessFixpoint):
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::validate):
      (JSC::CodeBlock::beginValidationDidFail):
      (JSC::CodeBlock::endValidationDidFail):
      * bytecode/CodeBlock.h:
      * runtime/Executable.cpp:
      (JSC::ScriptExecutable::prepareForExecutionImpl):
      * runtime/Options.h:
      
      Source/WTF: 
      
      Reviewed by Oliver Hunt.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/FastBitVector.cpp: Added.
      (WTF::FastBitVector::dump):
      * wtf/FastBitVector.h:
      (WTF::FastBitVector::resize):
      (WTF::FastBitVector::bitCount):
      (WTF::FastBitVector::arrayLength):
      
      Tools: 
      
      Reviewed by Oliver Hunt.
      
      * Scripts/run-jsc-stress-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2eb67eca
  13. 19 Nov, 2013 1 commit
  14. 12 Nov, 2013 2 commits
  15. 09 Nov, 2013 1 commit
    • paroga@webkit.org's avatar
      Move RunLoop from WebCore to WTF · f8108ef5
      paroga@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=116606
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * PlatformBlackBerry.cmake:
      * PlatformEfl.cmake:
      * PlatformGTK.cmake:
      * PlatformWin.cmake:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
      * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
      
      Source/WebKit/mac:
      
      * Carbon/CarbonWindowAdapter.mm:
      (+[CarbonWindowAdapter initialize]):
      * History/WebBackForwardList.mm:
      (+[WebBackForwardList initialize]):
      * History/WebHistoryItem.mm:
      (+[WebHistoryItem initialize]):
      * Misc/WebCache.mm:
      (+[WebCache initialize]):
      * Misc/WebElementDictionary.mm:
      (+[WebElementDictionary initialize]):
      * Misc/WebIconDatabase.mm:
      (+[WebIconDatabase initialize]):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (+[WebHostedNetscapePluginView initialize]):
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebBasePluginPackage.mm:
      * Plugins/WebNetscapePluginView.mm:
      (+[WebNetscapePluginView initialize]):
      * WebCoreSupport/WebEditorClient.mm:
      (+[WebUndoStep initialize]):
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebView/WebArchive.mm:
      (+[WebArchivePrivate initialize]):
      * WebView/WebDataSource.mm:
      (+[WebDataSource initialize]):
      * WebView/WebHTMLView.mm:
      (+[WebHTMLViewPrivate initialize]):
      (+[WebHTMLView initialize]):
      * WebView/WebPreferences.mm:
      (+[WebPreferences initialize]):
      * WebView/WebResource.mm:
      (+[WebResourcePrivate initialize]):
      * WebView/WebTextIterator.mm:
      (+[WebTextIteratorPrivate initialize]):
      * WebView/WebView.mm:
      (+[WebView initialize]):
      * WebView/WebViewData.mm:
      (+[WebViewPrivate initialize]):
      
      Source/WebKit2:
      
      * DatabaseProcess/DatabaseProcess.cpp:
      * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      * NetworkProcess/NetworkProcess.cpp:
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkResourceLoader.h:
      * NetworkProcess/mac/DiskCacheMonitor.h:
      * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
      * Platform/CoreIPC/Connection.cpp:
      * Platform/CoreIPC/Connection.h:
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
      * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
      * PluginProcess/PluginControllerProxy.h:
      * PluginProcess/PluginProcess.cpp:
      * PluginProcess/PluginProcess.h:
      * PluginProcess/WebProcessConnection.cpp:
      * PluginProcess/unix/PluginProcessMainUnix.cpp:
      * Shared/ChildProcess.cpp:
      * Shared/ChildProcess.h:
      * Shared/ChildProcessProxy.cpp:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
      * Shared/Plugins/NPObjectProxy.cpp:
      * Shared/WebKit2Initialize.cpp:
      (WebKit::InitializeWebKit2):
      * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
      * UIProcess/API/mac/FindIndicatorWindow.h:
      * UIProcess/API/mac/WKPrintingView.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
      * UIProcess/DrawingAreaProxyImpl.h:
      * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
      * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/Network/NetworkProcessProxy.cpp:
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      * UIProcess/ResponsivenessTimer.cpp:
      * UIProcess/ResponsivenessTimer.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContext.cpp:
      * UIProcess/WebProcessProxy.cpp:
      * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
      * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
      * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
      * WebProcess/Network/WebResourceLoadScheduler.h:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePlugin.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginView.h:
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
      * WebProcess/WebPage/DrawingAreaImpl.h:
      * WebProcess/WebPage/EventDispatcher.cpp:
      * WebProcess/WebPage/PageOverlay.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.cpp:
      * WebProcess/efl/WebProcessMainEfl.cpp:
      * WebProcess/gtk/WebProcessMainGtk.cpp:
      
      Source/WTF:
      
      With this change RunLoop can be used in JavaScriptCore too.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/PlatformBlackBerry.cmake:
      * wtf/PlatformEfl.cmake:
      * wtf/PlatformGTK.cmake:
      * wtf/PlatformWin.cmake:
      * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
      (WTF::RunLoop::Holder::Holder):
      (WTF::RunLoop::Holder::runLoop):
      (WTF::RunLoop::initializeMainRunLoop):
      (WTF::RunLoop::current):
      (WTF::RunLoop::main):
      (WTF::RunLoop::isMain):
      (WTF::RunLoop::performWork):
      (WTF::RunLoop::dispatch):
      * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
      (WTF::RunLoop::TimerBase::startRepeating):
      (WTF::RunLoop::TimerBase::startOneShot):
      (WTF::RunLoop::TimerBase::isRepeating):
      (WTF::RunLoop::Timer::Timer):
      (WTF::RunLoop::Timer::fired):
      * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::wakeUp):
      * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
      (WTF::RunLoop::performWork):
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::runForDuration):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::wakeUpEvent):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::run):
      (WTF::RunLoop::innermostLoop):
      (WTF::RunLoop::pushNestedMainLoop):
      (WTF::RunLoop::popNestedMainLoop):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::queueWork):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::clearTimerSource):
      (WTF::RunLoop::TimerBase::timerFiredCallback):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
      (WTF::RunLoop::RunLoopWndProc):
      (WTF::RunLoop::wndProc):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::registerRunLoopMessageWindowClass):
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::generateTimerID):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8108ef5
  16. 04 Nov, 2013 1 commit
  17. 01 Nov, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Move CF/Mac WTF String implementations down into WTF · 434a580b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123635
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-11-01
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      
      Source/WTF:
      
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/text/AtomicString.h:
      * wtf/text/StringImpl.h:
      * wtf/text/WTFString.h:
      * wtf/text/cf/AtomicStringCF.cpp: Renamed from Source/WebCore/platform/text/cf/AtomicStringCF.cpp.
      (WTF::AtomicString::add):
      * wtf/text/cf/StringCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringCF.cpp.
      (WTF::String::String):
      (WTF::String::createCFString):
      * wtf/text/cf/StringImplCF.cpp: Renamed from Source/WebCore/platform/text/cf/StringImplCF.cpp.
      (garbageCollectionEnabled):
      (WTF::StringWrapperCFAllocator::retain):
      (WTF::StringWrapperCFAllocator::release):
      (WTF::StringWrapperCFAllocator::copyDescription):
      (WTF::StringWrapperCFAllocator::allocate):
      (WTF::StringWrapperCFAllocator::reallocate):
      (WTF::StringWrapperCFAllocator::deallocateOnMainThread):
      (WTF::StringWrapperCFAllocator::deallocate):
      (WTF::StringWrapperCFAllocator::preferredSize):
      (WTF::StringWrapperCFAllocator::create):
      (WTF::StringWrapperCFAllocator::allocator):
      (WTF::StringImpl::createCFString):
      * wtf/text/mac/StringImplMac.mm: Renamed from Source/WebCore/platform/text/mac/StringImplMac.mm.
      (WTF::StringImpl::operator NSString *):
      * wtf/text/mac/StringMac.mm: Renamed from Source/WebCore/platform/text/mac/StringMac.mm.
      (WTF::String::String):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      434a580b
  18. 18 Oct, 2013 1 commit
    • fpizlo@apple.com's avatar
      A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using... · d49bfe80
      fpizlo@apple.com authored
      A CodeBlock's StructureStubInfos shouldn't be in a Vector that we search using code origins and machine code PCs
      https://bugs.webkit.org/show_bug.cgi?id=122940
      
      Source/JavaScriptCore: 
      
      Reviewed by Oliver Hunt.
              
      This accomplishes a number of simplifications. StructureStubInfo is now non-moving,
      whereas previously it was in a Vector, so it moved. This allows you to use pointers to
      StructureStubInfo. This also eliminates the use of return PC as a way of finding the
      StructureStubInfo's. It removes some of the need for the compile-time property access
      records; for example the DFG no longer has to save information about registers in a
      property access record only to later save it to the stub info.
              
      The main thing is accomplishes is that it makes it easier to add StructureStubInfo's
      at any stage of compilation.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::printGetByIdCacheStatus):
      (JSC::CodeBlock::dumpBytecode):
      (JSC::CodeBlock::~CodeBlock):
      (JSC::CodeBlock::propagateTransitions):
      (JSC::CodeBlock::finalizeUnconditionally):
      (JSC::CodeBlock::addStubInfo):
      (JSC::CodeBlock::getStubInfoMap):
      (JSC::CodeBlock::shrinkToFit):
      * bytecode/CodeBlock.h:
      (JSC::CodeBlock::begin):
      (JSC::CodeBlock::end):
      (JSC::CodeBlock::rareCaseProfileForBytecodeOffset):
      * bytecode/CodeOrigin.h:
      (JSC::CodeOrigin::CodeOrigin):
      (JSC::CodeOrigin::isHashTableDeletedValue):
      (JSC::CodeOrigin::hash):
      (JSC::CodeOriginHash::hash):
      (JSC::CodeOriginHash::equal):
      * bytecode/GetByIdStatus.cpp:
      (JSC::GetByIdStatus::computeFor):
      * bytecode/GetByIdStatus.h:
      * bytecode/PutByIdStatus.cpp:
      (JSC::PutByIdStatus::computeFor):
      * bytecode/PutByIdStatus.h:
      * bytecode/StructureStubInfo.h:
      (JSC::getStructureStubInfoCodeOrigin):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::parseBlock):
      (JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
      * dfg/DFGJITCompiler.cpp:
      (JSC::DFG::JITCompiler::link):
      * dfg/DFGJITCompiler.h:
      (JSC::DFG::PropertyAccessRecord::PropertyAccessRecord):
      (JSC::DFG::InRecord::InRecord):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::compileIn):
      * dfg/DFGSpeculativeJIT.h:
      (JSC::DFG::SpeculativeJIT::callOperation):
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::cachedGetById):
      (JSC::DFG::SpeculativeJIT::cachedPutById):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::cachedGetById):
      (JSC::DFG::SpeculativeJIT::cachedPutById):
      * jit/CCallHelpers.h:
      (JSC::CCallHelpers::setupArgumentsWithExecState):
      * jit/JIT.cpp:
      (JSC::PropertyStubCompilationInfo::copyToStubInfo):
      (JSC::JIT::privateCompile):
      * jit/JIT.h:
      (JSC::PropertyStubCompilationInfo::slowCaseInfo):
      * jit/JITInlines.h:
      (JSC::JIT::callOperation):
      * jit/JITOperations.cpp:
      * jit/JITOperations.h:
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::emitSlow_op_get_by_id):
      (JSC::JIT::emitSlow_op_put_by_id):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::emitSlow_op_get_by_id):
      (JSC::JIT::emitSlow_op_put_by_id):
      * jit/Repatch.cpp:
      (JSC::appropriateGenericPutByIdFunction):
      (JSC::appropriateListBuildingPutByIdFunction):
      (JSC::resetPutByID):
      
      Source/WTF: 
      
      Reviewed by Oliver Hunt.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/BagToHashMap.h: Added.
      (WTF::toHashMap):
      * wtf/CMakeLists.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d49bfe80
  19. 17 Oct, 2013 1 commit
  20. 16 Oct, 2013 1 commit
    • darin@apple.com's avatar
      Add PassRef and createRefCounted so we can improve creation of RefCounted objects · 889b02e5
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122904
      
      Reviewed by Anders Carlsson.
      
      Source/WTF:
      
      * GNUmakefile.list.am: Added PassRef.h.
      * WTF.vcxproj/WTF.vcxproj: Ditto.
      * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
      * WTF.xcodeproj/project.pbxproj: Ditto.
      * wtf/CMakeLists.txt: Ditto.
      
      * wtf/Forward.h: Added PassRef. Also re-sorted and un-indented to match what
      the style-checking script expects.
      
      * wtf/PassRef.h: Added. Includes the createRefCounted function template, which
      is analogous to make_unique, but is for reference counted objects, and also
      assumes that new will never return null. Also includes an overload of adoptRef
      that takes a reference rather than a pointer.
      
      * wtf/PassRefPtr.h: Include "PassRef.h" so we can share the adopted function.
      Got rid of declarations that duplicate ones in there.
      (WTF::refIfNotNull): Use nullptr.
      (WTF::derefIfNotNull): Use nullptr.
      (WTF::PassRefPtr::PassRefPtr): Use nullptr. Added an overload that takes a PassRef.
      (WTF::PassRefPtr::operator UnspecifiedBoolType): Use nullptr.
      (WTF::PassRefPtr::operator=): Made this deleted instead of compile time assertion.
      (WTF::PassRefPtr::PassRefPtr): Made adopting constructor use an adopt tag instead
      of an unused boolean.
      (WTF::PassRefPtr::leakRef): Use nullptr.
      (WTF::adoptRef): Use the adopt tag.
      
      * wtf/Ref.h: Use Noncopyable instead of rolling our own.
      (WTF::Ref::Ref): Add an overload that takes a PassRef.
      (WTF::Ref::operator=): Ditto.
      
      * wtf/RefPtr.h: Removed unneeded forward declaration of PassRefPtr.
      (WTF::RefPtr::RefPtr): Use nullptr. Added overload that takes a PassRef.
      (WTF::RefPtr::release): Use nullptr.
      (WTF::RefPtr::operator UnspecifiedBoolType): Use nullptr.
      (WTF::RefPtr::operator=): Added overload that takes a PassRef.
      (WTF::RefPtr::clear): Use nullptr.
      
      * wtf/StdLibExtras.h: Added inline keyword to isPointerTypeAlignmentOkay,
      reinterpret_cast_ptr, and make_unique. Seems like a simple oversight that these
      were missing before.
      
      Tools:
      
      * TestWebKitAPI/Tests/WTF/Ref.cpp: Added some basic tests for adoptRef and PassRef.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      889b02e5
  21. 07 Oct, 2013 1 commit
  22. 03 Oct, 2013 1 commit
  23. 23 Sep, 2013 1 commit
  24. 19 Sep, 2013 1 commit
  25. 18 Sep, 2013 1 commit
  26. 12 Sep, 2013 1 commit
    • mikhail.pozdnyakov@intel.com's avatar
      Remove home-brewed nullptr · e69c57e6
      mikhail.pozdnyakov@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=119624
      
      Reviewed by Anders Carlsson.
      
      The standard C++11 nullptr and std::nullptr_t type should be used now.
      
      Source/JavaScriptCore:
      
      * heap/PassWeak.h:
      * heap/Weak.h:
      
      Source/WebCore:
      
      * bindings/js/JSDOMBinding.h:
      
      Source/WebKit/efl:
      
      * tests/UnitTestUtils/EWKTestView.cpp:
      
      Source/WTF:
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/NullPtr.cpp: Removed.
      * wtf/NullPtr.h: Removed.
      * wtf/OwnArrayPtr.h:
      * wtf/OwnPtr.h:
      * wtf/PassOwnPtr.h:
      * wtf/PassRefPtr.h:
      * wtf/RetainPtr.h:
      * wtf/win/GDIObject.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e69c57e6
  27. 11 Sep, 2013 1 commit
  28. 10 Sep, 2013 3 commits
    • andersca@apple.com's avatar
      Remove wtf/Alignment.h · 64965189
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121077
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * platform/PODArena.h:
      (WebCore::PODArena::minAlignment):
      * platform/graphics/cpu/arm/filters/FELightingNEON.h:
      (WebCore::FELighting::platformApplyNeon):
      
      Source/WTF:
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/Alignment.h: Removed.
      * wtf/CMakeLists.txt:
      * wtf/text/ASCIIFastPath.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64965189
    • bfulgham@apple.com's avatar
      [Windows] Create SharedGDIObject Class Template · 57e1fedb
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121037
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      * WebCore.vcxproj/WebCore.vcxproj: Remove RefCountedGDIHandle.h, and
      add new SharedGDIObject.h file.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * platform/graphics/FontPlatformData.h:
      (WebCore::FontPlatformData::hfont): Switch to new SharedGDIObject.
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData): Ditto.
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData): Ditto.
      * platform/graphics/win/FontPlatformDataWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData): Ditto.
      * platform/graphics/win/RefCountedGDIHandle.h: Removed.
      * platform/graphics/win/SharedGDIObject.h: Added.
      (WebCore::SharedGDIObject::create):
      (WebCore::SharedGDIObject::get):
      (WebCore::SharedGDIObject::hash):
      (WebCore::SharedGDIObject::SharedGDIObject):
      
      Source/WebKit/win: 
      
      * WebView.cpp: Change implementations to use the new SharedGDIObject
      class.
      (WebView::addToDirtyRegion):
      (WebView::scrollBackingStore):
      (WebView::updateBackingStore):
      (WebView::performLayeredWindowUpdate):
      (WebView::paint):
      (WebView::backingStore):
      * WebView.h: Ditto.
      
      Source/WTF: 
      
      Now that the SharedGDIObject class exists we can get rid of
      the Windows-specific code in OwnPtr.
      
      * WTF.vcxproj/WTF.vcxproj: Remove OwnPtrWin.cpp.
      * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
      * wtf/OwnPtrCommon.h: 
      (WTF::deleteOwnedPtr): Remove Windows declarations that
      are no longer needed.
      * wtf/win/GDIObject.h:
      (WTF::GDIObject::get): Change to 'const' to match
      signature (and use cases) elsewhere in the code base for
      our smart pointer classes.
      * wtf/win/OwnPtrWin.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57e1fedb
    • bfulgham@apple.com's avatar
      Source/WebCore: [Windows] Change from using OwnPtr<GDI Stuff> to new GDIObject template. · 283b393b
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120778
      
      Reviewed by Anders Carlsson.
      
      Change code to use a GDI-specific smart pointer, rather than OwnPtr. This
      is a first step to simplifying OwnPtr. It also gets rid of some Windows-
      specific code in WTF.
      
      * WebCore.vcxproj/WebCore.vcxproj: Add the new header file.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * page/win/FrameCGWin.cpp:
      (WebCore::imageFromRect): Switch to GDIObject.
      * page/win/FrameCairoWin.cpp:
      (WebCore::imageFromRect): Switch to GDIObject.
      * page/win/FrameWin.cpp:
      (WebCore::imageFromSelection): Switch to GDIObject.
      (WebCore::Frame::dragImageForSelection): Ditto.
      (WebCore::Frame::nodeImage): Ditto.
      * page/win/FrameWin.h:
      * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
      (WebCore::getDirtyRects): Switch from OwnPtr to GDIObject.
      * platform/graphics/win/FontCacheWin.cpp:
      (WebCore::createGDIFont): Switch to GDIObject.
      (WebCore::FontCache::createFontPlatformData): Ditto.
      * platform/graphics/win/FontCustomPlatformData.cpp:
      (WebCore::FontCustomPlatformData::fontPlatformData): Switch to GDIObject.
      * platform/graphics/win/FontCustomPlatformDataCairo.cpp:
      (WebCore::FontCustomPlatformData::fontPlatformData): Switch to GDIObject.
      * platform/graphics/win/GraphicsContextCGWin.cpp:
      (WebCore::GraphicsContext::releaseWindowsContext): Switch to GDIObject.
      * platform/graphics/win/GraphicsContextCairoWin.cpp:
      (WebCore::GraphicsContext::releaseWindowsContext): Switch to GDIObject.
      * platform/graphics/win/GraphicsContextWin.cpp:
      (WebCore::GraphicsContext::getWindowsContext): Switch to GDIObject.
      * platform/graphics/win/SimpleFontDataWin.cpp:
      (WebCore::SimpleFontData::platformCreateScaledFontData): Switch to GDIObject.
      * platform/win/CursorWin.cpp:
      (WebCore::createSharedCursor): Switch to GDIObject.
      * platform/win/DragImageCGWin.cpp:
      (WebCore::scaleDragImage): Switch to GDIObject.
      (WebCore::createDragImageFromImage):
      * platform/win/DragImageCairoWin.cpp: 
      (WebCore::scaleDragImage): Switch to GDIObject.
      (WebCore::createDragImageFromImage): Ditto.
      * platform/win/DragImageWin.cpp:
      (WebCore::createDragImageForLink): Switch to GDIObject.
      * platform/win/PasteboardWin.cpp:
      (WebCore::Pasteboard::writeImage): Switch to GDIObject.
      * platform/win/ScrollbarThemeWin.cpp:
      (WebCore::ScrollbarThemeWin::paintTrackPiece): Switch to GDIObject.
      * plugins/win/PluginViewWin.cpp:
      (WebCore::PluginView::updatePluginWidget): Switch to GDIObject.
      (WebCore::PluginView::snapshot): Ditto.
      * rendering/RenderThemeWin.cpp:
      (WebCore::drawControl): Switch to GDIObject.
      
      Source/WebKit/win: [Windows] Change from using OwnPtr<GDI Stuff> to new GDIObject template.
      https://bugs.webkit.org/show_bug.cgi?id=120778
      
      Reviewed by Anders Carlsson.
      
      * FullscreenVideoController.cpp:
      (FullscreenVideoController::createHUDWindow): Switch to GDIObject.
      (FullscreenVideoController::draw): Ditto.
      * FullscreenVideoController.h:
      * WebCoreSupport/EmbeddedWidget.cpp:
      (EmbeddedWidget::frameRectsChanged): Switch to GDIObject.
      * WebNodeHighlight.cpp:
      (WebNodeHighlight::update): Switch to GDIObject.
      * WebView.cpp:
      (WebView::scrollBackingStore): Switch to GDIObject.
      (WebView::updateBackingStore): Ditto.
      (WebView::performLayeredWindowUpdate): Ditto.
      (WebView::paint): Ditto.
      (WebView::paintIntoBackingStore): Ditto.
      (WebView::paintIntoWindow): Ditto.
      (WebView::generateSelectionImage): Ditto.
      
      Source/WTF: [Windows] Change from using OwnPtr<GDI Stuff> to new GDIObject template.
      https://bugs.webkit.org/show_bug.cgi?id=120778
      
      Reviewed by Anders Carlsson.
      
      * WTF.vcxproj/WTF.vcxproj: Add new GDIObject header file.
      * WTF.vcxproj/WTF.vcxproj.filters: Ditto.
      * WTF.vcxproj/copy-files.cmd: Copy new header file.
      * wtf/OwnPtrCommon.h: Remove some GDI specializations.
      * wtf/win/GDIObject.h: Added.
      (WTF::GDIObject::GDIObject):
      (WTF::GDIObject::~GDIObject):
      (WTF::GDIObject::get):
      (WTF::GDIObject::operator!):
      (WTF::GDIObject::operator UnspecifiedBoolType):
      (WTF::GDIObject::operator=):
      (WTF::GDIObject::swap):
      (WTF::::clear):
      (WTF::::leak):
      (WTF::::GDIObject):
      (WTF::=):
      (WTF::adoptGDIObject):
      (WTF::swap):
      (WTF::T):
      (WTF::HDC):
      * wtf/win/OwnPtrWin.cpp:
      (WTF::deleteOwnedPtr): Remove some GDI specializations.
      
      Tools: [Windows] Change from using OwnPtr<GDI Stuff> to new GDIObject.
      https://bugs.webkit.org/show_bug.cgi?id=120778
      
      Reviewed by Anders Carlsson.
      
      * DumpRenderTree/win/PixelDumpSupportWin.cpp:
      (createBitmapContextFromWebView): Use GDIObject.
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_for_leaky_patterns): Update for GDIObject instead of adoptPtr and OwnPtr.
      * Scripts/webkitpy/style/checkers/cpp_unittest.py:
      (LeakyPatternTest.test_create_dc): Update for GDIObject instead of adoptPtr/OwnPtr.
      (LeakyPatternTest.test_create_compatible_dc): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      283b393b
  29. 09 Sep, 2013 1 commit
  30. 08 Sep, 2013 1 commit
  31. 07 Sep, 2013 3 commits
    • andersca@apple.com's avatar
      Remove NonCopyableSort.h from WTF · 64f1b5a3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120984
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * css/MediaQuery.cpp:
      (WebCore::MediaQuery::MediaQuery):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::updateActiveTextTrackCues):
      * html/RangeInputType.cpp:
      (WebCore::RangeInputType::updateTickMarkValues):
      * inspector/InspectorMemoryAgent.cpp:
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::sortedTrackListForMenu):
      * page/CaptionUserPreferences.h:
      * page/CaptionUserPreferencesMediaAF.cpp:
      (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
      * platform/graphics/texmap/TextureMapper.cpp:
      (WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired):
      
      Source/WebKit/blackberry:
      
      * WebKitSupport/RenderQueue.cpp:
      (BlackBerry::WebKit::RenderQueue::quickSort):
      
      Source/WTF:
      
      std::sort as defined by C++11 moves elements when possible, so there's no need for nonCopyableSort anymore.
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/NonCopyingSort.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64f1b5a3
    • andersca@apple.com's avatar
      Get rid of PassOwnArrayPtr · c704b419
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120964
      
      Reviewed by Andreas Kling.
      
      Source/JavaScriptCore:
      
      Use OwnArrayPtr instead of PassOwnArrayPtr.
      
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::BytecodeGenerator):
      * runtime/SymbolTable.h:
      (JSC::SharedSymbolTable::setSlowArguments):
      
      Source/WebCore:
      
      Use OwnArrayPtr instead of PassOwnArrayPtr.
      
      * html/canvas/WebGLRenderingContext.cpp:
      * platform/Length.cpp:
      (WebCore::newCoordsArray):
      (WebCore::newLengthArray):
      * platform/Length.h:
      * platform/audio/FFTFrame.h:
      * platform/graphics/GraphicsContext3D.cpp:
      * platform/graphics/GraphicsContext3D.h:
      * platform/graphics/texmap/TextureMapperGL.cpp:
      * platform/graphics/wince/SharedBitmap.cpp:
      
      Source/WebKit2:
      
      Remove unneeded includes.
      
      * Shared/ImmutableArray.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      
      Source/WTF:
      
      Make OwnArrayPtr a proper move-only type and get rid of PassOwnArrayPtr.
      
      Ultimately I'd like to get rid of OwnArrayPtr as well and just have it be a specialization
      of OwnPtr<T[]>, but this is a step in the right direction.
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/Assertions.cpp:
      * wtf/CMakeLists.txt:
      * wtf/DateMath.h:
      * wtf/FastBitVector.h:
      * wtf/Forward.h:
      * wtf/OwnArrayPtr.h:
      * wtf/PassOwnArrayPtr.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c704b419
    • andersca@apple.com's avatar
      Get rid of FastAllocBase.h · 3d185a87
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120952
      
      Reviewed by Antti Koivisto.
      
      Source/JavaScriptCore:
      
      Include FastMalloc.h instead of FastAllocBase.h.
      
      * assembler/LinkBuffer.h:
      * bytecode/CodeBlock.h:
      * bytecode/StructureStubClearingWatchpoint.h:
      * dfg/DFGFinalizer.h:
      * dfg/DFGLongLivedState.h:
      * dfg/DFGSlowPathGenerator.h:
      * ftl/FTLAbstractHeap.h:
      * heap/JITStubRoutineSet.h:
      * jit/CompactJITCodeMap.h:
      * profiler/ProfilerDatabase.h:
      * profiler/ProfilerExecutionCounter.h:
      
      Source/WebCore:
      
      Include FastMalloc.h instead of FastAllocBase.h.
      
      * Modules/webdatabase/SQLTransactionClient.h:
      * bindings/js/GCController.h:
      * bridge/Bridge.h:
      * bridge/IdentifierRep.h:
      * dom/DocumentStyleSheetCollection.h:
      * dom/TransformSource.h:
      * html/InputType.h:
      * inspector/InspectorCounters.h:
      * inspector/InstrumentingAgents.h:
      * inspector/WorkerInspectorController.h:
      * loader/cache/CachedResourceClient.h:
      * page/FrameActionScheduler.h:
      * platform/Length.h:
      * platform/MemoryPressureHandler.h:
      * platform/ScrollAnimator.h:
      * platform/SharedTimer.h:
      * platform/audio/gstreamer/FFTFrameGStreamer.cpp:
      * platform/cairo/WidgetBackingStore.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontData.h:
      * platform/graphics/Path.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/transforms/AffineTransform.h:
      * platform/graphics/transforms/TransformationMatrix.h:
      * platform/gtk/GtkDragAndDropHelper.h:
      * platform/gtk/GtkPopupMenu.h:
      * platform/network/NetworkStateNotifier.h:
      * platform/sql/SQLiteTransaction.h:
      * platform/text/enchant/TextCheckerEnchant.h:
      * rendering/RenderArena.h:
      * rendering/TableLayout.h:
      * rendering/style/StyleCustomFilterProgram.h:
      * rendering/style/StyleCustomFilterProgramCache.h:
      * svg/SVGPathConsumer.h:
      * workers/WorkerScriptLoader.h:
      
      Source/WTF:
      
      FastAllocBase.h now only contains the WTF_MAKE_FAST_ALLOCATED macro.
      Move that macro to FastMalloc.h instead and remove FastAllocBase.h.
      
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/DeferrableRefCounted.h:
      * wtf/FastAllocBase.h: Removed.
      * wtf/FastMalloc.h:
      * wtf/HashSet.h:
      * wtf/MediaTime.h:
      * wtf/PrintStream.h:
      * wtf/RefCounted.h:
      * wtf/RefPtr.h:
      * wtf/ThreadingPrimitives.h:
      * wtf/Vector.h:
      * wtf/gobject/GMutexLocker.h:
      * wtf/unicode/Collator.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d185a87
  32. 06 Sep, 2013 1 commit
    • andersca@apple.com's avatar
      Add a new smart pointer type for fastMalloc'ed memory · fb72153f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120911
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Update for WTF changes.
      
      * platform/network/cf/FormDataStreamCFNet.cpp:
      (WebCore::advanceCurrentStream):
      
      Source/WTF:
      
      Due to an oversight on my part, Vector::releaseBuffer() currently returns an OwnPtr
      which means that its data will be freed with operator delete instead of fastFree.
      
      Fix this by introducing a new MllocPtr smart pointer class and change Vector::releaseBuffer() to return it instead.
      
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/FastAllocBase.h:
      * wtf/MallocPtr.h: Added.
      * wtf/Vector.h:
      * wtf/text/StringBuffer.h:
      * wtf/text/StringImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb72153f