summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-04-12 13:43:08 +0100
committerSteve Block <steveblock@google.com>2012-04-12 17:42:30 +0100
commitaee2a095ee4baa61c2e8b86cfa8076967a7f34ac (patch)
tree7ed4dfec749cbc7d772b2acf8448e4a2283b0812 /Source/WebCore/html
parent6fc495ad78b1663298d1395115dc316eeb537036 (diff)
downloadexternal_webkit-aee2a095ee4baa61c2e8b86cfa8076967a7f34ac.zip
external_webkit-aee2a095ee4baa61c2e8b86cfa8076967a7f34ac.tar.gz
external_webkit-aee2a095ee4baa61c2e8b86cfa8076967a7f34ac.tar.bz2
Cherry-pick WebKit change r87227 as a prerequisite for r92139
See http://trac.webkit.org/changeset/87227 Bug: 6329073 Change-Id: I18c371c96547d5a2011847647c8fc398b0adb18d
Diffstat (limited to 'Source/WebCore/html')
-rw-r--r--Source/WebCore/html/shadow/TextControlInnerElements.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/WebCore/html/shadow/TextControlInnerElements.h b/Source/WebCore/html/shadow/TextControlInnerElements.h
index 2340970..886fbf8 100644
--- a/Source/WebCore/html/shadow/TextControlInnerElements.h
+++ b/Source/WebCore/html/shadow/TextControlInnerElements.h
@@ -101,9 +101,8 @@ private:
virtual void detach();
virtual bool isSpinButtonElement() const { return true; }
- // FIXME: shadowAncestorNode() should be const.
- virtual bool isEnabledFormControl() const { return static_cast<Element*>(const_cast<SpinButtonElement*>(this)->shadowAncestorNode())->isEnabledFormControl(); }
- virtual bool isReadOnlyFormControl() const { return static_cast<Element*>(const_cast<SpinButtonElement*>(this)->shadowAncestorNode())->isReadOnlyFormControl(); }
+ virtual bool isEnabledFormControl() const { return static_cast<Element*>(shadowAncestorNode())->isEnabledFormControl(); }
+ virtual bool isReadOnlyFormControl() const { return static_cast<Element*>(shadowAncestorNode())->isReadOnlyFormControl(); }
virtual void defaultEventHandler(Event*);
void startRepeatingTimer();
void stopRepeatingTimer();