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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLength.cpp

Issue 2390773004: reflow comments in core/svg/ (Closed)
Patch Set: comments (heh!) 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/svg/SVGLength.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
index 4e69d1d937e6bc1d18a2d0cf0f43b52dd6f5ea93..0a2b699aca7f04b97bf6ae767f3f2483113f373c 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
@@ -104,7 +104,8 @@ void SVGLength::setUnitType(CSSPrimitiveValue::UnitType type) {
}
float SVGLength::valueAsPercentage() const {
- // LengthTypePercentage is represented with 100% = 100.0. Good for accuracy but could eventually be changed.
+ // LengthTypePercentage is represented with 100% = 100.0. Good for accuracy
+ // but could eventually be changed.
if (m_value->isPercentage()) {
// Note: This division is a source of floating point inaccuracy.
return m_value->getFloatValue() / 100;
@@ -114,7 +115,8 @@ float SVGLength::valueAsPercentage() const {
}
float SVGLength::valueAsPercentage100() const {
- // LengthTypePercentage is represented with 100% = 100.0. Good for accuracy but could eventually be changed.
+ // LengthTypePercentage is represented with 100% = 100.0. Good for accuracy
+ // but could eventually be changed.
if (m_value->isPercentage())
return m_value->getFloatValue();
@@ -124,7 +126,8 @@ float SVGLength::valueAsPercentage100() const {
float SVGLength::scaleByPercentage(float input) const {
float result = input * m_value->getFloatValue();
if (m_value->isPercentage()) {
- // Delaying division by 100 as long as possible since it introduces floating point errors.
+ // Delaying division by 100 as long as possible since it introduces floating
+ // point errors.
result = result / 100;
}
return result;
@@ -247,7 +250,8 @@ void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement,
ASSERT(unitMode() == lengthModeForAnimatedLengthAttribute(
animationElement->attributeName()));
- // TODO(shanmuga.m): Construct a calc() expression if the units fall in different categories.
+ // TODO(shanmuga.m): Construct a calc() expression if the units fall in
+ // different categories.
CSSPrimitiveValue::UnitType newUnit = CSSPrimitiveValue::UnitType::UserUnits;
if (percentage < 0.5) {
if (!fromLength->isCalculated())
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLength.h ('k') | third_party/WebKit/Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698