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

Unified Diff: Source/core/svg/SVGLengthList.cpp

Issue 901193002: De-ExceptionState-ify SVGLengthContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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: Source/core/svg/SVGLengthList.cpp
diff --git a/Source/core/svg/SVGLengthList.cpp b/Source/core/svg/SVGLengthList.cpp
index c63b800a05ac92d532be6d98551b2d325606968e..1fadc5eb0daf1e93703d6ac7abf0e9bcbd858d47 100644
--- a/Source/core/svg/SVGLengthList.cpp
+++ b/Source/core/svg/SVGLengthList.cpp
@@ -126,7 +126,7 @@ void SVGLengthList::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElemen
SVGLengthContext lengthContext(contextElement);
for (size_t i = 0; i < length(); ++i)
- at(i)->setValue(at(i)->value(lengthContext) + otherList->at(i)->value(lengthContext), lengthContext, ASSERT_NO_EXCEPTION);
+ at(i)->setValue(at(i)->value(lengthContext) + otherList->at(i)->value(lengthContext), lengthContext);
}
PassRefPtrWillBeRawPtr<SVGLength> SVGLengthList::createPaddingItem() const
@@ -164,7 +164,7 @@ void SVGLengthList::calculateAnimatedValue(SVGAnimationElement* animationElement
animationElement->animateAdditiveNumber(percentage, repeatCount, effectiveFrom, effectiveTo, effectiveToAtEnd, animatedNumber);
at(i)->setUnitType(unitType);
- at(i)->setValue(animatedNumber, lengthContext, ASSERT_NO_EXCEPTION);
+ at(i)->setValue(animatedNumber, lengthContext);
}
}

Powered by Google App Engine
This is Rietveld 408576698