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

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 544743003: Clean up paint invalidation container logic for RenderText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Created 6 years, 3 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
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 2772d053cb54e5454e14fc5d323de93a3ff39d7f..c6bca6cda6254025dc87dbc448d53b8694219ed8 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -562,9 +562,8 @@ RenderLayer* RenderObject::enclosingLayer() const
if (current->hasLayer())
return toRenderLayerModelObject(current)->layer();
}
- // FIXME: We should remove the one caller that triggers this case and make
- // this function return a reference.
- ASSERT(!m_parent && !isRenderView());
+ // FIXME: we should get rid of detached render subtrees, at which point this code should
+ // not be reached.
dsinclair 2014/09/05 19:35:10 Is there a crbug that can be referenced?
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698