WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174831
Dragged links are blurry on 1x displays.
https://bugs.webkit.org/show_bug.cgi?id=174831
Summary
Dragged links are blurry on 1x displays.
Per Arne Vollan
Reported
2017-07-25 13:33:54 PDT
When I drag a link from a 2x display to a 1x display, the text in the drag image is blurry.
Attachments
Patch
(1.88 KB, patch)
2017-07-25 13:41 PDT
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2017-07-25 13:34:20 PDT
<
rdar://problem/33519698
>
Per Arne Vollan
Comment 2
2017-07-25 13:41:38 PDT
Created
attachment 316388
[details]
Patch
Simon Fraser (smfr)
Comment 3
2017-07-25 13:47:31 PDT
Comment on
attachment 316388
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316388&action=review
> Source/WebCore/platform/mac/DragImageMac.mm:293 > + // To work around blurry drag images on 1x displays, make the width and height a multiple of 2. > + // FIXME: remove this workaround when <
rdar://problem/33059739
> is fixed. > + boundingRect.setWidth((static_cast<int>(boundingRect.width()) / 2) * 2); > + boundingRect.setHeight((static_cast<int>(boundingRect.height() / 2) * 2));
Is this a user-visible change, or does it just add transparent pixels? Does it affect alignment of the image with the pointer?
Per Arne Vollan
Comment 4
2017-07-25 14:06:07 PDT
(In reply to Simon Fraser (smfr) from
comment #3
)
> Comment on
attachment 316388
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=316388&action=review
> > > Source/WebCore/platform/mac/DragImageMac.mm:293 > > + // To work around blurry drag images on 1x displays, make the width and height a multiple of 2. > > + // FIXME: remove this workaround when <
rdar://problem/33059739
> is fixed. > > + boundingRect.setWidth((static_cast<int>(boundingRect.width()) / 2) * 2); > > + boundingRect.setHeight((static_cast<int>(boundingRect.height() / 2) * 2)); > > Is this a user-visible change, or does it just add transparent pixels? Does > it affect alignment of the image with the pointer?
Do you mean if this changes the alignment of the memory address of the image data? Thanks for reviewing!
Simon Fraser (smfr)
Comment 5
2017-07-25 14:07:39 PDT
Comment on
attachment 316388
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316388&action=review
>>> Source/WebCore/platform/mac/DragImageMac.mm:293 >>> + boundingRect.setHeight((static_cast<int>(boundingRect.height() / 2) * 2)); >> >> Is this a user-visible change, or does it just add transparent pixels? Does it affect alignment of the image with the pointer? > > Do you mean if this changes the alignment of the memory address of the image data? > > Thanks for reviewing!
No, i mean the position of the drag image relative to the mouse pointer.
Per Arne Vollan
Comment 6
2017-07-25 14:28:38 PDT
(In reply to Simon Fraser (smfr) from
comment #5
)
> Comment on
attachment 316388
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=316388&action=review
> > >>> Source/WebCore/platform/mac/DragImageMac.mm:293 > >>> + boundingRect.setHeight((static_cast<int>(boundingRect.height() / 2) * 2)); > >> > >> Is this a user-visible change, or does it just add transparent pixels? Does it affect alignment of the image with the pointer? > > > > Do you mean if this changes the alignment of the memory address of the image data? > > > > Thanks for reviewing! > > No, i mean the position of the drag image relative to the mouse pointer.
Ah, yes, I believe it does affect the alignment with the pointer, since the image size is used in this calculation.
Simon Fraser (smfr)
Comment 7
2017-07-25 14:58:32 PDT
That's bad, then.
Per Arne Vollan
Comment 8
2017-07-25 15:21:07 PDT
Thanks for reviewing!
WebKit Commit Bot
Comment 9
2017-07-25 15:49:00 PDT
Comment on
attachment 316388
[details]
Patch Clearing flags on attachment: 316388 Committed
r219891
: <
http://trac.webkit.org/changeset/219891
>
WebKit Commit Bot
Comment 10
2017-07-25 15:49:01 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug