Changeset 107307 in webkit


Ignore:
Timestamp:
Feb 9, 2012 4:36:09 PM (12 years ago)
Author:
mdelaney@apple.com
Message:

HiDPI: WebKit2's drag images are blurry
https://bugs.webkit.org/show_bug.cgi?id=67779

Use the proper deviceScaleFactor() instead of accessing _intrinsicDeviceScaleFactor

Reviewed by Beth Dakin.

  • UIProcess/API/mac/WKView.mm:

(-[WKView _setDragImage:at:linkDrag:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r107280 r107307  
     12012-02-09  Matthew Delaney  <mdelaney@apple.com>
     2
     3        HiDPI: WebKit2's drag images are blurry
     4        https://bugs.webkit.org/show_bug.cgi?id=67779
     5
     6        Use the proper deviceScaleFactor() instead of accessing _intrinsicDeviceScaleFactor
     7
     8        Reviewed by Beth Dakin.
     9
     10        * UIProcess/API/mac/WKView.mm:
     11        (-[WKView _setDragImage:at:linkDrag:]):
     12
    1132012-02-09  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r107267 r107307  
    25632563    _data->_dragHasStarted = YES;
    25642564    IntSize size([image size]);
    2565     size.scale(1.0 / [self _intrinsicDeviceScaleFactor]);
     2565    size.scale(1.0 / _data->_page->deviceScaleFactor());
    25662566    [image setSize:size];
    25672567   
Note: See TracChangeset for help on using the changeset viewer.