Index: sky/engine/core/editing/TextIterator.cpp |
diff --git a/sky/engine/core/editing/TextIterator.cpp b/sky/engine/core/editing/TextIterator.cpp |
index fb6b87dcbc07277a5514f585d485a9e420f885c5..51113e180e959175cb261a92a473474de8684bb3 100644 |
--- a/sky/engine/core/editing/TextIterator.cpp |
+++ b/sky/engine/core/editing/TextIterator.cpp |
@@ -789,7 +789,7 @@ bool TextIterator::shouldRepresentNodeOffsetZero() |
// If this node is unrendered or invisible the VisiblePosition checks below won't have much meaning. |
// Additionally, if the range we are iterating over contains huge sections of unrendered content, |
// we would create VisiblePositions on every call to this function without this check. |
- if (!m_node->renderer() || (m_node->renderer()->isRenderBlockFlow() && !toRenderBlock(m_node->renderer())->height())) |
+ if (!m_node->renderer() || (m_node->renderer()->isRenderParagraph() && !toRenderBlock(m_node->renderer())->height())) |
return false; |
// The startPos.isNotNull() check is needed because the start could be before the body, |