Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Unified Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 149653003: Avoid requiring a recalc to update compositing state for iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderIFrame.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 4f5bddd0b58b1476df688a0ba7b82845c579c52c..542c4c499e3794f07c1155fbc9388d6e8527843c 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -2468,8 +2468,10 @@ void RenderLayerCompositor::notifyIFramesOfCompositingChange()
// Compositing also affects the answer to RenderIFrame::requiresAcceleratedCompositing(), so
// we need to schedule a style recalc in our parent document.
- if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElement())
+ if (HTMLFrameOwnerElement* ownerElement = m_renderView->document().ownerElement()) {
+ ownerElement->document().renderView()->compositor()->setNeedsToRecomputeCompositingRequirements();
ownerElement->scheduleLayerUpdate();
+ }
abarth-chromium 2014/02/06 03:27:50 I ran into this same function when working on putt
dstockwell 2014/02/06 03:36:19 I think that's the main reason this is broken at h
}
bool RenderLayerCompositor::layerHas3DContent(const RenderLayer* layer) const
« no previous file with comments | « Source/core/rendering/RenderIFrame.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698