Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index f40b584c220fcac922d3a32ff2eba68369ba0b9e..07c0ddfd228aa1e286c91fd4d6018e895594a52f 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -948,7 +948,7 @@ bool Position::rendersInDifferentPosition(const Position &pos) const |
if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate()) |
return true; |
- if (deprecatedNode()->enclosingBlockFlowElement() != pos.deprecatedNode()->enclosingBlockFlowElement()) |
+ if (!inSameContainingBlockFlowElement(deprecatedNode(), pos.deprecatedNode())) |
return true; |
if (deprecatedNode()->isTextNode() && !inRenderedText()) |