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

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

Issue 2828453002: Add NeedsPreferredWidthsRecalculation() for block (Closed)
Patch Set: change commit message Created 3 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
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 4a3b44e41333e018d82cff22aaaea04be9a4d040..de3109daaf9600193b19ef2511010775edf8571b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -605,8 +605,10 @@ void LayoutBlock::UpdateBlockChildDirtyBitsBeforeLayout(bool relayout_children,
// If the child has percentage padding or an embedded content box, we also
// need to invalidate the childs pref widths.
- if (child.NeedsPreferredWidthsRecalculation())
- child.SetPreferredLogicalWidthsDirty(kMarkOnlyThis);
+ if (child.NeedsPreferredWidthsRecalculation()) {
+ child.SetPreferredLogicalWidthsDirty(
+ IsInlineBlockOrInlineTable() ? kMarkContainerChain : kMarkOnlyThis);
mstensho (USE GERRIT) 2017/04/19 10:58:47 Marking the container chain during layout seems wr
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698