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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 876913002: Remove CSSCanvas values. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
}
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698