diff options
author | Leon Scroggins <scroggo@google.com> | 2009-11-20 14:47:54 -0500 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-11-20 15:37:18 -0500 |
commit | ce5633cace44e557954c70720fac3b47502a6ca5 (patch) | |
tree | 7bcedd6fd13f7af4c61441eb7ce472d001479c53 /WebCore/platform/android/RenderThemeAndroid.h | |
parent | 453d3796805ae4e29fb55d8d4358692597c78b2b (diff) | |
download | external_webkit-ce5633cace44e557954c70720fac3b47502a6ca5.zip external_webkit-ce5633cace44e557954c70720fac3b47502a6ca5.tar.gz external_webkit-ce5633cace44e557954c70720fac3b47502a6ca5.tar.bz2 |
Draw ListBoxes to look like MenuLists.
Cherry-pick of an earlier change, listed below, which was somehow
lost. Fixes http://b/issue?id=2273867
https://android-git.corp.google.com/g/#change,5072
Fix <select with multiple and/or size > 1.
With the latest WebKit drop we lost a hack we had to make ListBoxes
behave like MenuLists. Rather than reviving it, now in WebViewCore
check for isListBox(). This makes a click once again open the list
so the user can choose the selection. Also disable WebKit's drawing
of the text shown, and simply draw it ourselves, so we can draw
nothing or the first item selected.
Diffstat (limited to 'WebCore/platform/android/RenderThemeAndroid.h')
-rw-r--r-- | WebCore/platform/android/RenderThemeAndroid.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.h b/WebCore/platform/android/RenderThemeAndroid.h index 2e54302..ae1213c 100644 --- a/WebCore/platform/android/RenderThemeAndroid.h +++ b/WebCore/platform/android/RenderThemeAndroid.h @@ -63,7 +63,12 @@ public: virtual Color platformActiveSelectionForegroundColor() const; virtual Color platformInactiveSelectionForegroundColor() const; virtual Color platformTextSearchHighlightColor() const; - + + virtual Color platformActiveListBoxSelectionBackgroundColor() const; + virtual Color platformInactiveListBoxSelectionBackgroundColor() const; + virtual Color platformActiveListBoxSelectionForegroundColor() const; + virtual Color platformInactiveListBoxSelectionForegroundColor() const; + virtual void systemFont(int, WebCore::FontDescription&) const {} virtual int minimumMenuListSize(RenderStyle*) const { return 0; } |