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

Unified Diff: third_party/WebKit/Source/core/style/GridLength.h

Issue 2473493003: [css-grid] mimax(auto, <flex>) should be serialized as <flex> (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67f4f6808c4f1c379fb3f7ddcf60cd03b199565f..286c35968cddcfe69a27f5ac5be6a5c2b76ca630 100644
--- a/third_party/WebKit/Source/core/style/GridLength.h
+++ b/third_party/WebKit/Source/core/style/GridLength.h
@@ -76,6 +76,8 @@ class GridLength {
m_length.isMaxContent());
}
+ bool isAuto() const { return m_type == LengthType && m_length.isAuto(); }
+
private:
// Ideally we would put the 2 following fields in a union, but Length has a
// constructor, a destructor and a copy assignment which isn't allowed.
« no previous file with comments | « third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698