Summary: | Share logic in InlineTextBox to compute selection rect | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||||||||||||||
Component: | Layout and Rendering | Assignee: | Daniel Bates <dbates> | ||||||||||||||||
Status: | REOPENED --- | ||||||||||||||||||
Severity: | Normal | CC: | bfulgham, buildbot, rniwa, simon.fraser, webkit-bug-importer, zalan | ||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
Version: | WebKit Local Build | ||||||||||||||||||
Hardware: | All | ||||||||||||||||||
OS: | All | ||||||||||||||||||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=138913 https://bugs.webkit.org/show_bug.cgi?id=135631 |
||||||||||||||||||
Bug Depends on: | 178611, 178671 | ||||||||||||||||||
Bug Blocks: | 175784, 178613 | ||||||||||||||||||
Attachments: |
|
Description
Daniel Bates
2017-10-12 14:12:10 PDT
Created attachment 323564 [details]
Patch
Created attachment 323566 [details]
Patch
Created attachment 323575 [details]
Patch
Comment on attachment 323575 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=323575&action=review > Source/WebCore/rendering/InlineTextBox.cpp:677 > + context.fillRect(snapRectToDevicePixelsWithWritingDirection(selectionRect, renderer().document().deviceScaleFactor(), direction() == LTR), c); Will substitute isLeftToRightDirection() for "direction() == LTR" before landing. > Source/WebCore/rendering/InlineTextBox.cpp:699 > + context.fillRect(snapRectToDevicePixelsWithWritingDirection(selectionRect, renderer().document().deviceScaleFactor(), direction() == LTR), color); Ditto. Comment on attachment 323575 [details]
Patch
This patch could use a bit of 'auto'.
Committed r223699: <https://trac.webkit.org/changeset/223699> Reverted r223699 for reason: Caused regressions with right-to-left text selection and painting of markers in flipped writing mode and in overlapping lines. Will investigate offline. Committed r223840: <https://trac.webkit.org/changeset/223840> Created attachment 324568 [details] Work-in-progress Incorporates the source code change from the patch for bug #178611, attachment #324477 [details]. Comment on attachment 324568 [details] Work-in-progress Attachment 324568 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/4960534 New failing tests: platform/mac/fast/dom/character-index-for-point.html fast/repaint/selection-ruby-rl.html editing/spelling/spelling-markers-in-overlapping-lines.html editing/spelling/spelling-markers-in-overlapping-lines-large-font.html fast/dom/Range/getClientRects.html Created attachment 324574 [details]
Archive of layout-test-results from ews101 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 324568 [details] Work-in-progress Attachment 324568 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4960488 New failing tests: platform/mac/fast/dom/character-index-for-point.html fast/repaint/selection-ruby-rl.html editing/spelling/spelling-markers-in-overlapping-lines.html fast/dom/Range/getClientRects.html editing/spelling/spelling-markers-in-overlapping-lines-large-font.html Created attachment 324575 [details]
Archive of layout-test-results from ews116 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 324568 [details] Work-in-progress Attachment 324568 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4964592 New failing tests: fast/repaint/selection-ruby-rl.html fast/dom/Range/getClientRects.html Created attachment 324625 [details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
|