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

Unified Diff: sky/engine/core/rendering/RenderObject.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/rendering/RenderObject.h ('k') | sky/engine/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderObject.cpp
diff --git a/sky/engine/core/rendering/RenderObject.cpp b/sky/engine/core/rendering/RenderObject.cpp
index 596e71a0e1124c7fb7fa12da8c86e6e40b739e2f..1fb6cdbea4838dc2f7fd4b7d48ab84d2ac30c65d 100644
--- a/sky/engine/core/rendering/RenderObject.cpp
+++ b/sky/engine/core/rendering/RenderObject.cpp
@@ -1939,7 +1939,7 @@ void RenderObject::imageChanged(ImageResource* image, const IntRect* rect)
void RenderObject::imageChanged(WrappedImagePtr, const IntRect*)
{
if (parent())
- scheduleVisualUpdate();
+ document().scheduleVisualUpdate();
}
Element* RenderObject::offsetParent() const
@@ -2047,11 +2047,6 @@ bool RenderObject::isRelayoutBoundaryForInspector() const
return objectIsRelayoutBoundary(this);
}
-void RenderObject::scheduleVisualUpdate()
-{
- frame()->page()->animator().scheduleVisualUpdate();
-}
-
bool RenderObject::isAllowedToModifyRenderTreeStructure(Document& document)
{
return document.lifecycle().stateAllowsRenderTreeMutations();
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698