[Webkit-unassigned] [Bug 128478] New: HTMLTextFormControlElement::setSelectionRange shouldn't use VisiblePosition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 8 15:38:32 PST 2014


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

           Summary: HTMLTextFormControlElement::setSelectionRange
                    shouldn't use VisiblePosition
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: darin at apple.com, ap at webkit.org, enrica at apple.com
            Blocks: 127832


setSelectionRange uses visiblePositionForIndex to obtain start and end positions but we shouldn't need to
since we only have br elements and text nodes inside the shadow DOM of inputs and text area elements.

We should be able to obtain a regular Position by traversing through the DOM,
which is significantly more efficient than creating a VisiblePosition

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