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

Unified Diff: third_party/WebKit/Source/core/style/GridLength.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/core/style/GridLength.h
diff --git a/third_party/WebKit/Source/core/style/GridLength.h b/third_party/WebKit/Source/core/style/GridLength.h
index 2e1adfc3f0f67e150c12ab58fb17a33ac7bafc25..5990ebc659b096107a977fe3371cb5a562677040 100644
--- a/third_party/WebKit/Source/core/style/GridLength.h
+++ b/third_party/WebKit/Source/core/style/GridLength.h
@@ -62,7 +62,7 @@ public:
double flex() const { ASSERT(isFlex()); return m_flex; }
- bool hasPercentage() const { return m_type == LengthType && m_length.hasPercent(); }
+ bool hasPercentage() const { return m_type == LengthType && m_length.isPercentOrCalc(); }
bool operator==(const GridLength& o) const
{
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698