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

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

Issue 2138663003: Rename PageLifecycleObserver to PageVisibilityObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/HTMLCanvasElement.h ('k') | third_party/WebKit/Source/core/page/Page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e3dda03b6dd9e0343a1519ace974bb1eb50a5dc4..4dede47795e53ea3150db3e8b3eb3fb629914f17 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -140,7 +140,7 @@ PassRefPtr<Image> createTransparentImage(const IntSize& size)
inline HTMLCanvasElement::HTMLCanvasElement(Document& document)
: HTMLElement(canvasTag, document)
, ContextLifecycleObserver(&document)
- , PageLifecycleObserver(document.page())
+ , PageVisibilityObserver(document.page())
, m_size(DefaultWidth, DefaultHeight)
, m_ignoreReset(false)
, m_externallyAllocatedMemory(0)
@@ -900,7 +900,7 @@ DEFINE_TRACE(HTMLCanvasElement)
visitor->trace(m_listeners);
visitor->trace(m_context);
ContextLifecycleObserver::trace(visitor);
- PageLifecycleObserver::trace(visitor);
+ PageVisibilityObserver::trace(visitor);
HTMLElement::trace(visitor);
}
@@ -1055,7 +1055,7 @@ void HTMLCanvasElement::styleDidChange(const ComputedStyle* oldStyle, const Comp
void HTMLCanvasElement::didMoveToNewDocument(Document& oldDocument)
{
ContextLifecycleObserver::setContext(&document());
- PageLifecycleObserver::setContext(document().page());
+ PageVisibilityObserver::setContext(document().page());
HTMLElement::didMoveToNewDocument(oldDocument);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.h ('k') | third_party/WebKit/Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698