[BlackBerry] Need to override active/inactive text search highlight color for RenderT...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2012 04:17:26 +0000 (04:17 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2012 04:17:26 +0000 (04:17 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@108296 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h

index b91045491d68efd46b8e17dacec41ede7c273e44..5a1f14711db9b2469c9c497f10d870d61eff3ef3 100644 (file)
@@ -1,3 +1,22 @@
+2012-02-20  Andy Chen  <andchen@rim.com>
+
+        2012-02-17  Andy Chen  <andchen@rim.com>
+
+        [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.
+
+        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:
+
 2012-02-20  John Knottenbelt  <jknotten@chromium.org>
 
         Default canvas backing store to be 1:1 with specified dimensions.
index d95984dc6cde34bc048848f40ce5eafa76544bc8..c57813f1c663d670ac157e7b5b3767aa9dbee2eb 100644 (file)
@@ -965,4 +965,14 @@ bool RenderThemeBlackBerry::paintProgressBar(RenderObject* object, const PaintIn
     return false;
 }
 
+Color RenderThemeBlackBerry::platformActiveTextSearchHighlightColor() const
+{
+    return Color(255, 150, 50); // Orange.
+}
+
+Color RenderThemeBlackBerry::platformInactiveTextSearchHighlightColor() const
+{
+    return Color(255, 255, 0); // Yellow.
+}
+
 } // namespace WebCore
index 837f178f1300acd2c688928e3c21155d205917f0..62cb739d82305b4eff6f95720e43c6ceeee65fac 100644 (file)
@@ -88,6 +88,10 @@ public:
 
     virtual Color platformActiveSelectionBackgroundColor() const;
 
+    // Highlighting colors for TextMatches.
+    virtual Color platformActiveTextSearchHighlightColor() const;
+    virtual Color platformInactiveTextSearchHighlightColor() const;
+
 private:
     static const String& defaultGUIFont();