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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 1662423002: Make CanvasRenderingContext not inherit from ActiveDOMObject (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the function pure virtual Created 4 years, 10 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/html/canvas/CanvasRenderingContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
index 517c7fbf0c8ab8f54121e1d06239e9c3d9bfe74d..214e2d25363f92b0efe82842f800dbe4df4f6f60 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -31,10 +31,8 @@
namespace blink {
CanvasRenderingContext::CanvasRenderingContext(HTMLCanvasElement* canvas)
- : ActiveDOMObject(&canvas->document())
- , m_canvas(canvas)
+ : m_canvas(canvas)
{
- suspendIfNeeded();
}
CanvasRenderingContext::ContextType CanvasRenderingContext::contextTypeFromId(const String& id)
@@ -84,17 +82,6 @@ bool CanvasRenderingContext::wouldTaintOrigin(CanvasImageSource* imageSource)
DEFINE_TRACE(CanvasRenderingContext)
{
visitor->trace(m_canvas);
- ActiveDOMObject::trace(visitor);
-}
-
-bool CanvasRenderingContext::hasPendingActivity() const
-{
- return false;
-}
-
-void CanvasRenderingContext::didMoveToNewDocument(Document* document)
-{
- ActiveDOMObject::didMoveToNewExecutionContext(document);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698