Index: Source/core/layout/LayoutState.cpp |
diff --git a/Source/core/layout/LayoutState.cpp b/Source/core/layout/LayoutState.cpp |
index 744412af8da58ffbd65a43c665cd31996f063b78..d434e2cc013ebc0a19b759351cf420e73fc85559 100644 |
--- a/Source/core/layout/LayoutState.cpp |
+++ b/Source/core/layout/LayoutState.cpp |
@@ -83,6 +83,10 @@ LayoutState::LayoutState(LayoutBox& layoutObject, const LayoutSize& offset, Layo |
m_layoutOffset.height() + (!isFlipped ? layoutObject.borderTop() + layoutObject.paddingTop() : layoutObject.borderBottom() + layoutObject.paddingBottom())); |
m_pageLogicalHeightChanged = pageLogicalHeightChanged; |
m_isPaginated = true; |
+ } else if (m_layoutObject.isSVG() && !m_layoutObject.isSVGRoot()) { |
+ // Pagination inside SVG is not allowed. |
+ m_flowThread = nullptr; |
+ ASSERT(!m_isPaginated); |
} else { |
// If we don't establish a new page height, then propagate the old page height and offset down. |
m_pageLogicalHeight = m_next->m_pageLogicalHeight; |