| Index: Source/core/dom/Position.cpp
|
| diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp
|
| index 0f5174d0040b263bfc12544805da1a9b560836db..c08a67c3559579812606ec813f61a4ce43794ea4 100644
|
| --- a/Source/core/dom/Position.cpp
|
| +++ b/Source/core/dom/Position.cpp
|
| @@ -210,14 +210,14 @@ Position Position::parentAnchoredEquivalent() const
|
| // FIXME: This should only be necessary for legacy positions, but is also needed for positions before and after Tables
|
| if (m_offset <= 0 && (m_anchorType != PositionIsAfterAnchor && m_anchorType != PositionIsAfterChildren)) {
|
| if (m_anchorNode->parentNode() && (editingIgnoresContent(m_anchorNode.get()) || isRenderedTableElement(m_anchorNode.get())))
|
| - return positionInParentBeforeNode(m_anchorNode.get());
|
| + return positionInParentBeforeNode(*m_anchorNode);
|
| return Position(m_anchorNode.get(), 0, PositionIsOffsetInAnchor);
|
| }
|
| if (!m_anchorNode->offsetInCharacters()
|
| && (m_anchorType == PositionIsAfterAnchor || m_anchorType == PositionIsAfterChildren || static_cast<unsigned>(m_offset) == m_anchorNode->countChildren())
|
| && (editingIgnoresContent(m_anchorNode.get()) || isRenderedTableElement(m_anchorNode.get()))
|
| && containerNode()) {
|
| - return positionInParentAfterNode(m_anchorNode.get());
|
| + return positionInParentAfterNode(*m_anchorNode);
|
| }
|
|
|
| return Position(containerNode(), computeOffsetInContainerNode(), PositionIsOffsetInAnchor);
|
|
|