Changeset 117987 in webkit


Ignore:
Timestamp:
May 22, 2012 9:41:12 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Make color of spelling check marker cross-platform.
https://bugs.webkit.org/show_bug.cgi?id=87095

Patch by Hao Zheng <zhenghao@chromium.org> on 2012-05-22
Reviewed by Adam Barth.

Pixel layout is RGBA on Android, while it is BGRA on other platforms.

No new tests. To run tests on Android.

  • platform/graphics/skia/GraphicsContextSkia.cpp:

(WebCore::GraphicsContext::drawLineForDocumentMarker):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117981 r117987  
     12012-05-22  Hao Zheng  <zhenghao@chromium.org>
     2
     3        [chromium] Make color of spelling check marker cross-platform.
     4        https://bugs.webkit.org/show_bug.cgi?id=87095
     5
     6        Reviewed by Adam Barth.
     7
     8        Pixel layout is RGBA on Android, while it is BGRA on other platforms.
     9
     10        No new tests. To run tests on Android.
     11
     12        * platform/graphics/skia/GraphicsContextSkia.cpp:
     13        (WebCore::GraphicsContext::drawLineForDocumentMarker):
     14
    1152012-05-22  Dana Jansens  <danakj@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r117528 r117987  
    550550        }
    551551#else
    552         const uint32_t lineColor = 0xFFFF0000; // Opaque red.
    553         const uint32_t antiColor = 0x60600000;  // Semitransparent red.
     552        const uint32_t lineColor = 0xFF << SK_A32_SHIFT | 0xFF << SK_R32_SHIFT; // Opaque red.
     553        const uint32_t antiColor = 0x60 << SK_A32_SHIFT | 0x60 << SK_R32_SHIFT; // Semitransparent red
    554554
    555555        // Pattern:  X o   o X o   o X
     
    11191119
    11201120}  // namespace WebCore
    1121 
Note: See TracChangeset for help on using the changeset viewer.