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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2098223002: Update composited layer size if overflow from children requires it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@617443-4
Patch Set: bug 621612 Created 4 years, 6 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 | « third_party/WebKit/LayoutTests/fast/repaint/overflow-changed-on-child-of-composited-layer-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 3d33a0af551508f5a92e8b69b0f9512036ecabc4..860274f46a39d989823c745a4d2850ce83358c18 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -438,8 +438,12 @@ void LayoutBlock::computeOverflow(LayoutUnit oldClientAfterEdge, bool)
}
addVisualEffectOverflow();
-
addVisualOverflowFromTheme();
+
+ // An enclosing composited layer will need to update its bounds if we now overflow it.
+ PaintLayer* layer = enclosingLayer();
+ if (!needsLayout() && layer->hasCompositedLayerMapping() && !layer->visualRect().contains(visualOverflowRect()))
+ layer->setNeedsCompositingInputsUpdate();
}
void LayoutBlock::addOverflowFromBlockChildren()
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/repaint/overflow-changed-on-child-of-composited-layer-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698