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

Unified Diff: third_party/WebKit/Source/platform/Length.h

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/platform/Length.h
diff --git a/third_party/WebKit/Source/platform/Length.h b/third_party/WebKit/Source/platform/Length.h
index 6e267fee1928595015edf5fa74089126765b4fda..fa22772297b57b0b1635af3fae9ffd52b3599ae5 100644
--- a/third_party/WebKit/Source/platform/Length.h
+++ b/third_party/WebKit/Source/platform/Length.h
@@ -262,7 +262,8 @@ public:
bool isMaxContent() const { return type() == MaxContent; }
bool isFillAvailable() const { return type() == FillAvailable; }
bool isFitContent() const { return type() == FitContent; }
- bool hasPercent() const { return type() == Percent || type() == Calculated; }
+ bool isPercent() const { return type() == Percent; }
+ bool isPercentOrCalc() const { return type() == Percent || type() == Calculated; }
Length blend(const Length& from, double progress, ValueRange range) const
{

Powered by Google App Engine
This is Rietveld 408576698