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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 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
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index e92835562605d818ede0727559587e2cb8dcbd4b..32e7929f94c372b111e0d5dd9ff97b7a334229bf 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -1196,11 +1196,13 @@ void HTMLCanvasElement::pageVisibilityChanged() {
}
}
-void HTMLCanvasElement::contextDestroyed() {
+void HTMLCanvasElement::contextDestroyed(ExecutionContext*) {
if (m_context)
m_context->stop();
}
+void HTMLCanvasElement::contextDestroyed(Page*) {}
+
void HTMLCanvasElement::styleDidChange(const ComputedStyle* oldStyle,
const ComputedStyle& newStyle) {
if (m_context)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.h ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698