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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTransformListTearOff.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/SVGTransformListTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTransformListTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGTransformListTearOff.cpp
index 89a91804bf9850908c6c78724dfa87b7434bdcfd..01405c27035c1f9755a03c28c2f335145440dbc1 100644
--- a/third_party/WebKit/Source/core/svg/SVGTransformListTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTransformListTearOff.cpp
@@ -30,8 +30,6 @@
#include "core/svg/SVGTransformListTearOff.h"
-#include "bindings/core/v8/ExceptionState.h"
-#include "core/dom/ExceptionCode.h"
#include "core/svg/SVGSVGElement.h"
namespace blink {
@@ -53,10 +51,9 @@ SVGTransformTearOff* SVGTransformListTearOff::createSVGTransformFromMatrix(SVGMa
SVGTransformTearOff* SVGTransformListTearOff::consolidate(ExceptionState& exceptionState)
{
if (isImmutable()) {
- exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
+ throwReadOnly(exceptionState);
return nullptr;
}
-
return createItemTearOff(target()->consolidate());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGStringListTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698