1. 22 Aug, 2013 1 commit
  2. 20 Aug, 2013 1 commit
    • rniwa@webkit.org's avatar
      <https://webkit.org/b/120049> Delete code for Snow Leopard · 3feac41c
      rniwa@webkit.org authored
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      Delete all the code for Mac OS 10.6. Nobody builds on Snow Leopard at this point.
      
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      * editing/mac/EditorMac.mm:
      (WebCore::Editor::pasteWithPasteboard):
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::populate):
      * platform/LocalizedStrings.cpp:
      (WebCore::truncatedStringForLookupMenuItem):
      (WebCore::contextMenuItemTagSearchWeb):
      (WebCore::contextMenuItemTagLookUpInDictionary):
      * platform/MemoryPressureHandler.cpp:
      * platform/audio/mac/AudioBusMac.mm:
      (WebCore::AudioBus::loadPlatformResource):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (PlatformCALayer::acceleratesDrawing):
      (PlatformCALayer::setAcceleratesDrawing):
      (PlatformCALayer::contentsScale):
      (PlatformCALayer::setContentsScale):
      (PlatformCALayer::synchronouslyDisplayTilesInRect):
      * platform/graphics/ca/mac/TileController.mm:
      (WebCore::TileController::setScale):
      (WebCore::TileController::setAcceleratesDrawing):
      (WebCore::TileController::createTileLayer):
      * platform/graphics/cg/ImageBufferDataCG.cpp:
      (WebCore::ImageBufferData::getData):
      (WebCore::ImageBufferData::putData):
      * platform/graphics/cg/ImageBufferDataCG.h:
      * platform/graphics/cg/PathCG.cpp:
      (WebCore::Path::platformAddPathForRoundedRect):
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      (WebCore::FontPlatformData::FontPlatformData):
      (WebCore::FontPlatformData::setFont):
      * platform/graphics/mac/FontMac.mm:
      (WebCore::showGlyphsWithAdvances):
      * platform/graphics/mac/GraphicsContextMac.mm:
      (WebCore::GraphicsContext::drawLineForDocumentMarker):
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      (WebCore::MediaPlayerPrivateQTKit::createQTMovie):
      (WebCore::MediaPlayerPrivateQTKit::layerHostChanged):
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      * platform/mac/CursorMac.mm:
      (WebCore::Cursor::ensurePlatformCursor):
      * platform/mac/EmptyProtocolDefinitions.h: Removed.
      * platform/mac/MemoryPressureHandlerMac.mm:
      (WebCore::MemoryPressureHandler::releaseMemory):
      * platform/mac/NSScrollerImpDetails.h:
      * platform/mac/PlatformEventFactoryMac.mm:
      (WebCore::momentumPhaseForEvent):
      (WebCore::phaseForEvent):
      * platform/mac/ScrollAnimatorMac.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/mac/ResourceRequestMac.mm:
      (WebCore::ResourceRequest::doUpdateResourceRequest):
      (WebCore::ResourceRequest::doUpdatePlatformRequest):
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/mac/HyphenationMac.mm: Removed.
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::containsPaintedContent):
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::shouldShowPlaceholderWhenFocused):
      
      Source/WebKit/mac:
      
      * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
      (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
      (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
      * Misc/WebNSControlExtras.m:
      (-[NSControl sizeToFitAndAdjustWindowHeight]):
      * Misc/WebNSFileManagerExtras.mm:
      * WebCoreSupport/WebEditorClient.mm:
      (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
      (WebEditorClient::getGuessesForWord):
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::dispatchDidLayout):
      (WebFrameLoaderClient::provisionalLoadStarted):
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      * WebKitPrefix.h:
      * WebView/WebDynamicScrollBarsView.mm:
      (-[WebDynamicScrollBarsView scrollWheel:]):
      * WebView/WebFullScreenController.mm:
      (convertRectToScreen):
      (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
      (-[WebFullScreenController exitFullScreen]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
      (-[WebHTMLView removeMouseMovedObserver]):
      (-[WebHTMLView windowDidBecomeKey:]):
      (-[WebHTMLView windowDidResignKey:]):
      * WebView/WebView.mm:
      (-[WebView _deviceScaleFactor]):
      
      Source/WebKit2:
      
      * NetworkProcess/mac/NetworkProcessMac.mm:
      (WebKit::overrideSystemProxies):
      (WebKit::NetworkProcess::platformInitializeNetworkProcess):
      * WebKit2Prefix.h:
      
      Source/WTF:
      
      * wtf/FastMalloc.cpp:
      (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
      * wtf/FeatureDefines.h:
      * wtf/Platform.h:
      
      Tools:
      
      * DumpRenderTree/mac/CheckedMalloc.cpp:
      (protectionOfRegion):
      (makeLargeMallocFailSilently):
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetDefaultsToConsistentValues):
      * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
      (-[DumpRenderTreeDraggingInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]):
      * DumpRenderTree/mac/FrameLoadDelegate.mm:
      (testPathFromURL):
      (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]):
      * DumpRenderTree/mac/LayoutTestHelper.m:
      * DumpRenderTree/mac/TestRunnerMac.mm:
      * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
      (WTR::InjectedBundle::platformInitialize):
      * WebKitTestRunner/InjectedBundle/mac/InjectedBundlePageMac.mm:
      (WTR::testPathFromURL):
      (WTR::InjectedBundlePage::platformDidStartProvisionalLoadForFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3feac41c
  3. 22 May, 2013 1 commit
    • simon.fraser@apple.com's avatar
      Fix issues with focus rings on search fields · e6f87cef
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116591
      
      Source/WebCore:
      
      Reviewed by Darin Adler.
      
      On a future OS, the rect returned by _focusRingVisibleRect should
      be in the coordinate system of the that NSView, not the base
      coordinate system, so fix the code that sets and reads the global
      focusRingClipRect variable accordingly.
      
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      * platform/mac/ThemeMac.mm:
      (-[WebCoreFlippedView _focusRingVisibleRect]):
      
      Source/WebKit/mac:
      
      Reviewed by Darin Adler.
      
      In WebKit1, focus rings didn't render correctly on some OSes until
      some other control drew a focus ring, which changes internal AppKit state
      on the focused view. Fix by overriding an internal AppKit method to always
      disable AppKit's "automatic" focus ring drawing.
      
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView _automaticFocusRingDisabled]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6f87cef
  4. 12 May, 2013 1 commit
    • andersca@apple.com's avatar
      Stop including UnusedParam.h · ed9bde7b
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116003
      
      Reviewed by Sam Weinig.
      
      UnusedParam.h is empty now so there's no need to include it anymore.
      
      Source/JavaScriptCore:
      
      * API/APICast.h:
      * API/tests/JSNode.c:
      * API/tests/JSNodeList.c:
      * API/tests/minidom.c:
      * API/tests/testapi.c:
      * assembler/AbstractMacroAssembler.h:
      * assembler/MacroAssemblerCodeRef.h:
      * bytecode/CodeBlock.cpp:
      * heap/HandleStack.h:
      * interpreter/JSStackInlines.h:
      * jit/CompactJITCodeMap.h:
      * jit/ExecutableAllocator.h:
      * parser/SourceProvider.h:
      * runtime/DatePrototype.cpp:
      * runtime/JSNotAnObject.cpp:
      * runtime/JSSegmentedVariableObject.h:
      * runtime/JSVariableObject.h:
      * runtime/Options.cpp:
      * runtime/PropertyOffset.h:
      
      Source/WebCore:
      
      * Modules/encryptedmedia/CDMPrivateAVFoundation.mm:
      * Modules/indexeddb/IDBFactoryBackendImpl.cpp:
      * Modules/indexeddb/IDBObjectStore.cpp:
      * Modules/webdatabase/DatabaseServer.cpp:
      * Modules/webdatabase/DatabaseThread.cpp:
      * bindings/js/JSDOMWindowBase.cpp:
      * bindings/objc/DOMObject.mm:
      * css/CSSCursorImageValue.cpp:
      * css/DeprecatedStyleBuilder.cpp:
      * dom/EventDispatcher.cpp:
      * dom/Node.cpp:
      * editing/AlternativeTextController.h:
      * editing/Editor.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * html/canvas/OESVertexArrayObject.h:
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLTokenizer.cpp:
      * html/track/InbandTextTrack.cpp:
      * inspector/InspectorCanvasInstrumentation.h:
      * inspector/InspectorConsoleInstrumentation.h:
      * inspector/InspectorController.cpp:
      * inspector/InspectorCounters.h:
      * inspector/InspectorDatabaseInstrumentation.h:
      * inspector/InspectorInstrumentation.h:
      * loader/DocumentThreadableLoader.cpp:
      * loader/PingLoader.cpp:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/cache/CachedResourceLoader.cpp:
      * loader/mac/DocumentLoaderMac.cpp:
      * page/ChromeClient.h:
      * page/Console.cpp:
      * page/FrameView.cpp:
      * page/PageConsole.cpp:
      * page/animation/AnimationController.cpp:
      * page/animation/ImplicitAnimation.cpp:
      * page/animation/KeyframeAnimation.cpp:
      * platform/LocalizedStrings.cpp:
      * platform/ScrollAnimator.h:
      * platform/ThreadGlobalData.cpp:
      * platform/blackberry/AsyncFileSystemBlackBerry.cpp:
      * platform/graphics/Font.cpp:
      * platform/graphics/GlyphBuffer.h:
      * platform/graphics/Gradient.cpp:
      * platform/graphics/ShadowBlur.cpp:
      * platform/graphics/SimpleFontData.cpp:
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
      * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
      * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/blackberry/GradientBlackBerry.cpp:
      * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp:
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/ca/mac/WebTileLayer.mm:
      * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
      * platform/graphics/cg/GraphicsContextCG.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/cg/ImageSourceCG.cpp:
      * platform/graphics/clutter/PlatformClutterAnimation.cpp:
      * platform/graphics/filters/ValidatedCustomFilterOperation.cpp:
      * platform/graphics/gstreamer/GStreamerVersioning.cpp:
      * platform/graphics/mac/GraphicsContext3DMac.mm:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      * platform/graphics/mac/SimpleFontDataMac.mm:
      * platform/graphics/mac/WebGLLayer.mm:
      * platform/graphics/mac/WebLayer.mm:
      * platform/graphics/mac/WebTiledLayer.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      * platform/graphics/texmap/TextureMapper.h:
      * platform/graphics/wince/ImageBufferWinCE.cpp:
      * platform/mac/PasteboardMac.mm:
      * platform/mac/ScrollAnimatorMac.mm:
      * platform/mac/ScrollViewMac.mm:
      * platform/mac/ScrollbarThemeMac.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/WebCoreFullScreenPlaceholderView.mm:
      * platform/mac/WebCoreObjCExtras.mm:
      * platform/mac/WebFontCache.mm:
      * platform/mac/WebVideoFullscreenController.mm:
      * platform/mac/WebVideoFullscreenHUDWindowController.mm:
      * platform/mac/WebWindowAnimation.mm:
      * platform/network/blackberry/CredentialStorageBlackBerry.cpp:
      * platform/network/cf/ResourceErrorCF.cpp:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/win/ResourceHandleWin.cpp:
      * platform/text/TextEncodingDetectorICU.cpp:
      * rendering/RenderFlowThread.h:
      * rendering/RenderImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderObject.cpp:
      * rendering/RenderTreeAsText.cpp:
      * rendering/svg/RenderSVGResourceClipper.cpp:
      * rendering/svg/RenderSVGResourceFilter.cpp:
      * rendering/svg/RenderSVGResourceGradient.cpp:
      * rendering/svg/RenderSVGResourceMasker.cpp:
      * rendering/svg/SVGRenderSupport.cpp:
      * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
      * workers/WorkerContext.cpp:
      * workers/WorkerScriptLoader.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_js.cpp:
      * ewk/ewk_security_origin.cpp:
      * ewk/ewk_view.cpp:
      * ewk/ewk_web_database.cpp:
      
      Source/WebKit/gtk:
      
      * webkit/webkitapplicationcache.cpp:
      
      Source/WebKit/mac:
      
      * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
      * WebView/WebDashboardRegion.mm:
      * WebView/WebFullScreenController.mm:
      
      Source/WebKit/win:
      
      * WebSecurityOrigin.cpp:
      
      Source/WebKit2:
      
      * UIProcess/API/C/WKContext.cpp:
      * UIProcess/API/C/WKInspector.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/efl/ewk_text_checker.cpp:
      * UIProcess/API/efl/ewk_view.cpp:
      * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
      * UIProcess/API/efl/tests/test_ewk2_view.cpp:
      * UIProcess/mac/WKFullScreenWindowController.mm:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
      
      Source/WTF:
      
      * wtf/Atomics.h:
      * wtf/BoundsCheckedPointer.h:
      * wtf/DateMath.h:
      * wtf/FastMalloc.cpp:
      * wtf/NumberOfCores.cpp:
      * wtf/OSAllocator.h:
      * wtf/OSAllocatorPosix.cpp:
      * wtf/PageAllocation.h:
      * wtf/RefCounted.h:
      * wtf/TCSystemAlloc.cpp:
      * wtf/ThreadingPthreads.cpp:
      * wtf/Vector.h:
      * wtf/dtoa/cached-powers.cc:
      * wtf/dtoa/fixed-dtoa.cc:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ed9bde7b
  5. 07 Mar, 2013 1 commit
    • simon.fraser@apple.com's avatar
      Rename Mac's TileCache to TileController, and WebTileCacheLayer to WebTiledBackingLayer · e5c278d3
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111779
      
      Reviewed by Tim Horton.
      
      "TileCache" was a name conflict in downstream code, so rename it to TileController.
      The layer that has a TileController is now a WebTiledBackingLayer (which fits with
      the TiledBacking API that TileController exposes).
      
      Also renamed the flags in PlatformCALayer to match.
      
      Rename only, no behavior change.
      
      * WebCore.xcodeproj/project.pbxproj:
      * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
      (WebCore::ScrollingTreeScrollingNodeMac::logExposedUnfilledArea):
      * platform/graphics/GraphicsLayerClient.h:
      (WebCore::GraphicsLayerClient::shouldUseTiledBacking):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::GraphicsLayerCA):
      (WebCore::GraphicsLayerCA::recursiveCommitChanges):
      (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
      (WebCore::GraphicsLayerCA::platformCALayerDidCreateTiles):
      (WebCore::GraphicsLayerCA::updateVisibleRect):
      (WebCore::GraphicsLayerCA::getDebugBorderInfo):
      (WebCore::GraphicsLayerCA::requiresTiledLayer):
      (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
      * platform/graphics/ca/GraphicsLayerCA.h:
      * platform/graphics/ca/PlatformCALayer.h:
      (WebCore::PlatformCALayer::usesTiledBackingLayer):
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (PlatformCALayer::PlatformCALayer):
      (PlatformCALayer::~PlatformCALayer):
      (PlatformCALayer::tiledBacking):
      * platform/graphics/ca/mac/TileController.h: Renamed from Source/WebCore/platform/graphics/ca/mac/TileCache.h.
      * platform/graphics/ca/mac/WebTileLayer.h:
      (TileController):
      * platform/graphics/ca/mac/WebTileLayer.mm:
      (-[WebTileLayer drawInContext:]):
      (-[WebTileLayer setTileController:WebCore::]):
      (-[WebTileLayer logFilledFreshTile]):
      * platform/graphics/ca/mac/WebTiledBackingLayer.h: Renamed from Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.h.
      * platform/graphics/ca/mac/WebTiledBackingLayer.mm: Renamed from Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm.
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::RenderLayerBacking):
      (WebCore::RenderLayerBacking::shouldUseTiledBacking):
      (WebCore::RenderLayerBacking::adjustTiledBackingCoverage):
      (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
      * rendering/RenderLayerBacking.h:
      (WebCore::RenderLayerBacking::usingTiledBacking):
      (RenderLayerBacking):
      (WebCore::RenderLayerBacking::hasTiledBackingFlatteningLayer):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::frameViewDidLayout):
      (WebCore::RenderLayerCompositor::rootFixedBackgroundsChanged):
      (WebCore::RenderLayerCompositor::supportsFixedRootBackgroundCompositing):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5c278d3
  6. 17 Dec, 2012 1 commit
  7. 29 Nov, 2012 1 commit
    • simon.fraser@apple.com's avatar
      Avoid painting lots of small rects in WebLayer painting · 1a4c1920
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=103673
      
      Reviewed by Tim Horton.
      
      r109186 added code in drawLayerContents() to enumerate over the rects in
      the CALayer's dirty region, and paint them individually. This was done
      to help performance on the IE Maze Solver test.
      
      On large, complex pages like Facebook, the overhead of traversing the
      RenderLayer tree for painting is such that it's better to paint a single,
      or fewer rects rather than lots of little ones.
      
      So adopt a heuristic similar to that in DrawingArea, where if the
      combined area of the small rects is 75% or more of the combined rect,
      just paint the combined rect. Also paint the combined rect if there
      are more than 5 individual rects.
      
      I verified that this preserves the optimization for IE Maze Solver.
      
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a4c1920
  8. 27 Nov, 2012 1 commit
    • psolanki@apple.com's avatar
      objc/objc-runtime.h does not exist on all PLATFORM(MAC) · bcd2d2f2
      psolanki@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101780
      
      Reviewed by Brent Fulgham.
      
      Clean up header includes so we don't include objc/objc-runtime.h.
      
      Source/WebCore:
      
      No new tests because no functional changes.
      
      * bridge/objc/objc_header.h:
      * page/mac/EventHandlerMac.mm:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      * platform/graphics/mac/WebLayer.mm:
      * platform/mac/WebCoreObjCExtras.mm:
      * platform/mac/WebVideoFullscreenController.mm:
      
      Source/WebKit/mac:
      
      * Carbon/HIWebView.mm:
      (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
      * Plugins/WebNetscapePluginView.mm:
      * Plugins/WebPluginContainerCheck.mm:
      (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebCachedFramePlatformData.h:
      * WebCoreSupport/WebDeviceOrientationClient.mm:
      * WebView/WebDelegateImplementationCaching.mm:
      * WebView/WebHTMLView.mm:
      * WebView/WebPDFDocumentExtras.mm:
      * WebView/WebPolicyDelegate.mm:
      (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
      * WebView/WebView.mm:
      
      Source/WebKit2:
      
      * PluginProcess/mac/PluginProcessShim.mm:
      * UIProcess/API/mac/PDFViewController.mm:
      
      Source/WTF:
      
      * wtf/Functional.h:
      * wtf/ObjcRuntimeExtras.h: Include objc/message.h here so we don't rely on proper ordering
      of includes in files that include this header.
      
      Tools:
      
      * DumpRenderTree/mac/DumpRenderTree.mm:
      * DumpRenderTree/mac/ObjCPlugin.m:
      * TestWebKitAPI/mac/InstanceMethodSwizzler.h:
      * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcd2d2f2
  9. 15 Nov, 2012 1 commit
    • mrowe@apple.com's avatar
      Build fix. · 6d8aea9c
      mrowe@apple.com authored
      Disable deprecation warnings in a few places that need it.
      
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::drawRepaintCounter):
      * platform/graphics/mac/FontMac.mm:
      (WebCore::showGlyphsWithAdvances):
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d8aea9c
  10. 16 Oct, 2012 1 commit
    • simon.fraser@apple.com's avatar
      Add a new layer type for the page tiled cache layer · 29a3693e
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99491
      
      Reviewed by Dean Jackson.
      
      In preparation for using tile cache layers in place of CATiledLayer,
      add a new PlatformCALayer layer type LayerTypePageTileCacheLayer,
      since the page tile cache will have some different behavior from
      other tile cache layers.
      
      Generalize code that was looking at LayerTypeTileCacheLayer to use
      usesTileCacheLayer() if it applies to both types of tile caches.
      
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::GraphicsLayerCA):
      (WebCore::GraphicsLayerCA::recursiveCommitChanges): Show the tile
      wash for tiled layers as well as layers with transforms (the tile
      wash is just for debugging).
      (WebCore::GraphicsLayerCA::platformCALayerDidCreateTiles):
      (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
      * platform/graphics/ca/PlatformCALayer.h:
      (WebCore::PlatformCALayer::usesTileCacheLayer):
      (PlatformCALayer):
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (PlatformCALayer::PlatformCALayer):
      (PlatformCALayer::~PlatformCALayer):
      (PlatformCALayer::tiledBacking):
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents): Avoid double-drawing the repaint counter in tile cache layers.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29a3693e
  11. 08 Oct, 2012 1 commit
    • simon.fraser@apple.com's avatar
      Some GraphicsLayer cleanup to separate the concepts of using a tile cache, and... · fa14743d
      simon.fraser@apple.com authored
      Some GraphicsLayer cleanup to separate the concepts of using a tile cache, and being the main tile cache layer
      https://bugs.webkit.org/show_bug.cgi?id=98574
      
      Reviewed by Dean Jackson.
      
      GraphicsLayerCA assumed that using a TileCache equated to being the main page tile
      cache layer, which has some special considerations. Make these two concepts separate
      to get closer to being able to use TileCaches in place of CATiledLayer.
      
      Source/WebCore:
      
      * platform/graphics/GraphicsLayer.h:
      (GraphicsLayer): Remove m_usingTileCache member, which was not appropriate
      for this class to have.
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::GraphicsLayer): Remove init of m_usingTileCache.
      (WebCore::GraphicsLayer::debugBorderInfo): Can no longer use m_usingTileCache to
      get the blue color, so moved code into a virtual debugBorderInfo() method.
      (WebCore::GraphicsLayer::updateDebugIndicators): Call the virtual debugBorderInfo().
      * platform/graphics/GraphicsLayerClient.h: Remove the usingTileCache() callback;
      we now just cache this information in the GraphicsLayerCA on creation.
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::GraphicsLayerCA): Init m_isPageTileCacheLayer to false,
      then set to m_isPageTileCacheLayer if the client says we should create a tile cache.
      (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter): Overidden to avoid duplicate repaint
      counters in the top-left tile.
      (WebCore::GraphicsLayerCA::updateLayerBackgroundColor): If this layer is the page tile cache layer,
      we allow setting of its background color.
      (WebCore::GraphicsLayerCA::debugBorderInfo): Overidden to use a blue color for tiles.
      (WebCore::GraphicsLayerCA::requiresTiledLayer): Don't make CATiledLayers for the page tile cache.
      * platform/graphics/ca/GraphicsLayerCA.h:
      (GraphicsLayerCA):
      * platform/graphics/ca/PlatformCALayerClient.h:
      (PlatformCALayerClient): Need to pass the platform layer into platformCALayerShowRepaintCounter()
      so we can distinguish between calls for tiles, and calls for the tile cache layer itself.
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::shouldShowRepaintCounters): Pass 0 to platformCALayerShowRepaintCounter() to
      indicate that we're asking about a tile.
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents): Now we can just rely on platformCALayerShowRepaintCounter() to tell us whether
      to draw the repaint counter.
      (-[WebLayer setNeedsDisplayInRect:]):
      * platform/graphics/mac/WebTiledLayer.mm:
      (-[WebTiledLayer setNeedsDisplayInRect:]):
      * rendering/RenderLayerBacking.h:
      (WebCore::RenderLayerBacking::usingTileCache):
      (RenderLayerBacking):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::documentBackgroundColorDidChange): We can ask the RenderLayerBacking
      whether it's for the tile cache, rather than going to the GraphicsLayer.
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
      (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
      
      Source/WebKit/win:
      
      * FullscreenVideoController.cpp:
      (FullscreenVideoController::LayerClient::platformCALayerShowRepaintCounter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa14743d
  12. 14 Jul, 2012 1 commit
    • mrowe@apple.com's avatar
      Make it explicit which code paths iOS should use when doing checks based on OS X versions. · e3cb3cf9
      mrowe@apple.com authored
      Rubber-stamped by David Kilzer.
      
      * WebCore.exp.in:
      * accessibility/AccessibilityList.h:
      * accessibility/AccessibilityTable.h:
      * accessibility/mac/AXObjectCacheMac.mm:
      * editing/mac/EditorMac.mm:
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      * page/AlternativeTextClient.h:
      * page/mac/SettingsMac.mm:
      * platform/LocalizedStrings.cpp:
      * platform/MemoryPressureHandler.cpp:
      * platform/audio/mac/AudioBusMac.mm:
      * platform/graphics/Gradient.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/ca/mac/TileCache.mm:
      * platform/graphics/cg/GraphicsContextCG.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/cg/ImageBufferDataCG.h:
      * platform/graphics/cg/ImageCG.cpp:
      * platform/graphics/cg/ImageSourceCG.cpp:
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      * platform/graphics/mac/ComplexTextController.cpp:
      * platform/graphics/mac/ComplexTextControllerCoreText.mm:
      * platform/graphics/mac/FontCacheMac.mm:
      * platform/graphics/mac/FontCustomPlatformData.cpp:
      * platform/graphics/mac/FontMac.mm:
      * platform/graphics/mac/GraphicsContextMac.mm:
      * platform/graphics/mac/SimpleFontDataMac.mm:
      * platform/graphics/mac/WebLayer.h:
      * platform/graphics/mac/WebLayer.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * platform/mac/DisplaySleepDisabler.cpp:
      * platform/mac/DisplaySleepDisabler.h:
      * platform/mac/HTMLConverter.h:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/MemoryPressureHandlerMac.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/SuddenTermination.mm:
      * platform/mac/WebFontCache.mm:
      * platform/network/Credential.h:
      * platform/network/ResourceHandle.h:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/cf/ProxyServerCFNet.cpp:
      * platform/network/cf/ResourceRequest.h:
      * platform/network/cf/SocketStreamHandleCFNet.cpp:
      * platform/network/mac/AuthenticationMac.mm:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/mac/ResourceRequestMac.mm:
      * platform/network/mac/WebCoreURLResponse.mm:
      * platform/text/TextChecking.h:
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/mac/HyphenationMac.mm:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerCompositor.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e3cb3cf9
  13. 11 Jul, 2012 1 commit
    • mrowe@apple.com's avatar
      <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of... · d67332ee
      mrowe@apple.com authored
      <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
      
      This removal was handled by a script that translates the relevant macros in to the equivalent checks
      using the system availability macros.
      
      Reviewed by Filip Pizlo.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * accessibility/AccessibilityList.h:
      * accessibility/AccessibilityTable.h:
      * accessibility/mac/AXObjectCacheMac.mm:
      * editing/mac/EditorMac.mm:
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      * page/AlternativeTextClient.h:
      * page/ContextMenuController.cpp:
      * page/mac/SettingsMac.mm:
      * platform/LocalizedStrings.cpp:
      * platform/MemoryPressureHandler.cpp:
      * platform/audio/mac/AudioBusMac.mm:
      * platform/graphics/Gradient.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/ca/mac/TileCache.mm:
      * platform/graphics/cg/GraphicsContextCG.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/cg/ImageBufferDataCG.cpp:
      * platform/graphics/cg/ImageBufferDataCG.h:
      * platform/graphics/cg/ImageCG.cpp:
      * platform/graphics/cg/ImageSourceCG.cpp:
      * platform/graphics/cg/PathCG.cpp:
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      * platform/graphics/mac/ComplexTextController.cpp:
      * platform/graphics/mac/ComplexTextControllerCoreText.mm:
      * platform/graphics/mac/FontCacheMac.mm:
      * platform/graphics/mac/FontCustomPlatformData.cpp:
      * platform/graphics/mac/FontMac.mm:
      * platform/graphics/mac/GraphicsContextMac.mm:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      * platform/graphics/mac/SimpleFontDataMac.mm:
      * platform/graphics/mac/WebLayer.h:
      * platform/graphics/mac/WebLayer.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * platform/mac/CursorMac.mm:
      * platform/mac/DisplaySleepDisabler.cpp:
      * platform/mac/DisplaySleepDisabler.h:
      * platform/mac/EmptyProtocolDefinitions.h:
      * platform/mac/HTMLConverter.h:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/MemoryPressureHandlerMac.mm:
      * platform/mac/NSScrollerImpDetails.h:
      * platform/mac/PlatformEventFactoryMac.mm:
      * platform/mac/PopupMenuMac.mm:
      * platform/mac/ScrollAnimatorMac.mm:
      * platform/mac/ScrollElasticityController.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/SuddenTermination.mm:
      * platform/mac/WebCoreFullScreenWindow.mm:
      * platform/mac/WebCoreNSCellExtras.h:
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      * platform/mac/WebFontCache.mm:
      * platform/mac/WebVideoFullscreenController.mm:
      * platform/mac/WebVideoFullscreenHUDWindowController.mm:
      * platform/network/Credential.h:
      * platform/network/ResourceHandle.h:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/cf/ProxyServerCFNet.cpp:
      * platform/network/cf/ResourceRequest.h:
      * platform/network/cf/ResourceRequestCFNet.cpp:
      * platform/network/cf/SocketStreamHandleCFNet.cpp:
      * platform/network/mac/AuthenticationMac.mm:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/mac/ResourceRequestMac.mm:
      * platform/network/mac/WebCoreURLResponse.mm:
      * platform/text/TextChecking.h:
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/mac/HyphenationMac.mm:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderThemeMac.mm:
      
      Source/WebKit/chromium:
      
      * src/mac/WebInputEventFactory.mm:
      
      Source/WebKit/mac:
      
      * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
      * Misc/WebKitErrors.m:
      * Misc/WebNSControlExtras.m:
      * Misc/WebNSFileManagerExtras.mm:
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebNetscapePluginView.mm:
      * WebCoreSupport/WebChromeClient.mm:
      * WebCoreSupport/WebEditorClient.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebSystemInterface.mm:
      * WebView/WebClipView.mm:
      * WebView/WebDynamicScrollBarsView.mm:
      * WebView/WebFrameView.mm:
      * WebView/WebFullScreenController.mm:
      * WebView/WebHTMLView.mm:
      * WebView/WebHTMLViewInternal.h:
      * WebView/WebPDFDocumentExtras.mm:
      * WebView/WebPreferences.mm:
      * WebView/WebResourceInternal.h:
      * WebView/WebScriptDebugDelegate.h:
      * WebView/WebView.mm:
      * WebView/WebViewPrivate.h:
      
      Source/WebKit2:
      
      * Shared/DictionaryPopupInfo.cpp:
      * Shared/DictionaryPopupInfo.h:
      * Shared/mac/PasteboardTypes.mm:
      * Shared/mac/WebEventFactory.mm:
      * UIProcess/API/mac/PDFViewController.mm:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.h:
      * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
      * UIProcess/Launcher/mac/EnvironmentVariables.cpp:
      * UIProcess/Launcher/mac/EnvironmentVariables.h:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/mac/TextCheckerMac.mm:
      * UIProcess/mac/WKFullScreenWindowController.mm:
      * UIProcess/mac/WebContextMac.mm:
      * UIProcess/mac/WebPageProxyMac.mm:
      * WebKit2Prefix.h:
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/com.apple.WebProcess.sb.in:
      * WebProcess/mac/KeychainItemShimMethods.mm:
      * WebProcess/mac/SecItemShimMethods.mm:
      * WebProcess/mac/WebProcessMac.mm:
      * WebProcess/mac/WebProcessMainMac.mm:
      * WebProcess/mac/WebProcessShim.mm:
      
      Source/WTF:
      
      * wtf/Assertions.cpp:
      * wtf/FastMalloc.cpp:
      * wtf/Platform.h:
      * wtf/ThreadingPthreads.cpp:
      * wtf/unicode/icu/CollatorICU.cpp:
      
      Tools:
      
      * DumpRenderTree/cf/WebArchiveDumpSupport.cpp:
      * DumpRenderTree/mac/CheckedMalloc.cpp:
      * DumpRenderTree/mac/DumpRenderTree.mm:
      * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      * DumpRenderTree/mac/TextInputController.m:
      * TestWebKitAPI/mac/InjectedBundleControllerMac.mm:
      * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
      * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d67332ee
  14. 03 May, 2012 1 commit
  15. 19 Apr, 2012 1 commit
  16. 06 Mar, 2012 1 commit
  17. 03 Mar, 2012 1 commit
    • andersca@apple.com's avatar
      Fix build with newer versions of clang. · 43578ad3
      andersca@apple.com authored
      Source/WebCore:
      
      * bindings/objc/DOM.mm:
      (-[DOMNode description]):
      Remove an unused parameter.
      
      * bridge/objc/objc_instance.mm:
      (ObjcInstance::getClass):
      Use object_getClass instead of accessing isa directly.
      
      * platform/LocalizedStrings.cpp:
      (WebCore::formatLocalizedString):
      Disable the -Wformat-nonliteral warning around the call to CFStringCreateWithFormatAndArguments.
      
      * platform/graphics/mac/WebLayer.mm:
      (-[CALayer _descriptionWithPrefix:]):
      Use %p for the CALayer pointer, and use %lu for the number of sublayers.
      
      * platform/mac/HTMLConverter.mm:
      (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
      Cast the NSAttachmentCharacte enum to unichar.
      
      Source/WebKit/mac:
      
      * Panels/WebAuthenticationPanel.m:
      (-[WebAuthenticationPanel setUpForChallenge:]):
      Use %ld and cast to long.
      
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView getVariable:value:]):
      Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
      
      Source/WebKit2:
      
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      (WebKit::NPN_GetValue):
      Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43578ad3
  18. 28 Feb, 2012 1 commit
  19. 30 Jan, 2012 1 commit
    • andersca@apple.com's avatar
      Show debug borders for individual tile cache tiles · 7a4286d6
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77388
      
      Reviewed by Sam Weinig.
      
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::updateDebugIndicators):
      Give tile cache tiles a thin dark blue border.
      
      * platform/graphics/ca/mac/TileCache.h:
      (WebCore::TileCache::tileDebugBorderWidth):
      (WebCore::TileCache::tileDebugBorderColor):
      Add getters and member variables for the tile debug border width and color.
      
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::TileCache):
      Initialize m_tileDebugBorderWidth.
      
      (WebCore::TileCache::setTileDebugBorderWidth):
      Update the border width of each tile layer.
      
      (WebCore::TileCache::setTileDebugBorderColor):
      Update the border color of each tile layer.
      
      (WebCore::TileCache::createTileLayer):
      Set the border color and border width.
      
      * platform/graphics/ca/mac/WebTileCacheLayer.h:
      * platform/graphics/ca/mac/WebTileCacheLayer.mm:
      (-[WebTileCacheLayer borderColor]):
      (-[WebTileCacheLayer setBorderColor:]):
      (-[WebTileCacheLayer borderWidth]):
      (-[WebTileCacheLayer setBorderWidth:]):
      Call through to the TileCache.
      
      * platform/graphics/mac/WebLayer.mm:
      (drawLayerContents):
      Don't draw the repaint counter for tile cache layers, each tile will maintain its own repaint counter.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a4286d6
  20. 12 Dec, 2011 1 commit
    • simon.fraser@apple.com's avatar
      Make it possible to substitute a different CALayer implementation for the main root layer · 5429b7fd
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=74369
      
      Reviewed by Anders Carlsson.
      
      Some platforms may wish to have the main root layer (which corresponds with
      the main frame's RenderView's layer) implemented by a custom platform layer,
      for example to contain a cache of tiles.
      
      Make this possible on Mac by adding a new method to GraphicsLayerClient(),
      and implementing it in RenderLayerBacking. This new behavior is not yet enabled.
      
      Also clean up some WebLayer/WebTiledLayer code.
      
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/GraphicsLayerClient.h:
      (WebCore::GraphicsLayerClient::shouldUseTileCache): New client method that indicates that the GraphicsLayer
      should host a tile cache layer instead of a normal layer.
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::GraphicsLayerCA): Ask the client, if any, whether to create a tile cache layer.
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm: NSClassFromString(@"CATransformLayer") was for Leopard;
      we can just use the classname now. Handle LayerTypeTileCacheLayer.
      (PlatformCALayer::PlatformCALayer):
      * platform/graphics/ca/mac/WebTileCacheLayer.h: Copied from Source/WebCore/platform/graphics/mac/WebLayer.h.
      * platform/graphics/ca/mac/WebTileCacheLayer.mm: Copied from Source/WebCore/platform/graphics/mac/WebLayer.h.
      * platform/graphics/mac/WebLayer.h: Remove the setLayerNeedsDisplayInRect() hackery.
      * platform/graphics/mac/WebLayer.mm: setLayerNeedsDisplayInRect() tried to share code between WebLayer and WebTiledLayer
      by using Obj-C runtime methods to find the superclass. This causes infinite recursion if Web[Tiled]Layer is subclassed,
      so remove it.
      (-[WebLayer setNeedsDisplayInRect:]): Code moved here from setLayerNeedsDisplayInRect.
      * platform/graphics/mac/WebTiledLayer.mm:
      (-[WebTiledLayer setNeedsDisplayInRect:]): Code copied here from setLayerNeedsDisplayInRect.
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::RenderLayerBacking): Find out, and cache if we're the main frame's layer.
      (WebCore::RenderLayerBacking::shouldUseTileCache): Return m_usingTiledCacheLayer, which is always false for now.
      (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer): Use m_isMainFrameRenderViewLayer.
      (WebCore::RenderLayerBacking::paintingGoesToWindow): The tile cache layer needs to paint itself.
      * rendering/RenderLayerBacking.h:
      * rendering/RenderLayerCompositor.h: m_compositeForFixedPosition was unused.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5429b7fd
  21. 14 Nov, 2011 1 commit
  22. 29 Oct, 2011 1 commit
  23. 24 Oct, 2011 1 commit
  24. 10 Jun, 2011 1 commit
  25. 15 Mar, 2011 2 commits
    • simon.fraser@apple.com's avatar
      2011-03-15 Simon Fraser <simon.fraser@apple.com> · 1a0df7d0
      simon.fraser@apple.com authored
              Fix Lion build after r81161.
      
              Pass the PlatformCALayer down into drawLayerContents()
              so we can use its acceleratesDrawing() method.
      
              * platform/graphics/mac/WebLayer.h:
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
              (-[WebLayer drawInContext:]):
              * platform/graphics/mac/WebTiledLayer.mm:
              (-[WebTiledLayer drawInContext:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a0df7d0
    • simon.fraser@apple.com's avatar
      2011-03-15 Simon Fraser <simon.fraser@apple.com> · e6618ce4
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Disable ShadowBlur shadow drawing in accelerated contexts
              https://bugs.webkit.org/show_bug.cgi?id=56392
      
              When drawing into a graphics context that is accelerated, don't use
              ShadowBlur, because it may be slower.
      
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::fillRoundedRect):
              (WebCore::GraphicsContext::fillRectWithRoundedHole):
              (WebCore::GraphicsContext::setIsCALayerContext):
              (WebCore::GraphicsContext::isCALayerContext):
              (WebCore::GraphicsContext::setIsAcceleratedContext):
              (WebCore::GraphicsContext::isAcceleratedContext):
              * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6618ce4
  26. 15 Feb, 2011 1 commit
    • simon.fraser@apple.com's avatar
      2011-02-15 Simon Fraser <simon.fraser@apple.com> · b8a86e65
      simon.fraser@apple.com authored
              Reviewed by Sam Weinig.
      
              Fix scrollbar rendering crash when rendered into a layer
              https://bugs.webkit.org/show_bug.cgi?id=54494
      
              The scroller delegate was failing to return a layer in a case
              where the scroller was still rendering into a GraphicsLayer, because
              even though WebCore had switched out of compositing mode, the
              DrawingAreaImpl was still rendering into its nonCompositedContent
              layer. This happens when the m_exitCompositingTimer timer hasn't fired
              yet.
      
              The fix is to track whether we're drawing into a layer via the
              GraphicsContext, rather than asking about compositing layers.
      
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::setIsCALayerContext):
              (WebCore::GraphicsContext::isCALayerContext):
              Getter and setter for the bit that says if we're rendering into a CALayer.
      
              * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              Store a bool for whether this context targets a layer.
      
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents): Call setIsCALayerContext(true).
      
              * platform/mac/ScrollAnimatorMac.h:
              (WebCore::ScrollAnimatorMac::setIsDrawingIntoLayer):
              (WebCore::ScrollAnimatorMac::isDrawingIntoLayer):
              New methods to get and set a flag that says when we're
              drawing into a layer, so that the delegate can get at this state.
      
              * platform/mac/ScrollAnimatorMac.mm:
              (-[ScrollbarPainterDelegate layer]): Use isDrawingIntoLayer()
              (WebCore::ScrollAnimatorMac::ScrollAnimatorMac): Init the flag.
      
              * platform/mac/ScrollbarThemeMac.mm:
              (WebCore::ScrollbarThemeMac::unregisterScrollbar): Whitespace.
              (WebCore::ScrollbarThemeMac::paint): Push the "isDrawingIntoLayer"
              state down onto ScrollAnimatorMac, getting it from the GraphicsContext.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8a86e65
  27. 08 Jan, 2011 1 commit
  28. 07 Jan, 2011 1 commit
  29. 06 Jan, 2011 2 commits
    • cmarrin@apple.com's avatar
      2011-01-06 Chris Marrin <cmarrin@apple.com> · 06a44e06
      cmarrin@apple.com authored
              Unreviewed.
      
              Back out changes in http://trac.webkit.org/changeset/75199
              This breaks the Windows build. Fixing it on that side. Until
              then I'll back this out.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06a44e06
    • cmarrin@apple.com's avatar
      2011-01-06 Chris Marrin <cmarrin@apple.com> · aadf23f4
      cmarrin@apple.com authored
              Reviewed by Simon Fraser.
      
              Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
              https://bugs.webkit.org/show_bug.cgi?id=49388
      
              Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
              used to communicate from PlatformCALayer to the owner. This replaces passing
              GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
              API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
              the PlatformCALayerClient API.
      
              This change has little impact on the Mac side but makes the Windows
              interface simpler, especially when handling video layers on Windows.
      
              * WebCore.xcodeproj/project.pbxproj:
              * config.h:
              * platform/graphics/GraphicsLayer.h:
              (WebCore::GraphicsLayer::layerDidDisplay):
              (WebCore::GraphicsLayer::showDebugBorders):
              (WebCore::GraphicsLayer::showRepaintCounter):
              * platform/graphics/ca/GraphicsLayerCA.cpp:
              (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
              (WebCore::GraphicsLayerCA::setContentsToImage):
              (WebCore::GraphicsLayerCA::setContentsToMedia):
              (WebCore::GraphicsLayerCA::layerDidDisplay):
              (WebCore::GraphicsLayerCA::updateSublayerList):
              * platform/graphics/ca/GraphicsLayerCA.h:
              (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
              (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
              (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
              (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
              (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
              (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
              (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
              (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
              (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
              (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
              (WebCore::GraphicsLayerCA::platformCALayer):
              * platform/graphics/ca/PlatformCALayer.h:
              (WebCore::PlatformCALayer::owner):
              (WebCore::PlatformCALayer::animationStarted):
              * platform/graphics/ca/PlatformCALayerClient.h: Added.
              (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
              * platform/graphics/ca/mac/PlatformCALayerMac.mm:
              (PlatformCALayer::setOwner):
              (PlatformCALayer::create):
              (PlatformCALayer::PlatformCALayer):
              (PlatformCALayer::contents):
              (PlatformCALayer::setContents):
              * platform/graphics/mac/WebGLLayer.mm:
              (-[WebGLLayer display]):
              * platform/graphics/mac/WebLayer.h:
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
              (setLayerNeedsDisplayInRect):
              (-[WebLayer setNeedsDisplay]):
              (-[WebLayer display]):
              * platform/graphics/mac/WebTiledLayer.mm:
              (-[WebTiledLayer setNeedsDisplay]):
              (-[WebTiledLayer display]):
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::showDebugBorders):
              (WebCore::RenderLayerBacking::showRepaintCounter):
              * rendering/RenderLayerCompositor.cpp:
              (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
              * rendering/RenderLayerCompositor.h:
              (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
              (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
              (WebCore::RenderLayerCompositor::notifyAnimationStarted):
              (WebCore::RenderLayerCompositor::notifySyncRequired):
              (WebCore::RenderLayerCompositor::paintContents):
              (WebCore::RenderLayerCompositor::showDebugBorders):
              (WebCore::RenderLayerCompositor::showRepaintCounter):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aadf23f4
  30. 28 Dec, 2010 1 commit
    • dbates@webkit.org's avatar
      2010-12-28 Daniel Bates <dbates@rim.com> · 192a76c1
      dbates@webkit.org authored
              Reviewed by Sam Weinig.
      
              Substitute // MARK: for compiler-specific #pragma mark
              https://bugs.webkit.org/show_bug.cgi?id=51657
      
              For consistency, we should substitute "// MARK:" for compiler-
              specific "#pragma mark" in the source files for the Mac port.
      
              * History/WebHistory.mm:
              * Plugins/WebBaseNetscapePluginView.mm:
              * Plugins/WebNetscapePluginView.mm:
              * WebCoreSupport/WebInspectorClient.mm:
              * WebCoreSupport/WebSecurityOrigin.mm:
              * WebView/WebPDFView.mm:
              * WebView/WebVideoFullscreenController.mm:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
      2010-12-28  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Sam Weinig.
      
              Substitute // MARK: for compiler-specific #pragma mark
              https://bugs.webkit.org/show_bug.cgi?id=51657
      
              Fix compilation warnings about "#pragma mark" on GTK+ bots by
              substituting  "// MARK:" for "#pragma mark", which provides
              analogous code-bookmarking functionality under Xcode.
      
              * platform/graphics/cg/PathCG.cpp:
              * platform/graphics/mac/WebLayer.mm:
      2010-12-28  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Sam Weinig.
      
              Substitute // MARK: for compiler-specific #pragma mark
              https://bugs.webkit.org/show_bug.cgi?id=51657
      
              Fix future compilation warnings about "#pragma mark" on GTK+ bots by
              substituting  "// MARK:" for "#pragma mark", which provides
              analogous code-bookmarking functionality under Xcode.
      
              Also, for consistency, we should substitute "// MARK:" for compiler-
              specific "#pragma mark" in the source files for the Mac port.
      
              * DumpRenderTree/AccessibilityTextMarker.cpp:
              * DumpRenderTree/cf/WebArchiveDumpSupport.h:
              * DumpRenderTree/mac/AccessibilityTextMarkerMac.mm:
              * DumpRenderTree/mac/ObjCController.m:
              * MiniBrowser/mac/AppDelegate.m:
              * MiniBrowser/mac/BrowserWindowController.m:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      192a76c1
  31. 15 Dec, 2010 2 commits
    • simon.fraser@apple.com's avatar
      2010-12-15 Simon Fraser <simon.fraser@apple.com> · 47b96b28
      simon.fraser@apple.com authored
              Reviewed by Adele Peterson.
      
              WebKit2 in compositing mode no longer has font smoothing
              https://bugs.webkit.org/show_bug.cgi?id=50733
      
              Only turn off font smoothing for layers whose contents are
              not opaque. This allows the root GraphicsLayer in WebKit2 to
              set the opaque flag, and get smoothed text.
      
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
      
      2010-12-15  Simon Fraser  <simon.fraser@apple.com>
      
              Reviewed by Adele Peterson.
      
              WebKit2 in compositing mode no longer has font smoothing
              https://bugs.webkit.org/show_bug.cgi?id=50733
      
              Tell the root GraphicsLayer that its contents are opaque
              if the WebPage draws its background, and that background
              is not transparent.
      
              The GraphicsLayer then uses the 'contentsOpaque' setting to
              determine whether to use font smoothing.
      
              Add pageBackgroundTransparencyChanged() to DrawingArea
              so that the WebPage can inform the DrawingArea when the
              background transparency changes.
      
              * WebProcess/WebPage/DrawingArea.h:
              (WebKit::DrawingArea::pageBackgroundTransparencyChanged):
              (WebKit::DrawingArea::onPageClose):
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              (WebKit::LayerBackedDrawingArea::LayerBackedDrawingArea):
              (WebKit::LayerBackedDrawingArea::pageBackgroundTransparencyChanged):
              * WebProcess/WebPage/LayerBackedDrawingArea.h:
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::setDrawsBackground):
              (WebKit::WebPage::setDrawsTransparentBackground):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47b96b28
    • simon.fraser@apple.com's avatar
      2010-12-15 Simon Fraser <simon.fraser@apple.com> · 71446447
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Allow disabling of font smoothing in compositing layers to be overridden by style
              https://bugs.webkit.org/show_bug.cgi?id=50732
      
              Add methods to GraphicsContext to get and set font smoothing,
              and have them be part of the graphics state.
      
              Fix Font::drawGlyphs() to allow the font's smoothing mode (from style)
              to override the current smoothing mode of the context. The global
              shouldUseSmoothing() still has final say.
      
              Turn off smoothing in compositing layers with this, rather than
              the non-stateful 'allow' method.
      
              * manual-tests/compositing/font-smoothing.html: Added.
              Manual test because DRT disables font smoothing.
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::setShouldSmoothFonts):
              (WebCore::GraphicsContext::shouldSmoothFonts):
              (WebCore::GraphicsContext::setPlatformShouldSmoothFonts):
              * platform/graphics/GraphicsContext.h:
              (WebCore::GraphicsContextState::GraphicsContextState):
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::setPlatformShouldSmoothFonts):
              * platform/graphics/mac/FontMac.mm:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71446447
  32. 06 Dec, 2010 2 commits
    • cmarrin@apple.com's avatar
      2010-12-06 Chris Marrin <cmarrin@apple.com> · 6b13bd5c
      cmarrin@apple.com authored
              Reviewed by Simon Fraser.
      
              Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
              https://bugs.webkit.org/show_bug.cgi?id=49388
      
              Replaced GraphicsLayerMac with GraphicsLayerCA. GraphicsLayerCA is essentially 
              identical to GraphicsLayerMac, but replaces all the CoreAnimation specific calls 
              with calls to PlatformCALayer and PlatformCAAnimation. This makes GraphicsLayerCA 
              platform neutral as long as implementations of those two classes are available. 
              Added implementations in PlatformCALayerMac and PlatformCAAnimationMac. Also got 
              rid of GraphicsLayer::nativeLayer() and replaced it with GraphicsLayer::platformLayer() 
              to avoid confusion since both names were used to refer to the same thing. 
      
              This patch is only for Mac. Windows implementation has not changed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b13bd5c
    • simon.fraser@apple.com's avatar
      2010-12-06 Simon Fraser <simon.fraser@apple.com> · 3abeb4f9
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              Font antialiasing (smoothing) changes when elements are rendered into compositing layers
              https://bugs.webkit.org/show_bug.cgi?id=23364
      
              Text rendered by Core Graphics over a transparent background looks bad because of
              font smoothing, so turn off smoothing when rendering text into compositing layers.
      
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::setAllowsFontSmoothing):
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3abeb4f9
  33. 02 Dec, 2010 2 commits
    • simon.fraser@apple.com's avatar
      2010-12-02 Simon Fraser <simon.fraser@apple.com> · 4cec7bf6
      simon.fraser@apple.com authored
              Revert r73217 and r73227 because of continued bustage.
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/graphics/GraphicsLayer.h:
              (WebCore::GraphicsLayer::nativeLayer):
              * platform/graphics/ca/PlatformCAAnimation.h: Removed.
              * platform/graphics/ca/PlatformCALayer.h: Removed.
              * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: Removed.
              * platform/graphics/ca/mac/PlatformCALayerMac.mm: Removed.
              * platform/graphics/chromium/GraphicsLayerChromium.cpp:
              (WebCore::GraphicsLayerChromium::nativeLayer):
              * platform/graphics/chromium/GraphicsLayerChromium.h:
              * platform/graphics/mac/GraphicsLayerMac.h: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.h.
              (WebCore::GraphicsLayerMac::hasContentsLayer):
              (WebCore::GraphicsLayerMac::primaryLayer):
              (WebCore::GraphicsLayerMac::isReplicatedRootClone):
              (WebCore::GraphicsLayerMac::primaryLayerClones):
              (WebCore::GraphicsLayerMac::animationIsRunning):
              (WebCore::GraphicsLayerMac::contentsLayer):
              (WebCore::GraphicsLayerMac::ReplicaState::ReplicaState):
              (WebCore::GraphicsLayerMac::ReplicaState::push):
              (WebCore::GraphicsLayerMac::ReplicaState::setBranchType):
              (WebCore::GraphicsLayerMac::ReplicaState::pop):
              (WebCore::GraphicsLayerMac::ReplicaState::depth):
              (WebCore::GraphicsLayerMac::ReplicaState::replicaDepth):
              (WebCore::GraphicsLayerMac::hasCloneLayers):
              (WebCore::GraphicsLayerMac::LayerPropertyAnimation::LayerPropertyAnimation):
              (WebCore::GraphicsLayerMac::AnimationProcessingAction::AnimationProcessingAction):
              * platform/graphics/mac/GraphicsLayerMac.mm: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.cpp.
              (WebCore::currentTimeToMediaTime):
              (WebCore::mediaTimeToCurrentTime):
              (-[WebAnimationDelegate animationDidStart:]):
              (-[WebAnimationDelegate WebCore::]):
              (-[WebAnimationDelegate setLayer:WebCore::]):
              (WebCore::copyTransform):
              (WebCore::getTransformFunctionValue):
              (WebCore::getValueFunctionNameForTransformOperation):
              (WebCore::propertyIdToString):
              (WebCore::animationIdentifier):
              (WebCore::getCAMediaTimingFunction):
              (WebCore::setLayerBorderColor):
              (WebCore::clearBorderColor):
              (WebCore::setLayerBackgroundColor):
              (WebCore::clearLayerBackgroundColor):
              (WebCore::safeSetSublayers):
              (WebCore::caValueFunctionSupported):
              (WebCore::forceSoftwareAnimation):
              (WebCore::nullActionsDictionary):
              (WebCore::animationHasStepsTimingFunction):
              (WebCore::GraphicsLayer::create):
              (WebCore::GraphicsLayerMac::GraphicsLayerMac):
              (WebCore::GraphicsLayerMac::~GraphicsLayerMac):
              (WebCore::GraphicsLayerMac::setName):
              (WebCore::GraphicsLayerMac::nativeLayer):
              (WebCore::GraphicsLayerMac::setChildren):
              (WebCore::GraphicsLayerMac::addChild):
              (WebCore::GraphicsLayerMac::addChildAtIndex):
              (WebCore::GraphicsLayerMac::addChildBelow):
              (WebCore::GraphicsLayerMac::addChildAbove):
              (WebCore::GraphicsLayerMac::replaceChild):
              (WebCore::GraphicsLayerMac::removeFromParent):
              (WebCore::GraphicsLayerMac::setMaskLayer):
              (WebCore::GraphicsLayerMac::setReplicatedLayer):
              (WebCore::GraphicsLayerMac::setReplicatedByLayer):
              (WebCore::GraphicsLayerMac::setPosition):
              (WebCore::GraphicsLayerMac::setAnchorPoint):
              (WebCore::GraphicsLayerMac::setSize):
              (WebCore::GraphicsLayerMac::setTransform):
              (WebCore::GraphicsLayerMac::setChildrenTransform):
              (WebCore::GraphicsLayerMac::moveOrCopyLayerAnimation):
              (WebCore::GraphicsLayerMac::moveOrCopyAnimationsForProperty):
              (WebCore::GraphicsLayerMac::setPreserves3D):
              (WebCore::GraphicsLayerMac::setMasksToBounds):
              (WebCore::GraphicsLayerMac::setDrawsContent):
              (WebCore::GraphicsLayerMac::setBackgroundColor):
              (WebCore::GraphicsLayerMac::clearBackgroundColor):
              (WebCore::GraphicsLayerMac::setContentsOpaque):
              (WebCore::GraphicsLayerMac::setBackfaceVisibility):
              (WebCore::GraphicsLayerMac::setOpacity):
              (WebCore::GraphicsLayerMac::setNeedsDisplay):
              (WebCore::GraphicsLayerMac::setNeedsDisplayInRect):
              (WebCore::GraphicsLayerMac::setContentsNeedsDisplay):
              (WebCore::GraphicsLayerMac::setContentsRect):
              (WebCore::GraphicsLayerMac::addAnimation):
              (WebCore::GraphicsLayerMac::pauseAnimation):
              (WebCore::GraphicsLayerMac::removeAnimation):
              (WebCore::GraphicsLayerMac::animationDidStart):
              (WebCore::GraphicsLayerMac::setContentsToImage):
              (WebCore::GraphicsLayerMac::setContentsToMedia):
              (WebCore::GraphicsLayerMac::didDisplay):
              (WebCore::GraphicsLayerMac::syncCompositingState):
              (WebCore::GraphicsLayerMac::syncCompositingStateForThisLayerOnly):
              (WebCore::GraphicsLayerMac::recursiveCommitChanges):
              (WebCore::GraphicsLayerMac::commitLayerChangesBeforeSublayers):
              (WebCore::GraphicsLayerMac::commitLayerChangesAfterSublayers):
              (WebCore::GraphicsLayerMac::updateLayerNames):
              (WebCore::GraphicsLayerMac::updateSublayerList):
              (WebCore::GraphicsLayerMac::updateLayerPosition):
              (WebCore::GraphicsLayerMac::updateLayerSize):
              (WebCore::GraphicsLayerMac::updateAnchorPoint):
              (WebCore::GraphicsLayerMac::updateTransform):
              (WebCore::GraphicsLayerMac::updateChildrenTransform):
              (WebCore::GraphicsLayerMac::updateMasksToBounds):
              (WebCore::GraphicsLayerMac::updateContentsOpaque):
              (WebCore::GraphicsLayerMac::updateBackfaceVisibility):
              (WebCore::GraphicsLayerMac::updateStructuralLayer):
              (WebCore::GraphicsLayerMac::ensureStructuralLayer):
              (WebCore::GraphicsLayerMac::structuralLayerPurpose):
              (WebCore::GraphicsLayerMac::updateLayerDrawsContent):
              (WebCore::GraphicsLayerMac::updateLayerBackgroundColor):
              (WebCore::GraphicsLayerMac::updateContentsImage):
              (WebCore::GraphicsLayerMac::updateContentsMediaLayer):
              (WebCore::GraphicsLayerMac::updateContentsCanvasLayer):
              (WebCore::GraphicsLayerMac::updateContentsRect):
              (WebCore::GraphicsLayerMac::updateMaskLayer):
              (WebCore::GraphicsLayerMac::updateReplicatedLayers):
              (WebCore::GraphicsLayerMac::ReplicaState::cloneID):
              (WebCore::GraphicsLayerMac::replicatedLayerRoot):
              (WebCore::GraphicsLayerMac::updateLayerAnimations):
              (WebCore::GraphicsLayerMac::setCAAnimationOnLayer):
              (WebCore::bug7311367Workaround):
              (WebCore::GraphicsLayerMac::removeCAAnimationFromLayer):
              (WebCore::copyAnimationProperties):
              (WebCore::GraphicsLayerMac::pauseCAAnimationOnLayer):
              (WebCore::GraphicsLayerMac::setContentsToCanvas):
              (WebCore::GraphicsLayerMac::repaintLayerDirtyRects):
              (WebCore::GraphicsLayerMac::updateContentsNeedsDisplay):
              (WebCore::GraphicsLayerMac::createAnimationFromKeyframes):
              (WebCore::GraphicsLayerMac::createTransformAnimationsFromKeyframes):
              (WebCore::GraphicsLayerMac::createBasicAnimation):
              (WebCore::GraphicsLayerMac::createKeyframeAnimation):
              (WebCore::GraphicsLayerMac::setupAnimation):
              (WebCore::GraphicsLayerMac::timingFunctionForAnimationValue):
              (WebCore::GraphicsLayerMac::setAnimationEndpoints):
              (WebCore::GraphicsLayerMac::setAnimationKeyframes):
              (WebCore::GraphicsLayerMac::setTransformAnimationEndpoints):
              (WebCore::GraphicsLayerMac::setTransformAnimationKeyframes):
              (WebCore::GraphicsLayerMac::suspendAnimations):
              (WebCore::GraphicsLayerMac::resumeAnimations):
              (WebCore::GraphicsLayerMac::hostLayerForSublayers):
              (WebCore::GraphicsLayerMac::layerForSuperlayer):
              (WebCore::GraphicsLayerMac::animatedLayer):
              (WebCore::GraphicsLayerMac::animatedLayerClones):
              (WebCore::GraphicsLayerMac::platformLayer):
              (WebCore::GraphicsLayerMac::setDebugBackgroundColor):
              (WebCore::GraphicsLayerMac::setDebugBorder):
              (WebCore::GraphicsLayerMac::constrainedSize):
              (WebCore::GraphicsLayerMac::requiresTiledLayer):
              (WebCore::GraphicsLayerMac::swapFromOrToTiledLayer):
              (WebCore::GraphicsLayerMac::defaultContentsOrientation):
              (WebCore::GraphicsLayerMac::updateContentsTransform):
              (WebCore::GraphicsLayerMac::setupContentsLayer):
              (WebCore::GraphicsLayerMac::findOrMakeClone):
              (WebCore::GraphicsLayerMac::ensureCloneLayers):
              (WebCore::GraphicsLayerMac::removeCloneLayers):
              (WebCore::GraphicsLayerMac::positionForCloneRootLayer):
              (WebCore::GraphicsLayerMac::propagateLayerChangeToReplicas):
              (WebCore::GraphicsLayerMac::fetchCloneLayers):
              (WebCore::GraphicsLayerMac::cloneLayer):
              (WebCore::GraphicsLayerMac::setOpacityInternal):
              (WebCore::GraphicsLayerMac::updateOpacityOnLayer):
              (WebCore::GraphicsLayerMac::noteSublayersChanged):
              (WebCore::GraphicsLayerMac::noteLayerPropertyChanged):
              * platform/graphics/mac/WebLayer.h:
              * platform/graphics/mac/WebLayer.mm:
              (-[WebLayer initWithLayer:]):
              (-[WebLayer setNeedsDisplay]):
              (-[WebLayer setNeedsDisplayInRect:]):
              (-[WebLayer display]):
              (-[WebLayer drawInContext:]):
              (-[WebLayer setLayerOwner:]):
              (-[WebLayer layerOwner]):
              * platform/graphics/mac/WebTiledLayer.h:
              * platform/graphics/mac/WebTiledLayer.mm:
              (-[WebTiledLayer initWithLayer:]):
              (-[WebTiledLayer setNeedsDisplay]):
              (-[WebTiledLayer setNeedsDisplayInRect:]):
              (-[WebTiledLayer display]):
              (-[WebTiledLayer drawInContext:]):
              (-[WebTiledLayer setLayerOwner:]):
              (-[WebTiledLayer layerOwner]):
              * platform/graphics/qt/GraphicsLayerQt.cpp:
              (WebCore::GraphicsLayerQtImpl::flushChanges):
              (WebCore::GraphicsLayerQt::nativeLayer):
              * platform/graphics/qt/GraphicsLayerQt.h:
              * platform/graphics/win/GraphicsLayerCACF.cpp:
              (WebCore::GraphicsLayerCACF::nativeLayer):
              * platform/graphics/win/GraphicsLayerCACF.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4cec7bf6
    • cmarrin@apple.com's avatar
      2010-12-02 Chris Marrin <cmarrin@apple.com> · d6083c05
      cmarrin@apple.com authored
              Reviewed by Simon Fraser.
      
              Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
              https://bugs.webkit.org/show_bug.cgi?id=49388
      
              Replaced GraphicsLayerMac with GraphicsLayerCA. GraphicsLayerCA is essentially 
              identical to GraphicsLayerMac, but replaces all the CoreAnimation specific calls 
              with calls to PlatformCALayer and PlatformCAAnimation. This makes GraphicsLayerCA 
              platform neutral as long as implementations of those two classes are available. 
              Added implementations in PlatformCALayerMac and PlatformCAAnimationMac. Also got 
              rid of GraphicsLayer::nativeLayer() and replaced it with GraphicsLayer::platformLayer() 
              to avoid confusion since both names were used to refer to the same thing. 
      
              This patch is only for Mac. Windows implementation has not changed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6083c05
  34. 21 Jul, 2010 1 commit
    • simon.fraser@apple.com's avatar
      2010-07-21 Simon Fraser <simon.fraser@apple.com> · 7e61bd93
      simon.fraser@apple.com authored
              Reviewed by Darin Adler.
      
              When GraphicsLayer::contentsOrientation() is CompositingCoordinatesBottomUp, need to flip repaint rects
              https://bugs.webkit.org/show_bug.cgi?id=42662
      
              If the contentsOrientation() on a GraphicsLayer is CompositingCoordinatesBottomUp, then we
              need to flip the rects passed to setNeedsDisplayInRect:.
      
              Avoid writing this code twice by making a bare function to share code
              between WebLayer and WebTiledLayer. Convert the existing +drawContents:ofLayer:intoContext:
              class method into a bare function, because the Obj-C calling overhead doesn't buy us anything.
      
              Take out an assertion in GraphicsLayerCA::updateContentsTransform() that is not
              correct.
      
              No new tests because no layers use bottom-up contents at present.
      
              * platform/graphics/mac/GraphicsLayerCA.mm:
              (WebCore::GraphicsLayerCA::updateContentsTransform):
              * platform/graphics/mac/WebLayer.h:
              * platform/graphics/mac/WebLayer.mm:
              (drawLayerContents):
              (setLayerNeedsDisplayInRect):
              (-[WebLayer setNeedsDisplayInRect:]):
              (-[WebLayer drawInContext:]):
              * platform/graphics/mac/WebTiledLayer.mm:
              (-[WebTiledLayer setNeedsDisplayInRect:]):
              (-[WebTiledLayer drawInContext:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e61bd93
  35. 18 Jun, 2010 1 commit