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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1131283004: Prevent SVG children from participating in an ancestor multicol context. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Initialize m_isPaginated and m_pageLogicalHeightChanged. Created 5 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
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 8e598baf627114250c0218325f45461bcb3fcd2e..139d31bc5efe1591ce2b3e8eeddc2ad42ab194d7 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -609,6 +609,8 @@ LayoutFlowThread* LayoutObject::locateFlowThreadContainingBlock() const
// Not in the middle of layout so have to find the thread the slow way.
LayoutObject* curr = const_cast<LayoutObject*>(this);
while (curr) {
+ if (curr->isSVG() && !curr->isSVGRoot())
+ return nullptr;
if (curr->isLayoutFlowThread())
return toLayoutFlowThread(curr);
LayoutObject* containingBlock = curr->containingBlock();

Powered by Google App Engine
This is Rietveld 408576698