| Index: Source/core/dom/Position.h
|
| diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
|
| index 5ae92d1a30215c9a5acd00406f5e44c8a748b474..562472c5e36bcb54fb1d5f57aea0ea36dc7ff5db 100644
|
| --- a/Source/core/dom/Position.h
|
| +++ b/Source/core/dom/Position.h
|
| @@ -143,6 +143,12 @@ public:
|
| // New code should not use this function.
|
| int deprecatedEditingOffset() const;
|
|
|
| + // |deprecatedEditingOffset()| is used only for layout object related
|
| + // functions, |isRenderedCharacter()|, |inRenderedText()|, and
|
| + // |rendersInDifferentPosition()|.
|
| + // New code should not use this function.
|
| + int deprecatedOffset() const { return m_offset; }
|
| +
|
| // These are convenience methods which are smart about whether the position is neighbor anchored or parent anchored
|
| Node* computeNodeBeforePosition() const;
|
| Node* computeNodeAfterPosition() const;
|
| @@ -210,7 +216,6 @@ public:
|
| bool isCandidate() const;
|
| bool inRenderedText() const;
|
| bool isRenderedCharacter() const;
|
| - bool rendersInDifferentPosition(const PositionAlgorithm<Strategy>&) const;
|
|
|
| InlineBoxPosition computeInlineBoxPosition(EAffinity) const;
|
| InlineBoxPosition computeInlineBoxPosition(EAffinity, TextDirection primaryDirection) const;
|
| @@ -253,8 +258,6 @@ private:
|
| return isAfterAnchor() || isAfterChildren();
|
| }
|
|
|
| - int renderedOffset() const;
|
| -
|
| RefPtrWillBeMember<Node> m_anchorNode;
|
| // m_offset can be the offset inside m_anchorNode, or if editingIgnoresContent(m_anchorNode)
|
| // returns true, then other places in editing will treat m_offset == 0 as "before the anchor"
|
| @@ -270,6 +273,8 @@ extern template class CORE_EXTERN_TEMPLATE_EXPORT PositionAlgorithm<EditingInCom
|
| using Position = PositionAlgorithm<EditingStrategy>;
|
| using PositionInComposedTree = PositionAlgorithm<EditingInComposedTreeStrategy>;
|
|
|
| +bool rendersInDifferentPosition(const Position&, const Position&);
|
| +
|
| inline Position createLegacyEditingPosition(PassRefPtrWillBeRawPtr<Node> node, int offset)
|
| {
|
| return Position::createLegacyEditingPosition(node, offset);
|
|
|