[Webkit-unassigned] [Bug 19221] ASSERT during Range creation (due to editing commands)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 26 19:10:17 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=19221
justin.garcia at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28043|review? |review+
Flag| |
------- Comment #15 from justin.garcia at apple.com 2009-02-26 19:10 PDT -------
(From update of attachment 28043)
Don't really need to talk about WebCore code changes in the LayoutTest
ChangeLog.
+// Create a dom-compliant position which is outside of any ignored content
"DOM"
+// FIXME: This combines both avoiding tables and avoiding ignored nodes,
+// those should probably be separate functions.
+// FIXME: Split out part of this into positionAvoidingFirstPositionInTable?
These sound like the same FIXME.
+Position positionAvoidingIgnoredContent(const Position& originalPosition)
+{
+ Position position = originalPosition.toRangeCompliantEquivalent();
Should also mention that this function includes making positions DOM compliant,
which I believe is something you want to split out, no?
+ I also cleaned up Position a little bit to make it a real class.
Please include your rationale for doing this, I remember Darin felt quite
strongly about Position being more like a struct.
+ // Returns node() cast to an element() or the closest element ancestor
+ Element* element() const;
"or the cloest element ancestor of node()."
--
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