Title: [108296] trunk/Source/WebCore
- Revision
- 108296
- Author
- [email protected]
- Date
- 2012-02-20 20:17:26 -0800 (Mon, 20 Feb 2012)
Log 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 <[email protected]> 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:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (108295 => 108296)
--- trunk/Source/WebCore/ChangeLog 2012-02-21 04:12:25 UTC (rev 108295)
+++ trunk/Source/WebCore/ChangeLog 2012-02-21 04:17:26 UTC (rev 108296)
@@ -1,3 +1,22 @@
+2012-02-20 Andy Chen <[email protected]>
+
+ 2012-02-17 Andy Chen <[email protected]>
+
+ [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 <[email protected]>
Default canvas backing store to be 1:1 with specified dimensions.
Modified: trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp (108295 => 108296)
--- trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp 2012-02-21 04:12:25 UTC (rev 108295)
+++ trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp 2012-02-21 04:17:26 UTC (rev 108296)
@@ -965,4 +965,14 @@
return false;
}
+Color RenderThemeBlackBerry::platformActiveTextSearchHighlightColor() const
+{
+ return Color(255, 150, 50); // Orange.
+}
+
+Color RenderThemeBlackBerry::platformInactiveTextSearchHighlightColor() const
+{
+ return Color(255, 255, 0); // Yellow.
+}
+
} // namespace WebCore
Modified: trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h (108295 => 108296)
--- trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h 2012-02-21 04:12:25 UTC (rev 108295)
+++ trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.h 2012-02-21 04:17:26 UTC (rev 108296)
@@ -88,6 +88,10 @@
virtual Color platformActiveSelectionBackgroundColor() const;
+ // Highlighting colors for TextMatches.
+ virtual Color platformActiveTextSearchHighlightColor() const;
+ virtual Color platformInactiveTextSearchHighlightColor() const;
+
private:
static const String& defaultGUIFont();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes