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

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

Issue 2672833004: Invalidate width available to children if style diff needs full layout (Closed)
Patch Set: rebase Created 3 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
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 8d111bb57d37d7b494d39004698e14fae44abb4b..b4ca83c4e2ab48d9177e6e3190a90a7c66ba20f8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -239,8 +239,9 @@ void LayoutBlock::styleDidChange(StyleDifference diff,
// width or height of the block to end up being the same. We keep track of
// this change so in layoutBlock, we can know to set relayoutChildren=true.
m_widthAvailableToChildrenChanged |=
- oldStyle && diff.needsFullLayout() && needsLayout() &&
- borderOrPaddingLogicalDimensionChanged(*oldStyle, newStyle, LogicalWidth);
+ oldStyle && needsLayout() &&
+ (diff.needsFullLayout() || borderOrPaddingLogicalDimensionChanged(
+ *oldStyle, newStyle, LogicalWidth));
m_heightAvailableToChildrenChanged |= oldStyle && diff.needsFullLayout() &&
needsLayout() &&
borderOrPaddingLogicalDimensionChanged(

Powered by Google App Engine
This is Rietveld 408576698