| 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 06208a187583d64b581dc4ff03b8426a4852681d..6bef819242b184c1bc75f39cbb7f875cb7fa3b86 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);
|
|
|