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

Unified Diff: ui/views/view.cc

Issue 122333002: [View] Cleanup: Remove redundant layer()->SchedulePaint() calling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 425baade9b90a1f097d9fb07ad51b53821699967..b77358dde678f425e16badd616aa60698f108bca 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1944,14 +1944,6 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
} else {
SetLayerBounds(bounds_);
}
- // TODO(beng): this seems redundant with the SchedulePaint at the top of
- // this function. explore collapsing.
- if (previous_bounds.size() != bounds_.size() &&
- !layer()->layer_updated_externally()) {
- // If our bounds have changed then we need to update the complete
- // texture.
- layer()->SchedulePaint(GetLocalBounds());
- }
} else {
// If our bounds have changed, then any descendant layer bounds may
// have changed. Update them accordingly.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698