| Index: sky/engine/core/dom/Document.cpp
|
| diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
|
| index 5321c2335566d6cc46529e272538a7cf5f062473..7e8c3cf29c0e95a126c6376390e73b1d679fe60b 100644
|
| --- a/sky/engine/core/dom/Document.cpp
|
| +++ b/sky/engine/core/dom/Document.cpp
|
| @@ -383,8 +383,6 @@ void Document::dispose()
|
|
|
| m_markers->clear();
|
|
|
| - m_cssCanvasElements.clear();
|
| -
|
| // FIXME: consider using ActiveDOMObject.
|
| if (m_scriptedAnimationController)
|
| m_scriptedAnimationController->clearDocumentPointer();
|
| @@ -2148,31 +2146,6 @@ void Document::detachRange(Range* range)
|
| m_ranges.remove(range);
|
| }
|
|
|
| -void Document::getCSSCanvasContext(const String& type, const String& name, int width, int height, RefPtr<CanvasRenderingContext2D>& context2d, RefPtr<WebGLRenderingContext>& context3d)
|
| -{
|
| - HTMLCanvasElement& element = getCSSCanvasElement(name);
|
| - element.setSize(IntSize(width, height));
|
| - CanvasRenderingContext* context = element.getContext(type);
|
| - if (!context)
|
| - return;
|
| -
|
| - if (context->is2d()) {
|
| - context2d = toCanvasRenderingContext2D(context);
|
| - } else if (context->is3d()) {
|
| - context3d = toWebGLRenderingContext(context);
|
| - }
|
| -}
|
| -
|
| -HTMLCanvasElement& Document::getCSSCanvasElement(const String& name)
|
| -{
|
| - RefPtr<HTMLCanvasElement>& element = m_cssCanvasElements.add(name, nullptr).storedValue->value;
|
| - if (!element) {
|
| - element = HTMLCanvasElement::create(*this);
|
| - element->setAccelerationDisabled(true);
|
| - }
|
| - return *element;
|
| -}
|
| -
|
| void Document::reportBlockedScriptExecutionToInspector(const String& directiveText)
|
| {
|
| }
|
|
|