From 2bde8e466a4451c7319e3a072d118917957d6554 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 25 May 2011 19:08:45 +0100 Subject: Merge WebKit at r82507: Initial merge by git Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e --- Source/WebCore/rendering/RenderTheme.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/WebCore/rendering/RenderTheme.cpp') diff --git a/Source/WebCore/rendering/RenderTheme.cpp b/Source/WebCore/rendering/RenderTheme.cpp index b68429c..f254c99 100644 --- a/Source/WebCore/rendering/RenderTheme.cpp +++ b/Source/WebCore/rendering/RenderTheme.cpp @@ -779,10 +779,10 @@ bool RenderTheme::isActive(const RenderObject* o) const bool RenderTheme::isChecked(const RenderObject* o) const { - if (!o->node() || !o->node()->isElementNode()) + if (!o->node()) return false; - InputElement* inputElement = toInputElement(static_cast(o->node())); + InputElement* inputElement = o->node()->toInputElement(); if (!inputElement) return false; @@ -791,10 +791,10 @@ bool RenderTheme::isChecked(const RenderObject* o) const bool RenderTheme::isIndeterminate(const RenderObject* o) const { - if (!o->node() || !o->node()->isElementNode()) + if (!o->node()) return false; - InputElement* inputElement = toInputElement(static_cast(o->node())); + InputElement* inputElement = o->node()->toInputElement(); if (!inputElement) return false; -- cgit v1.1