Chromium Code Reviews| 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
|
| + } |
| } |
| } |