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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc

Issue 2969433002: [LayoutNG] Add min/max-{width,height} to instrinics check for abs-pos (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | 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/ng/ng_absolute_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
index 89ae6d626caa6aa24d3f16906de29b5c46522379..1320cac734bac555f974b9ec762abb8a90a0cb7c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
@@ -15,13 +15,15 @@ namespace {
bool AbsoluteHorizontalNeedsEstimate(const ComputedStyle& style) {
Length width = style.Width();
- return width.IsIntrinsic() ||
+ return style.MinWidth().IsIntrinsic() || style.MaxWidth().IsIntrinsic() ||
cbiesinger 2017/06/29 20:40:01 Why does that work? Don't we need to compute the m
ikilpatrick 2017/06/29 22:45:07 I've changed this so its a little more obvious...
+ width.IsIntrinsic() ||
(width.IsAuto() && (style.Left().IsAuto() || style.Right().IsAuto()));
}
bool AbsoluteVerticalNeedsEstimate(const ComputedStyle& style) {
Length height = style.Height();
- return height.IsIntrinsic() ||
+ return style.MinHeight().IsIntrinsic() || style.MaxHeight().IsIntrinsic() ||
+ height.IsIntrinsic() ||
(height.IsAuto() && (style.Top().IsAuto() || style.Bottom().IsAuto()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698