[Webkit-unassigned] [Bug 25057] remove rangeCompliantEquivalent and replace it with Position methods

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 8 10:12:30 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=25057





--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org>  2010-12-08 10:12:30 PST ---
(From update of attachment 75917)
View in context: https://bugs.webkit.org/attachment.cgi?id=75917&action=review

> WebCore/dom/Position.cpp:160
> +        return Position(m_anchorNode, 0);

Oops, this would create a legacy Position object.  You need to explicitly pass PositionIsOffsetInAnchor as in Position(m_anchorNode, 0, PositionIsOffsetInAnchor); to create a non-legacy Position object.

> WebCore/dom/Position.cpp:167
> +    return Position(containerNode(), computeOffsetInContainerNode());

Ditto.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list