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

Unified Diff: ui/gfx/geometry/r_tree.cc

Issue 278403004: fix incorrect bounds on remove child from root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: found probably unrelated bug Created 6 years, 7 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 | « no previous file | ui/gfx/geometry/r_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/r_tree.cc
diff --git a/ui/gfx/geometry/r_tree.cc b/ui/gfx/geometry/r_tree.cc
index 00e75eb4d0d1de078af32f846db25dcd92a34cbb..7fa095575b1710eac0ec402788061d19451476ca 100644
--- a/ui/gfx/geometry/r_tree.cc
+++ b/ui/gfx/geometry/r_tree.cc
@@ -732,6 +732,8 @@ void RTree::RemoveNode(Node* node) {
// up to the root.
if (parent) {
parent->RecomputeBounds();
+ } else {
+ root_->RecomputeBounds();
}
// Now re-insert each of the orphaned nodes back into the tree.
« no previous file with comments | « no previous file | ui/gfx/geometry/r_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698