Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 9f45c60b2bb0de88f1188267a2f9ed55856efe60..2afcc407dadec1115e931cb62274d99ee9d5c0de 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -592,8 +592,6 @@ void Document::dispose() |
m_markers->clear(); |
- m_cssCanvasElements.clear(); |
- |
// FIXME: consider using ActiveDOMObject. |
if (m_scriptedAnimationController) |
m_scriptedAnimationController->clearDocumentPointer(); |
@@ -4912,28 +4910,6 @@ void Document::detachRange(Range* range) |
m_ranges.remove(range); |
} |
-ScriptValue Document::getCSSCanvasContext(ScriptState* scriptState, const String& type, const String& name, int width, int height) |
-{ |
- HTMLCanvasElement& element = getCSSCanvasElement(name); |
- element.setSize(IntSize(width, height)); |
- CanvasRenderingContext* context = element.getCanvasRenderingContext(type, CanvasContextCreationAttributes()); |
- if (!context) { |
- return ScriptValue::createNull(scriptState); |
- } |
- |
- return ScriptValue(scriptState, toV8(context, scriptState->context()->Global(), scriptState->isolate())); |
-} |
- |
-HTMLCanvasElement& Document::getCSSCanvasElement(const String& name) |
-{ |
- RefPtrWillBeMember<HTMLCanvasElement>& element = m_cssCanvasElements.add(name, nullptr).storedValue->value; |
- if (!element) { |
- element = HTMLCanvasElement::create(*this); |
- element->setAccelerationDisabled(true); |
- } |
- return *element; |
-} |
- |
void Document::initDNSPrefetch() |
{ |
Settings* settings = this->settings(); |