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

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

Issue 2357463002: Consolidate read-only exception throwing for SVG*TearOffs (Closed)
Patch Set: Baseline updates Created 4 years, 3 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/SVGNumberTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
index 3aa32851b1d116585612a237bda2cce3612a40a0..53c18598cbf8492608994edd6b24b1c70f3a2baf 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
@@ -30,8 +30,6 @@
#include "core/svg/SVGNumberTearOff.h"
-#include "bindings/core/v8/ExceptionState.h"
-#include "core/dom/ExceptionCode.h"
#include "core/svg/SVGElement.h"
namespace blink {
@@ -44,10 +42,9 @@ SVGNumberTearOff::SVGNumberTearOff(SVGNumber* target, SVGElement* contextElement
void SVGNumberTearOff::setValue(float f, ExceptionState& exceptionState)
{
if (isImmutable()) {
- exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
+ throwReadOnly(exceptionState);
return;
}
-
target()->setValue(f);
commitChange();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMatrixTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPointTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698