Changeset 167303 in webkit
- Timestamp:
- Apr 15, 2014 12:32:10 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167302 r167303 1 2014-04-15 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r167298. 4 https://bugs.webkit.org/show_bug.cgi?id=131670 5 6 Broke CSS filters (17 test crashes) (Requested by ap on 7 #webkit). 8 9 Reverted changeset: 10 11 "[iOS WK2] Pages often blank on first load if page loaded by 12 typing the URL" 13 https://bugs.webkit.org/show_bug.cgi?id=131665 14 http://trac.webkit.org/changeset/167298 15 1 16 2014-04-14 Pratik Solanki <psolanki@apple.com> 2 17 -
trunk/Source/WebCore/WebCore.exp.in
r167298 r167303 872 872 __ZN7WebCore21PlatformKeyboardEvent24disambiguateKeyDownEventENS_13PlatformEvent4TypeEb 873 873 __ZN7WebCore21RemoteCommandListener6createERNS_27RemoteCommandListenerClientE 874 __ZN7WebCore21RenderLayerCompositor27setDocumentOverlayRootLayerEPNS_13GraphicsLayerE 874 875 __ZN7WebCore21ResourceLoadScheduler20servePendingRequestsENS_20ResourceLoadPriorityE 875 876 __ZN7WebCore21ResourceLoadScheduler20servePendingRequestsEPNS0_15HostInformationENS_20ResourceLoadPriorityE -
trunk/Source/WebCore/page/ChromeClient.h
r167298 r167303 291 291 // regardless of the settings. 292 292 virtual bool allowsAcceleratedCompositing() const { return true; } 293 // Supply a layer that will added as an overlay over other document layers (scrolling with the document).294 virtual GraphicsLayer* documentOverlayLayerForFrame(Frame&) { return nullptr; }295 293 296 294 enum CompositingTrigger { -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r167298 r167303 256 256 , m_layersWithTiledBackingCount(0) 257 257 , m_rootLayerAttachment(RootLayerUnattached) 258 , m_documentOverlayRootLayer(nullptr) 258 259 , m_layerFlushTimer(this, &RenderLayerCompositor::layerFlushTimerFired) 259 260 , m_layerFlushThrottlingEnabled(page() && page()->progress().isMainLoadProgressing()) … … 430 431 double horizontalMargin = defaultTileWidth / pageScaleFactor(); 431 432 double verticalMargin = defaultTileHeight / pageScaleFactor(); 432 FloatRect visibleRect = frameView.computeCoverageRect(horizontalMargin, verticalMargin); 433 rootLayer->flushCompositingState(visibleRect); 433 rootLayer->flushCompositingState(frameView.computeCoverageRect(horizontalMargin, verticalMargin)); 434 434 #else 435 435 // Having a m_clipLayer indicates that we're doing scrolling via GraphicsLayers. … … 598 598 { 599 599 m_updateCompositingLayersTimer.stop(); 600 601 ASSERT(!m_renderView.document().inPageCache());602 600 603 601 // Compositing layers will be updated in Document::implicitClose() if suppressed here. … … 692 690 // Host the document layer in the RenderView's root layer. 693 691 if (isFullUpdate) { 694 appendOverlayLayers(childList);695 692 // Even when childList is empty, don't drop out of compositing mode if there are 696 693 // composited layers that we didn't hit in our traversal (e.g. because of visibility:hidden). … … 723 720 // Inform the inspector that the layer tree has changed. 724 721 InspectorInstrumentation::layerTreeDidChange(page()); 725 }726 727 void RenderLayerCompositor::appendOverlayLayers(Vector<GraphicsLayer*>& childList)728 {729 Frame& frame = m_renderView.frameView().frame();730 Page* page = frame.page();731 if (!page)732 return;733 734 if (GraphicsLayer* overlayLayer = page->chrome().client().documentOverlayLayerForFrame(frame))735 childList.append(overlayLayer);736 722 } 737 723 … … 1476 1462 childLayersOfEnclosingLayer.append(layerBacking->childForSuperlayers()); 1477 1463 } 1464 1465 if (m_documentOverlayRootLayer) 1466 childLayersOfEnclosingLayer.append(m_documentOverlayRootLayer); 1478 1467 } 1479 1468 … … 3831 3820 } 3832 3821 3822 void RenderLayerCompositor::setDocumentOverlayRootLayer(GraphicsLayer* documentOverlayRootLayer) 3823 { 3824 if (m_documentOverlayRootLayer) 3825 m_documentOverlayRootLayer->removeFromParent(); 3826 m_documentOverlayRootLayer = documentOverlayRootLayer; 3827 setCompositingLayersNeedRebuild(true); 3828 scheduleCompositingLayerUpdate(); 3829 } 3830 3833 3831 } // namespace WebCore -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r167298 r167303 305 305 Color rootExtendedBackgroundColor() const { return m_rootExtendedBackgroundColor; } 306 306 307 void setDocumentOverlayRootLayer(GraphicsLayer*); 308 307 309 private: 308 310 class OverlapMap; … … 365 367 bool isRunningAcceleratedTransformAnimation(RenderLayerModelObject&) const; 366 368 367 void appendOverlayLayers(Vector<GraphicsLayer*>&);368 369 bool hasAnyAdditionalCompositedLayers(const RenderLayer& rootLayer) const; 369 370 … … 508 509 #endif 509 510 511 GraphicsLayer* m_documentOverlayRootLayer; 512 510 513 std::unique_ptr<GraphicsLayerUpdater> m_layerUpdater; // Updates tiled layer visible area periodically while animations are running. 511 514 -
trunk/Source/WebKit2/ChangeLog
r167298 r167303 1 2014-04-15 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r167298. 4 https://bugs.webkit.org/show_bug.cgi?id=131670 5 6 Broke CSS filters (17 test crashes) (Requested by ap on 7 #webkit). 8 9 Reverted changeset: 10 11 "[iOS WK2] Pages often blank on first load if page loaded by 12 typing the URL" 13 https://bugs.webkit.org/show_bug.cgi?id=131665 14 http://trac.webkit.org/changeset/167298 15 1 16 2014-04-14 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r167298 r167303 772 772 } 773 773 774 GraphicsLayer* WebChromeClient::documentOverlayLayerForFrame(Frame& frame)775 {776 if (&frame == &m_page->corePage()->mainFrame())777 return m_page->pageOverlayController().documentOverlayRootLayer();778 779 return nullptr;780 }781 782 774 void WebChromeClient::setNeedsOneShotDrawingSynchronization() 783 775 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h
r167298 r167303 203 203 virtual void setNeedsOneShotDrawingSynchronization() override; 204 204 virtual void scheduleCompositingLayerFlush() override; 205 virtual WebCore::GraphicsLayer* documentOverlayLayerForFrame(WebCore::Frame&) override;206 205 207 206 virtual CompositingTriggerFlags allowedCompositingTriggers() const -
trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm
r167298 r167303 95 95 } 96 96 m_rootLayer->setChildren(children); 97 98 m_webPage->mainFrameView()->renderView()->compositor().setDocumentOverlayRootLayer(m_webPage->pageOverlayController().documentOverlayRootLayer()); 97 99 } 98 100 -
trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
r167298 r167303 450 450 [m_hostingLayer setSublayers:layer ? @[ layer, m_webPage->pageOverlayController().viewOverlayRootLayer()->platformLayer() ] : @[ ]]; 451 451 452 m_webPage->mainFrameView()->renderView()->compositor().setDocumentOverlayRootLayer(m_webPage->pageOverlayController().documentOverlayRootLayer()); 453 452 454 bool hadRootLayer = !!m_rootLayer; 453 455 m_rootLayer = layer;
Note: See TracChangeset
for help on using the changeset viewer.