[Webkit-unassigned] [Bug 112240] execCommand("RemoveFormat") might remove format after the selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 12 09:58:53 PDT 2013


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





--- Comment #7 from Claudio Saavedra <csaavedra at igalia.com>  2013-04-12 09:57:08 PST ---
So, to make this clearer, this is p = lastPositionInOrAfterNode(node):

  {m_anchorNode = {m_ptr = 0xaa6b00}, m_offset = 0, m_anchorType = 4, m_isLegacyEditingPosition = false}

and this is p.upstream():

  {m_anchorNode = {m_ptr = 0xaa6b00}, m_offset = 0, m_anchorType = 0, m_isLegacyEditingPosition = false}

node is <B> with a text child of length != 0. p is after the child (m_anchorType = 4 means PositionIsAfterChildren) while p.upstream() is *before* the child (m_anchorType = 0 means PositionIsOffsetInAnchor with m_offset = 0).

-- 
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