[Webkit-unassigned] [Bug 128806] New: computeSelectionStart and computeSelectionEnd shouldn't trigger synchronous layout

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 14 02:31:39 PST 2014


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

           Summary: computeSelectionStart and computeSelectionEnd
                    shouldn't trigger synchronous layout
           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, koivisto at iki.fi,
                    barraclough at apple.com, benjamin at webkit.org,
                    enrica at apple.com, akling at apple.com
            Blocks: 128797


This is similar to the bug 128478.

computeSelectionStart() and computeSelectionStart() in HTMLTextFormControlElement use indexForVisiblePosition
to compute start and end indexes 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 traverse through the shadow DOM with regular Position instead of 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