Changeset 135076 in webkit


Ignore:
Timestamp:
Nov 18, 2012 10:46:28 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] add WebCursorInfo::imageScaleFactor
https://bugs.webkit.org/show_bug.cgi?id=102612

Patch by Rick Byers <rbyers@chromium.org> on 2012-11-18
Reviewed by Adam Barth.

Add cursor image scale factor (currently always 1) to chromium API, in preparation for
high-dpi cursor support in bug 99493.

  • public/WebCursorInfo.h:

(WebKit::WebCursorInfo::WebCursorInfo):

  • src/WebCursorInfo.cpp:

(WebKit::WebCursorInfo::WebCursorInfo):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r135048 r135076  
     12012-11-18  Rick Byers  <rbyers@chromium.org>
     2
     3        [chromium] add WebCursorInfo::imageScaleFactor
     4        https://bugs.webkit.org/show_bug.cgi?id=102612
     5
     6        Reviewed by Adam Barth.
     7
     8        Add cursor image scale factor (currently always 1) to chromium API, in preparation for
     9        high-dpi cursor support in bug 99493.
     10
     11        * public/WebCursorInfo.h:
     12        (WebKit::WebCursorInfo::WebCursorInfo):
     13        * src/WebCursorInfo.cpp:
     14        (WebKit::WebCursorInfo::WebCursorInfo):
     15
    1162012-11-17  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Source/WebKit/chromium/public/WebCursorInfo.h

    r101224 r135076  
    9696    Type type;
    9797    WebPoint hotSpot;
     98    float imageScaleFactor;
    9899    WebImage customImage;
    99100
     
    108109    explicit WebCursorInfo(Type type = TypePointer)
    109110        : type(type)
     111        , imageScaleFactor(1)
    110112    {
    111113#ifdef WIN32
  • trunk/Source/WebKit/chromium/src/WebCursorInfo.cpp

    r134149 r135076  
    3939
    4040WebCursorInfo::WebCursorInfo(const Cursor& cursor)
     41    : type(static_cast<Type>(cursor.type()))
     42    , hotSpot(cursor.hotSpot())
     43    , imageScaleFactor(1)
     44    , customImage(cursor.image())
     45#ifdef WIN32
     46    , externalHandle(0)
     47#endif
    4148{
    42     type = static_cast<Type>(cursor.type());
    43     hotSpot = cursor.hotSpot();
    44     customImage = cursor.image();
    45 #ifdef WIN32
    46     externalHandle = 0;
    47 #endif
    4849}
    4950
Note: See TracChangeset for help on using the changeset viewer.