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

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

Issue 2286543002: Add Length::isPercent and use it in tables. (Closed)
Patch Set: and code changes Created 4 years, 4 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..c8fcb3c3adf247b024112e805a4566bf2831cd34 100644
--- a/third_party/WebKit/Source/platform/Length.h
+++ b/third_party/WebKit/Source/platform/Length.h
@@ -262,6 +262,7 @@ public:
bool isMaxContent() const { return type() == MaxContent; }
bool isFillAvailable() const { return type() == FillAvailable; }
bool isFitContent() const { return type() == FitContent; }
+ bool isPercent() const { return type() == Percent; }
mstensho (USE GERRIT) 2016/08/31 20:30:33 This is a great name for what it does. But what ab
bool hasPercent() 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