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

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

Issue 2828453002: Add NeedsPreferredWidthsRecalculation() for block (Closed)
Patch Set: Make inline-block container's width update 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/inline-block/inline-block-update-width-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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 9fd14255efb568cc83fcfc7da64129b8aba15919..3331741b423257b2e5fef90f8ff84be00eb969b6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -2938,6 +2938,8 @@ void LayoutBlockFlow::UpdateBlockChildDirtyBitsBeforeLayout(
ToLayoutMultiColumnSpannerPlaceholder(child)
.MarkForLayoutIfObjectInFlowThreadNeedsLayout();
LayoutBlock::UpdateBlockChildDirtyBitsBeforeLayout(relayout_children, child);
+ if (child.PreferredLogicalWidthsDirty() && IsInlineBlockOrInlineTable())
+ child.SetPreferredLogicalWidthsDirty(kMarkContainerChain);
rhogan 2017/04/18 18:46:30 If someone called SetPreferredLogicalWidthsDirty o
}
void LayoutBlockFlow::UpdateStaticInlinePositionForChild(
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/inline-block/inline-block-update-width-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698