Changeset 108296 in webkit


Ignore:
Timestamp:
Feb 20, 2012, 8:17:26 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Need to override active/inactive text search highlight color for RenderThemeBlackBerry
https://bugs.webkit.org/show_bug.cgi?id=78920

Override two functions for text search highlight colors so that we can
provide platform specified colors.

Patch by Andy Chen <andchen@rim.com> on 2012-02-17
Reviewed by Antonio Gomes.

No function change so no new tests.

  • platform/blackberry/RenderThemeBlackBerry.cpp:

(WebCore::RenderThemeBlackBerry::platformActiveTextSearchHighlightColor):
(WebCore::RenderThemeBlackBerry::platformInactiveTextSearchHighlightColor):

  • platform/blackberry/RenderThemeBlackBerry.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r108293 r108296  
     12012-02-20  Andy Chen  <andchen@rim.com>
     2
     3        2012-02-17  Andy Chen  <andchen@rim.com>
     4
     5        [BlackBerry] Need to override active/inactive text search highlight color for RenderThemeBlackBerry
     6        https://bugs.webkit.org/show_bug.cgi?id=78920
     7
     8        Override two functions for text search highlight colors so that we can
     9        provide platform specified colors.
     10
     11        Reviewed by Antonio Gomes.
     12
     13        No function change so no new tests.
     14
     15        * platform/blackberry/RenderThemeBlackBerry.cpp:
     16        (WebCore::RenderThemeBlackBerry::platformActiveTextSearchHighlightColor):
     17        (WebCore::RenderThemeBlackBerry::platformInactiveTextSearchHighlightColor):
     18        * platform/blackberry/RenderThemeBlackBerry.h:
     19
    1202012-02-20  John Knottenbelt  <jknotten@chromium.org>
    221
  • trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp

    r108290 r108296  
    966966}
    967967
     968Color RenderThemeBlackBerry::platformActiveTextSearchHighlightColor() const
     969{
     970    return Color(255, 150, 50); // Orange.
     971}
     972
     973Color RenderThemeBlackBerry::platformInactiveTextSearchHighlightColor() const
     974{
     975    return Color(255, 255, 0); // Yellow.
     976}
     977
    968978} // namespace WebCore
  • trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h

    r108290 r108296  
    8989    virtual Color platformActiveSelectionBackgroundColor() const;
    9090
     91    // Highlighting colors for TextMatches.
     92    virtual Color platformActiveTextSearchHighlightColor() const;
     93    virtual Color platformInactiveTextSearchHighlightColor() const;
     94
    9195private:
    9296    static const String& defaultGUIFont();
Note: See TracChangeset for help on using the changeset viewer.