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

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

Issue 2392143002: reflow comments in core/style (Closed)
Patch Set: . Created 4 years, 2 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/GridTrackSize.h
diff --git a/third_party/WebKit/Source/core/style/GridTrackSize.h b/third_party/WebKit/Source/core/style/GridTrackSize.h
index ad3a2cb194ed07ebee4ea57004afa4646531b688..6d960134de57cc74e4b561c5a1bd83f658ec3840 100644
--- a/third_party/WebKit/Source/core/style/GridTrackSize.h
+++ b/third_party/WebKit/Source/core/style/GridTrackSize.h
@@ -42,17 +42,19 @@ enum GridTrackSizeType {
FitContentTrackSizing
};
-// This class represents a <track-size> from the spec. Althought there are 3 different types of
-// <track-size> there is always an equivalent minmax() representation that could represent any of
-// them. The only special case is fit-content(argument) which is similar to minmax(auto,
-// max-content) except that the track size is clamped at argument if it is greater than the auto
-// minimum. At the GridTrackSize level we don't need to worry about clamping so we treat that case
-// exactly as auto.
+// This class represents a <track-size> from the spec. Althought there are 3
+// different types of <track-size> there is always an equivalent minmax()
+// representation that could represent any of them. The only special case is
+// fit-content(argument) which is similar to minmax(auto, max-content) except
+// that the track size is clamped at argument if it is greater than the auto
+// minimum. At the GridTrackSize level we don't need to worry about clamping so
+// we treat that case exactly as auto.
//
-// We're using a separate attribute to store fit-content argument even though we could directly use
-// m_maxTrackBreadth. The reason why we don't do it is because the maxTrackBreadh() call is a hot
-// spot, so adding a conditional statement there (to distinguish between fit-content and any other
-// case) was causing a severe performance drop.
+// We're using a separate attribute to store fit-content argument even though we
+// could directly use m_maxTrackBreadth. The reason why we don't do it is
+// because the maxTrackBreadh() call is a hot spot, so adding a conditional
+// statement there (to distinguish between fit-content and any other case) was
+// causing a severe performance drop.
class GridTrackSize {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
« no previous file with comments | « third_party/WebKit/Source/core/style/GridPositionsResolver.cpp ('k') | third_party/WebKit/Source/core/style/NinePieceImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698