| Index: Source/core/editing/Position.cpp
|
| diff --git a/Source/core/editing/Position.cpp b/Source/core/editing/Position.cpp
|
| index 628f860b52088250966294c189071fd4991e3802..83a9796e9dfba13369fbce0f6b6a592bd2fdcb3a 100644
|
| --- a/Source/core/editing/Position.cpp
|
| +++ b/Source/core/editing/Position.cpp
|
| @@ -939,20 +939,19 @@ bool PositionAlgorithm<Strategy>::inRenderedText() const
|
| return false;
|
| }
|
|
|
| -template <typename Strategy>
|
| -bool PositionAlgorithm<Strategy>::isRenderedCharacter() const
|
| +bool isRenderedCharacter(const Position& position)
|
| {
|
| - if (isNull())
|
| + if (position.isNull())
|
| return false;
|
| - ASSERT(isOffsetInAnchor());
|
| - if (!anchorNode()->isTextNode())
|
| + ASSERT(position.isOffsetInAnchor());
|
| + if (!position.anchorNode()->isTextNode())
|
| return false;
|
|
|
| - LayoutObject* layoutObject = anchorNode()->layoutObject();
|
| + LayoutObject* layoutObject = position.anchorNode()->layoutObject();
|
| if (!layoutObject)
|
| return false;
|
|
|
| - return toLayoutText(layoutObject)->isRenderedCharacter(offsetInContainerNode());
|
| + return toLayoutText(layoutObject)->isRenderedCharacter(position.offsetInContainerNode());
|
| }
|
|
|
| template <typename Strategy>
|
|
|