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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format 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/css/CSSPrimitiveValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
index f18e24b6d3164af9b56b2af0626d14778b1c118f..cc86ca2cd67c980209ed8adc6fb4f9c3343eb8e5 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
@@ -65,7 +65,8 @@ inline float roundForImpreciseConversion(double value) {
// values (e.g. calc(3px + 2em)).
class CORE_EXPORT CSSPrimitiveValue : public CSSValue {
public:
- // These units are iterated through, so be careful when adding or changing the order.
+ // These units are iterated through, so be careful when adding or changing the
+ // order.
enum class UnitType {
Unknown,
Number,
@@ -109,10 +110,11 @@ class CORE_EXPORT CSSPrimitiveValue : public CSSValue {
CalcLengthWithNumber,
CalcPercentageWithLengthAndNumber,
- // This value is used to handle quirky margins in reflow roots (body, td, and th) like WinIE.
- // The basic idea is that a stylesheet can use the value __qem (for quirky em) instead of em.
- // When the quirky value is used, if you're in quirks mode, the margin will collapse away
- // inside a table cell. This quirk is specified in the HTML spec but our impl is different.
+ // This value is used to handle quirky margins in reflow roots (body, td,
+ // and th) like WinIE. The basic idea is that a stylesheet can use the value
+ // __qem (for quirky em) instead of em. When the quirky value is used, if
+ // you're in quirks mode, the margin will collapse away inside a table cell.
+ // This quirk is specified in the HTML spec but our impl is different.
// TODO: Remove this. crbug.com/443952
QuirkyEms,
};
@@ -129,7 +131,8 @@ class CORE_EXPORT CSSPrimitiveValue : public CSSValue {
UnitTypeViewportMin,
UnitTypeViewportMax,
- // This value must come after the last length unit type to enable iteration over the length unit types.
+ // This value must come after the last length unit type to enable iteration
+ // over the length unit types.
LengthUnitTypeCount,
};
@@ -265,7 +268,8 @@ class CORE_EXPORT CSSPrimitiveValue : public CSSValue {
static UnitType canonicalUnitTypeForCategory(UnitCategory);
static double conversionToCanonicalUnitsScaleFactor(UnitType);
- // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false.
+ // Returns true and populates lengthUnitType, if unitType is a length unit.
+ // Otherwise, returns false.
static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&);
static UnitType lengthUnitTypeToUnitType(LengthUnitType);
@@ -302,7 +306,8 @@ class CORE_EXPORT CSSPrimitiveValue : public CSSValue {
union {
double num;
- // FIXME: oilpan: Should be a member, but no support for members in unions. Just trace the raw ptr for now.
+ // FIXME: oilpan: Should be a member, but no support for members in unions.
+ // Just trace the raw ptr for now.
CSSCalcValue* calc;
} m_value;
};
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMatrix.cpp ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698