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

Unified Diff: Source/bindings/tests/results/V8TestSVG.cpp

Issue 151043002: Remove SVGDocument from bindings generator and test cases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/bindings/tests/idls/TestSVG.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/V8TestSVG.cpp
diff --git a/Source/bindings/tests/results/V8TestSVG.cpp b/Source/bindings/tests/results/V8TestSVG.cpp
index a04f0ec415d5488730bc145e7286704c49c72def..760466d51b75dc0c116f9bb7aeb362faefec654a 100644
--- a/Source/bindings/tests/results/V8TestSVG.cpp
+++ b/Source/bindings/tests/results/V8TestSVG.cpp
@@ -36,9 +36,7 @@
#include "HTMLNames.h"
#include "RuntimeEnabledFeatures.h"
#include "V8SVGAnimatedString.h"
-#include "V8SVGDocument.h"
#include "V8SVGPoint.h"
-#include "bindings/v8/BindingSecurity.h"
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/V8DOMConfiguration.h"
#include "bindings/v8/V8ObjectConstructor.h"
@@ -160,28 +158,6 @@ static void immutablePointAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
}
-static void getSVGDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "getSVGDocument", "TestSVG", info.Holder(), info.GetIsolate());
- TestSVG* imp = V8TestSVG::toNative(info.Holder());
- if (!BindingSecurity::shouldAllowAccessToNode(imp->getSVGDocument(exceptionState), exceptionState)) {
- v8SetReturnValueNull(info);
- exceptionState.throwIfNeeded();
- return;
- }
- RefPtr<SVGDocument> result = imp->getSVGDocument(exceptionState);
- if (exceptionState.throwIfNeeded())
- return;
- v8SetReturnValue(info, result.release());
-}
-
-static void getSVGDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
- TestSVGV8Internal::getSVGDocumentMethod(info);
- TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
-}
-
static void mutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TestSVG* imp = V8TestSVG::toNative(info.Holder());
@@ -280,7 +256,6 @@ static const V8DOMConfiguration::AttributeConfiguration V8TestSVGAttributes[] =
};
static const V8DOMConfiguration::MethodConfiguration V8TestSVGMethods[] = {
- {"getSVGDocument", TestSVGV8Internal::getSVGDocumentMethodCallback, 0, 0},
{"mutablePointFunction", TestSVGV8Internal::mutablePointFunctionMethodCallback, 0, 0},
{"immutablePointFunction", TestSVGV8Internal::immutablePointFunctionMethodCallback, 0, 0},
{"immutablePointFunctionTypedef", TestSVGV8Internal::immutablePointFunctionTypedefMethodCallback, 0, 0},
« no previous file with comments | « Source/bindings/tests/idls/TestSVG.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698