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

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

Issue 13859006: Rework composited scrolling updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@early-out2
Patch Set: . Created 7 years, 8 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/WebCore/rendering/RenderLayerCompositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderLayerCompositor.cpp
diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
index 4d8896984348cdd984a24a978bccf490fcab42e1..7e2ee4af30f6dadcda0788d657c956300f27d81f 100644
--- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
+++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
@@ -309,6 +309,34 @@ bool RenderLayerCompositor::hasAnyAdditionalCompositedLayers(const RenderLayer*
return m_compositedLayerCount > (rootLayer->isComposited() ? 1 : 0);
}
+void RenderLayerCompositor::updateDescendantsAreContiguousInStackingOrderRecursive(RenderLayer* layer)
+{
+ for (RenderLayer* child = layer->firstChild(); child; child = child->nextSibling())
+ updateDescendantsAreContiguousInStackingOrderRecursive(child);
+ layer->updateDescendantDependentFlags();
+ layer->updateDescendantsAreContiguousInStackingOrder();
+}
+
+void RenderLayerCompositor::updateNeedsCompositedScrolling(RenderLayer* layer)
+{
+ layer->updateNeedsCompositedScrolling();
+
+ // These values depend on our composited scrolling status.
+ layer->updateIsNormalFlowOnly();
+ layer->updateSelfPaintingLayer();
+
+ for (RenderLayer* child = layer->firstChild(); child; child = child->nextSibling())
+ updateNeedsCompositedScrolling(child);
+}
+
+void RenderLayerCompositor::updateLayoutDependentState()
+{
+ RenderLayer* updateRoot = rootRenderLayer();
+ updateRoot->updateDescendantDependentFlags();
+ updateDescendantsAreContiguousInStackingOrderRecursive(updateRoot);
+ updateNeedsCompositedScrolling(updateRoot);
+}
+
void RenderLayerCompositor::updateCompositingLayers(CompositingUpdateType updateType, RenderLayer* updateRoot)
{
// Avoid updating the layers with old values. Compositing layers will be updated after the layout is finished.
« no previous file with comments | « Source/WebCore/rendering/RenderLayerCompositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698