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. |