summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-11-07 13:53:18 -0800
committerJohn Reck <jreck@google.com>2011-11-07 14:40:06 -0800
commit82ccbd8ce95211b4b5afad6a653462fd3beb771b (patch)
tree8f266070f9f609e033dfe6eb6d34e0968c24da97 /Source/WebCore/platform/android
parent54464c408c893079c1486aec03329f1de8ec6a29 (diff)
downloadexternal_webkit-82ccbd8ce95211b4b5afad6a653462fd3beb771b.zip
external_webkit-82ccbd8ce95211b4b5afad6a653462fd3beb771b.tar.gz
external_webkit-82ccbd8ce95211b4b5afad6a653462fd3beb771b.tar.bz2
Remove the global button lock
Bug: 5558699 Bug: 5572238 Change-Id: Ic199ffda5bc4aa09d39ee54221c6fcce6a91ca05
Diffstat (limited to 'Source/WebCore/platform/android')
-rw-r--r--Source/WebCore/platform/android/RenderThemeAndroid.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/platform/android/RenderThemeAndroid.cpp b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
index 7ef814e..481ecbf 100644
--- a/Source/WebCore/platform/android/RenderThemeAndroid.cpp
+++ b/Source/WebCore/platform/android/RenderThemeAndroid.cpp
@@ -234,17 +234,18 @@ bool RenderThemeAndroid::paintButton(RenderObject* obj, const PaintInfo& info, c
// If it is a disabled button, simply paint it to the master picture.
Node* node = obj->node();
Element* formControlElement = static_cast<Element*>(node);
- if (formControlElement && !formControlElement->isEnabledFormControl()) {
+ if (formControlElement) {
android::WebFrame* webFrame = getWebFrame(node);
if (webFrame) {
RenderSkinAndroid* skins = webFrame->renderSkins();
- if (skins)
- skins->renderSkinButton()->draw(getCanvasFromInfo(info), rect,
- RenderSkinAndroid::kDisabled);
+ if (skins) {
+ RenderSkinAndroid::State state = RenderSkinAndroid::kNormal;
+ if (!formControlElement->isEnabledFormControl())
+ state = RenderSkinAndroid::kDisabled;
+ skins->renderSkinButton()->draw(getCanvasFromInfo(info), rect, state);
+ }
}
- } else
- // Store all the important information in the platform context.
- info.context->platformContext()->storeButtonInfo(node, rect);
+ }
// We always return false so we do not request to be redrawn.
return false;