Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698