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

Unified Diff: third_party/WebKit/Source/core/css/CSSCalculationValue.cpp

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/CSSCalculationValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
index f2554043f480bd4515f4b0051a2a37f943cf12e5..71464e4f49692b8986bcb2efe01cf2fa13c546e5 100644
--- a/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp
@@ -193,7 +193,8 @@ class CSSCalcPrimitiveValue final : public CSSCalcExpressionNode {
value.percent += m_value->getDoubleValue() * multiplier;
break;
case CalcNumber:
- // TODO(alancutter): Stop treating numbers like pixels unconditionally in calcs to be able to accomodate border-image-width
+ // TODO(alancutter): Stop treating numbers like pixels unconditionally
+ // in calcs to be able to accomodate border-image-width
// https://drafts.csswg.org/css-backgrounds-3/#the-border-image-width
value.pixels +=
m_value->getDoubleValue() * conversionData.zoom() * multiplier;
@@ -267,7 +268,6 @@ class CSSCalcPrimitiveValue final : public CSSCalcExpressionNode {
};
static const CalculationCategory addSubtractResult[CalcOther][CalcOther] = {
- // CalcNumber CalcLength CalcPercent CalcPercentNumber CalcPercentLength CalcAngle CalcTime CalcFrequency CalcLengthNumber CalcPercentLengthNumber
/* CalcNumber */ {CalcNumber, CalcLengthNumber, CalcPercentNumber,
CalcPercentNumber, CalcOther, CalcOther, CalcOther,
CalcOther, CalcLengthNumber, CalcPercentLengthNumber},

Powered by Google App Engine
This is Rietveld 408576698