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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp

Issue 2398013002: Reflow comments in core/css/parser (Closed)
Patch Set: Removed weird border-style comment 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/parser/CSSPropertyParserHelpers.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
index 310c71a83dcf7116f5edb84c7fa5153817aa9056..9813f6489ca1f466e71a75e1ab2e99790ec74df6 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
@@ -46,7 +46,8 @@ CSSParserTokenRange consumeFunction(CSSParserTokenRange& range) {
return contents;
}
-// TODO(rwlbuis): consider pulling in the parsing logic from CSSCalculationValue.cpp.
+// TODO(rwlbuis): consider pulling in the parsing logic from
+// CSSCalculationValue.cpp.
class CalcParser {
STACK_ALLOCATED();
@@ -152,7 +153,8 @@ CSSPrimitiveValue* consumeNumber(CSSParserTokenRange& range,
inline bool shouldAcceptUnitlessLength(double value,
CSSParserMode cssParserMode,
UnitlessQuirk unitless) {
- // TODO(timloh): Presentational HTML attributes shouldn't use the CSS parser for lengths
+ // TODO(timloh): Presentational HTML attributes shouldn't use the CSS parser
+ // for lengths
return value == 0 || isUnitLessLengthParsingEnabledForMode(cssParserMode) ||
(cssParserMode == HTMLQuirksMode && unitless == UnitlessQuirk::Allow);
}
@@ -404,8 +406,8 @@ static bool parseRGBParameters(CSSParserTokenRange& range,
double alpha;
if (!consumeNumberRaw(args, alpha))
return false;
- // Convert the floating pointer number of alpha to an integer in the range [0, 256),
- // with an equal distribution across all 256 values.
+ // Convert the floating pointer number of alpha to an integer in the range
+ // [0, 256), with an equal distribution across all 256 values.
int alphaComponent = static_cast<int>(clampTo<double>(alpha, 0.0, 1.0) *
nextafter(256.0, 0.0));
result =

Powered by Google App Engine
This is Rietveld 408576698