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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 730653002: Sky: update the HTMLIFrameElement's geometry during paint invalidation rather (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: esprehn Created 6 years, 1 month 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 | « no previous file | sky/engine/core/rendering/RenderIFrame.h » ('j') | sky/engine/core/rendering/RenderView.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/cpp/view_manager/lib/view.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view.cc b/mojo/services/public/cpp/view_manager/lib/view.cc
index b371000ee798c25e46bd83667c09743b52a1dec6..7de18610929150f497b40a743e65b7a838e2e421 100644
--- a/mojo/services/public/cpp/view_manager/lib/view.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view.cc
@@ -209,6 +209,9 @@ void View::SetBounds(const Rect& bounds) {
if (!OwnsView(manager_, this))
return;
+ if (bounds_.Equals(bounds))
+ return;
+
if (manager_)
static_cast<ViewManagerClientImpl*>(manager_)->SetBounds(id_, bounds);
LocalSetBounds(bounds_, bounds);
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderIFrame.h » ('j') | sky/engine/core/rendering/RenderView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698