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

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

Issue 2828453002: Add NeedsPreferredWidthsRecalculation() for block (Closed)
Patch Set: Add NeedsPreferredWidthsRecalculation() for block 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/Source/core/layout/LayoutBlock.h ('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 4a3b44e41333e018d82cff22aaaea04be9a4d040..48702ae8e30fc8e67db156a63cae27340e07be81 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -2207,4 +2207,9 @@ bool LayoutBlock::HasDefiniteLogicalHeight() const {
return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
}
+bool LayoutBlock::NeedsPreferredWidthsRecalculation() const {
+ return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) ||
+ LayoutBox::NeedsPreferredWidthsRecalculation();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698