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

Unified Diff: sky/engine/core/html/HTMLCanvasElement.cpp

Issue 865383003: Consolidate callers to scheduleVisualUpdate. (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/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderImageResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLCanvasElement.cpp
diff --git a/sky/engine/core/html/HTMLCanvasElement.cpp b/sky/engine/core/html/HTMLCanvasElement.cpp
index 10c656bd0eeebd505bb0fbb5933ddddcf57259fb..843a94f5aeda6227d2413f9a807ee6bf4624d9b1 100644
--- a/sky/engine/core/html/HTMLCanvasElement.cpp
+++ b/sky/engine/core/html/HTMLCanvasElement.cpp
@@ -278,7 +278,7 @@ void HTMLCanvasElement::reset()
if (RenderObject* renderer = this->renderer()) {
if (renderer->isCanvas()) {
if (hadImageBuffer)
- renderer->scheduleVisualUpdate();
+ document().scheduleVisualUpdate();
}
}
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698