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

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

Issue 2286543002: Add Length::isPercent and use it in tables. (Closed)
Patch Set: rebase Created 4 years, 3 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/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 0112d60920e2ca0e9e34354409954356702caf16..820d8e9d11b4847a7bcf430d9b23a2ccc43bd024 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -242,9 +242,9 @@ void LayoutView::layout()
continue;
if ((child->isBox() && toLayoutBox(child)->hasRelativeLogicalHeight())
- || child->style()->logicalHeight().hasPercent()
- || child->style()->logicalMinHeight().hasPercent()
- || child->style()->logicalMaxHeight().hasPercent())
+ || child->style()->logicalHeight().isPercentOrCalc()
+ || child->style()->logicalMinHeight().isPercentOrCalc()
+ || child->style()->logicalMaxHeight().isPercentOrCalc())
layoutScope.setChildNeedsLayout(child);
}

Powered by Google App Engine
This is Rietveld 408576698