[Webkit-unassigned] [Bug 138913] New: FrameSelection::selectionBounds rarely matches the painted selection highlight rect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 20 00:11:05 PST 2014


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

            Bug ID: 138913
           Summary: FrameSelection::selectionBounds rarely matches the
                    painted selection highlight rect
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: thorton at apple.com

There are a number of places between selection painting and the rect returned by FrameSelection::selectionBounds where rounding is applied inconsistently, resulting in a rect that doesn't precisely match the painted pixels.

For example, RenderView::subtreeSelectionBounds does a 'enclosingBoundingBox', and InlineTextBox::localSelectionRect does a 'enclosingIntRect' instead of 'snapRectToDevicePixelsWithWritingDirection' (which is what happens in the painting code).

This means that FrameSnapshotting::snapshotSelection often returns a snapshot that doesn't precisely match the blue highlight. This also breaks TextIndicator's BounceAndCrossfade animation, which depends on that being true.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141120/3a444b02/attachment-0002.html>


More information about the webkit-unassigned mailing list