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

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

Issue 15027005: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Integrates all feedback. One of the tests causes an ASSERT in ContentShell because of Region Ranges. Created 7 years, 6 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/RenderNamedFlowThread.cpp
diff --git a/Source/core/rendering/RenderNamedFlowThread.cpp b/Source/core/rendering/RenderNamedFlowThread.cpp
index f83f46c78a403812d6227a5676ff8ffd2cbd0b6e..a25a37399e008424d89d66b6c875e2b14f508cd9 100644
--- a/Source/core/rendering/RenderNamedFlowThread.cpp
+++ b/Source/core/rendering/RenderNamedFlowThread.cpp
@@ -413,6 +413,8 @@ bool RenderNamedFlowThread::isChildAllowed(RenderObject* child, RenderStyle* sty
ASSERT(child->node()->isElementNode());
RenderObject* parentRenderer = NodeRenderingContext(child->node()).parentRenderer();
+ if (!parentRenderer)
+ return true;
return parentRenderer->isChildAllowed(child, style);
}

Powered by Google App Engine
This is Rietveld 408576698