Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
index 282719c71f07c36d95e4b8cba3c5c1b7a970dba2..db212e55ac1da0bfa77f116f614609733f1bff6a 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -208,15 +208,6 @@ void HTMLCanvasElement::registerRenderingContextFactory(PassOwnPtr<CanvasRenderi |
renderingContextFactories()[type] = renderingContextFactory; |
} |
-ScriptValue HTMLCanvasElement::getContext(ScriptState* scriptState, const String& type, const CanvasContextCreationAttributes& attributes) |
-{ |
- CanvasRenderingContext* context = getCanvasRenderingContext(type, attributes); |
- if (!context) { |
- return ScriptValue::createNull(scriptState); |
- } |
- return ScriptValue(scriptState, toV8(context, scriptState->context()->Global(), scriptState->isolate())); |
-} |
- |
CanvasRenderingContext* HTMLCanvasElement::getCanvasRenderingContext(const String& type, const CanvasContextCreationAttributes& attributes) |
{ |
CanvasRenderingContext::ContextType contextType = CanvasRenderingContext::contextTypeFromId(type); |