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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index d8c9c2bba30a8f62674f3253bf2aa23f13848807..99e261c588767492591e8552c8f1d67586cef05c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1514,7 +1514,7 @@ int ComputedStyle::computedLineHeight() const
if (lh.isNegative() && font().primaryFont())
return getFontMetrics().lineSpacing();
- if (lh.hasPercent())
+ if (lh.isPercentOrCalc())
return minimumValueForLength(lh, LayoutUnit(computedFontSize())).toInt();
return std::min(lh.value(), LayoutUnit::max().toFloat());
« no previous file with comments | « third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp ('k') | third_party/WebKit/Source/core/style/GridLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698