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

Unified Diff: Source/core/rendering/style/GridLength.h

Issue 22867006: Content-sized resolution should only happen on content-sized tracks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/rendering/RenderGrid.cpp ('k') | Source/core/rendering/style/GridTrackSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/GridLength.h
diff --git a/Source/core/rendering/style/GridLength.h b/Source/core/rendering/style/GridLength.h
index 6ba26b92ba54bfeff887a0f1c5962e1cf2fce62c..4940bd3c2339c6c6a930b5ced71104b816178827 100644
--- a/Source/core/rendering/style/GridLength.h
+++ b/Source/core/rendering/style/GridLength.h
@@ -72,6 +72,8 @@ public:
return m_length == o.m_length;
}
+ bool isContentSized() const { return m_type == LengthType && (m_length.isAuto() || m_length.isMinContent() || m_length.isMaxContent()); }
ojan 2013/08/14 23:48:36 What about fitcontent?
Julien - ping for review 2013/08/15 00:11:16 It would be an issue if it applied to <track-bread
ojan 2013/08/15 02:43:23 Sorry if I'm rehashing things...is there a good re
Julien - ping for review 2013/08/15 18:24:07 A reason is that it would be redundant with 'auto'
+
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 | « Source/core/rendering/RenderGrid.cpp ('k') | Source/core/rendering/style/GridTrackSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698