Changeset 126031 in webkit


Ignore:
Timestamp:
Aug 20, 2012 8:18:17 AM (12 years ago)
Author:
allan.jensen@nokia.com
Message:

[Qt] Custom tap-highlight-color renders fully opaque
https://bugs.webkit.org/show_bug.cgi?id=94468

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Adjust the default tap-highlight-color to figure in that is will be
drawn semi-transparent.

  • rendering/RenderTheme.h:

(RenderTheme):

Source/WebKit2:

Draw tap-highlight-color at 50% transparency, to better match how
existing WebKit browsers act on custom tap-highlight colors.

  • WebProcess/WebPage/TapHighlightController.cpp:

(WebKit::TapHighlightController::drawRect):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r126028 r126031  
     12012-08-20  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        [Qt] Custom tap-highlight-color renders fully opaque
     4        https://bugs.webkit.org/show_bug.cgi?id=94468
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Adjust the default tap-highlight-color to figure in that is will be
     9        drawn semi-transparent.
     10
     11        * rendering/RenderTheme.h:
     12        (RenderTheme):
     13
    1142012-08-20  Andrey Adaikin  <aandrey@chromium.org>
    215
  • trunk/Source/WebCore/rendering/RenderTheme.h

    r125048 r126031  
    366366
    367367#if ENABLE(TOUCH_EVENTS)
    368     static const RGBA32 defaultTapHighlightColor = 0x33000000;
     368    // This color is expected to be drawn on a semi-transparent overlay,
     369    // making it more transparent than its alpha value indicates.
     370    static const RGBA32 defaultTapHighlightColor = 0x66000000;
    369371#endif
    370372
  • trunk/Source/WebKit2/ChangeLog

    r126030 r126031  
     12012-08-20  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        [Qt] Custom tap-highlight-color renders fully opaque
     4        https://bugs.webkit.org/show_bug.cgi?id=94468
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Draw tap-highlight-color at 50% transparency, to better match how
     9        existing WebKit browsers act on custom tap-highlight colors.
     10
     11        * WebProcess/WebPage/TapHighlightController.cpp:
     12        (WebKit::TapHighlightController::drawRect):
     13
    1142012-08-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/TapHighlightController.cpp

    r115310 r126031  
    106106        GraphicsContextStateSaver stateSaver(context);
    107107        if (m_webPage->drawingArea()->pageOverlayShouldApplyFadeWhenPainting())
    108             context.setFillColor(highlightColor(m_color, pageOverlay->fractionFadedIn()), ColorSpaceSRGB);
     108            context.setFillColor(highlightColor(m_color, pageOverlay->fractionFadedIn() * 0.5f), ColorSpaceSRGB);
    109109        else
    110             context.setFillColor(m_color, ColorSpaceSRGB);
     110            context.setFillColor(highlightColor(m_color, 0.5f), ColorSpaceSRGB);
    111111        context.fillPath(m_path);
    112112    }
Note: See TracChangeset for help on using the changeset viewer.