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

Unified Diff: ui/gfx/compositor/compositor_cc.cc

Issue 8510076: Fix stale compositor references from ui::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_touch build Created 9 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 | « ui/gfx/compositor/compositor.cc ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_cc.cc
diff --git a/ui/gfx/compositor/compositor_cc.cc b/ui/gfx/compositor/compositor_cc.cc
index 0d8b4fc42d510e42f0e3176a0acea5d099bc2386..ce757130e50bb064a4c1e8fff71912b5c94d9442 100644
--- a/ui/gfx/compositor/compositor_cc.cc
+++ b/ui/gfx/compositor/compositor_cc.cc
@@ -174,7 +174,8 @@ void CompositorCC::OnWidgetSizeChanged() {
void CompositorCC::OnRootLayerChanged() {
root_web_layer_.removeAllChildren();
- root_web_layer_.addChild(root_layer()->web_layer());
+ if (root_layer())
+ root_web_layer_.addChild(root_layer()->web_layer());
}
void CompositorCC::DrawTree() {
« no previous file with comments | « ui/gfx/compositor/compositor.cc ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698