| 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 e653ad2030100c89b1ef9460b50bfca76851f3e6..838dd17834a2f7d36218f81b10fce94bc60f2ac1 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4911,28 +4911,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();
|
|
|