[Webkit-unassigned] [Bug 23369] Styling a selection that ends in a line break can sometimes style what's after the break

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 15 18:06:55 PST 2009


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





------- Comment #4 from justin.garcia at apple.com  2009-01-15 18:06 PDT -------
I think that the confusing part of the patch is the changes to caretMaxOffset,
or maybe it's existence altogether is confusing.  It kind of represents two
different concepts, and perhaps it should be two separate functions.  One
pertains only to text nodes, and is the value that ignores unrendered text at
the end of text nodes.  There's no such thing as unrendered content at the end
of non-text nodes, so for those, caretMaxOffset gives us the last offset for
the purposes of editing.  The number of children for containers, 1 for <hr> and
<br>s, etc., i.e. maxDeepOffset.


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



More information about the webkit-unassigned mailing list