Bug 172006 - [macOS] REGRESSION: Drag images for links with right-to-left titles are incorrect
Summary: [macOS] REGRESSION: Drag images for links with right-to-left titles are incor...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-11 18:09 PDT by mitz
Modified: 2017-05-16 17:54 PDT (History)
5 users (show)

See Also:


Attachments
Patch (11.05 KB, patch)
2017-05-16 17:14 PDT, Tim Horton
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2017-05-11 18:09:54 PDT
The drag image for a link whose title runs right-to-left is wrong: truncation happens at the wrong place, and when there are two lines, alignment is wrong.
Comment 1 Radar WebKit Bug Importer 2017-05-12 14:49:28 PDT
<rdar://problem/32165137>
Comment 2 Tim Horton 2017-05-16 17:14:42 PDT
Created attachment 310322 [details]
Patch
Comment 3 Dean Jackson 2017-05-16 17:43:18 PDT
Comment on attachment 310322 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=310322&action=review

Where are the tests?

> Source/WebCore/platform/mac/DragImageMac.mm:219
> +        CTParagraphStyleSetting paragraphStyleSettings[1];

Should paragraphStyleSettings be captured?
Comment 4 Dean Jackson 2017-05-16 17:47:00 PDT
Comment on attachment 310322 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=310322&action=review

>> Source/WebCore/platform/mac/DragImageMac.mm:219
>> +        CTParagraphStyleSetting paragraphStyleSettings[1];
> 
> Should paragraphStyleSettings be captured?

Ignore this.
Comment 5 Tim Horton 2017-05-16 17:54:14 PDT
http://trac.webkit.org/changeset/216962/webkit

Consider it ignored. Thank you!