diff options
author | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-17 12:12:20 -0700 |
commit | 5f1ab04193ad0130ca8204aadaceae083aca9881 (patch) | |
tree | 5a92cd389e2cfe7fb67197ce14b38469462379f8 /WebCore/platform/android | |
parent | 194315e5a908cc8ed67d597010544803eef1ac59 (diff) | |
download | external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.zip external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.gz external_webkit-5f1ab04193ad0130ca8204aadaceae083aca9881.tar.bz2 |
Get WebKit r44544.
Diffstat (limited to 'WebCore/platform/android')
-rw-r--r-- | WebCore/platform/android/RenderThemeAndroid.cpp | 10 | ||||
-rw-r--r-- | WebCore/platform/android/TemporaryLinkStubs.cpp | 19 |
2 files changed, 13 insertions, 16 deletions
diff --git a/WebCore/platform/android/RenderThemeAndroid.cpp b/WebCore/platform/android/RenderThemeAndroid.cpp index a1e8bf6..3910b7a 100644 --- a/WebCore/platform/android/RenderThemeAndroid.cpp +++ b/WebCore/platform/android/RenderThemeAndroid.cpp @@ -27,7 +27,6 @@ #include "RenderThemeAndroid.h" #include "Color.h" -#include "FormControlElement.h" #include "GraphicsContext.h" #include "PlatformGraphicsContext.h" #include "RenderSkinAndroid.h" @@ -181,8 +180,8 @@ bool RenderThemeAndroid::paintButton(RenderObject* obj, const RenderObject::Pain { // If it is a disabled button, simply paint it to the master picture. Node* node = obj->node(); - FormControlElement* formControlElement = toFormControlElement(static_cast<Element*>(node)); - if (formControlElement && !formControlElement->isEnabled()) + if (node && node->isElementNode() && + static_cast<Element*>(node)->isEnabledFormControl()) RenderSkinButton::Draw(getCanvasFromInfo(info), rect, RenderSkinAndroid::kDisabled); else // Store all the important information in the platform context. @@ -255,10 +254,7 @@ static void adjustMenuListStyleCommon(RenderStyle* style, Element* e) style->setPaddingRight(Length(RenderSkinCombo::extraWidth(), Fixed)); // Code copied from RenderThemeMac.mm // Makes sure that the text shows up on our treatment - bool isEnabled = true; - if (FormControlElement* formControlElement = toFormControlElement(e)) - isEnabled = formControlElement->isEnabled(); - style->setColor(isEnabled ? Color::black : Color::darkGray); + style->setColor(e->isEnabledFormControl() ? Color::black : Color::darkGray); } void RenderThemeAndroid::adjustMenuListStyle(CSSStyleSelector*, RenderStyle* style, Element* e) const diff --git a/WebCore/platform/android/TemporaryLinkStubs.cpp b/WebCore/platform/android/TemporaryLinkStubs.cpp index 446b078..395d18b 100644 --- a/WebCore/platform/android/TemporaryLinkStubs.cpp +++ b/WebCore/platform/android/TemporaryLinkStubs.cpp @@ -59,6 +59,7 @@ #include "Icon.h" #include "IconDatabase.h" #include "IconLoader.h" +#include "InspectorFrontend.h" #include "IntPoint.h" #if USE(JSC) @@ -470,7 +471,7 @@ PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String&) #if USE(JSC) namespace JSC { namespace Bindings { bool dispatchJNICall(ExecState*, const void* targetAppletView, jobject obj, bool isStatic, JNIType returnType, - jmethodID methodID, jvalue* args, jvalue& result, const char* callingURL, JSValuePtr& exceptionDescription) + jmethodID methodID, jvalue* args, jvalue& result, const char* callingURL, JSValue& exceptionDescription) { notImplemented(); return false; @@ -555,6 +556,11 @@ void AXObjectCache::remove(RenderObject*) notImplemented(); } +InspectorFrontend::~InspectorFrontend() +{ + notImplemented(); +} + #if USE(JSC) using namespace JSC; @@ -571,15 +577,9 @@ OpaqueJSClassContextData::~OpaqueJSClassContextData() // as we don't use inspector/*.cpp, add stub here. +/* namespace WebCore { - -JSValuePtr toJS(ExecState*, Profile*) -{ - notImplemented(); - return jsNull(); -} - -JSValuePtr JavaScriptCallFrame::evaluate(const UString& script, JSValuePtr& exception) const +JSValue JavaScriptCallFrame::evaluate(const UString& script, JSValue& exception) const { notImplemented(); return jsNull(); @@ -679,4 +679,5 @@ void JavaScriptDebugServer::willExecuteProgram(const DebuggerCallFrame&, int, in { notImplemented(); } +*/ #endif |