[Webkit-unassigned] [Bug 25312] Infinite loop in WebCore::Position::upstream while selecting a block of text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 23 13:56:34 PDT 2009


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





------- Comment #5 from darin at apple.com  2009-04-23 13:56 PDT -------
(In reply to comment #4)
> I don't know that Position checks it's offset to see if it's valid.  Perhaps
> this could be the problem (from RenderObject::createVisiblePosition):
> 
>         // Find non-anonymous content before.
>         renderer = child;
>         while ((renderer = renderer->previousInPreOrder())) {
>             if (renderer == parent)
>                 break;
>             if (Node* node = renderer->node())
>                 return VisiblePosition(node, numeric_limits<int>::max(),
> DOWNSTREAM);
>         }
> 

Position doesn't check the offset, but I think VisiblePosition should.

If it doesn’t, then my bad; I wrote the code above and maybe that did cause the
bug!


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