| Index: third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
|
| index adfb719f10d83fff57d2f19c84c0e454bfcd3787..ba05bb421b03c8fc6857f99193407a1219d8438b 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
|
| @@ -30,8 +30,6 @@
|
|
|
| #include "core/svg/SVGRectTearOff.h"
|
|
|
| -#include "bindings/core/v8/ExceptionState.h"
|
| -#include "core/dom/ExceptionCode.h"
|
| #include "core/svg/SVGElement.h"
|
|
|
| namespace blink {
|
| @@ -44,10 +42,9 @@ SVGRectTearOff::SVGRectTearOff(SVGRect* target, SVGElement* contextElement, Prop
|
| void SVGRectTearOff::setX(float f, ExceptionState& exceptionState)
|
| {
|
| if (isImmutable()) {
|
| - exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
| + throwReadOnly(exceptionState);
|
| return;
|
| }
|
| -
|
| target()->setX(f);
|
| commitChange();
|
| }
|
| @@ -55,10 +52,9 @@ void SVGRectTearOff::setX(float f, ExceptionState& exceptionState)
|
| void SVGRectTearOff::setY(float f, ExceptionState& exceptionState)
|
| {
|
| if (isImmutable()) {
|
| - exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
| + throwReadOnly(exceptionState);
|
| return;
|
| }
|
| -
|
| target()->setY(f);
|
| commitChange();
|
| }
|
| @@ -66,10 +62,9 @@ void SVGRectTearOff::setY(float f, ExceptionState& exceptionState)
|
| void SVGRectTearOff::setWidth(float f, ExceptionState& exceptionState)
|
| {
|
| if (isImmutable()) {
|
| - exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
| + throwReadOnly(exceptionState);
|
| return;
|
| }
|
| -
|
| target()->setWidth(f);
|
| commitChange();
|
| }
|
| @@ -77,10 +72,9 @@ void SVGRectTearOff::setWidth(float f, ExceptionState& exceptionState)
|
| void SVGRectTearOff::setHeight(float f, ExceptionState& exceptionState)
|
| {
|
| if (isImmutable()) {
|
| - exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
|
| + throwReadOnly(exceptionState);
|
| return;
|
| }
|
| -
|
| target()->setHeight(f);
|
| commitChange();
|
| }
|
|
|