diff options
Diffstat (limited to 'Source/WebCore/dom/InputElement.cpp')
-rw-r--r-- | Source/WebCore/dom/InputElement.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/WebCore/dom/InputElement.cpp b/Source/WebCore/dom/InputElement.cpp index b60fd44..b467df3 100644 --- a/Source/WebCore/dom/InputElement.cpp +++ b/Source/WebCore/dom/InputElement.cpp @@ -38,22 +38,13 @@ #include "Event.h" #include "EventNames.h" #include "Frame.h" -#include "HTMLInputElement.h" -#include "HTMLNames.h" #include "Page.h" #include "RenderTextControlSingleLine.h" #include "SelectionController.h" #include "TextIterator.h" -#if ENABLE(WML) -#include "WMLInputElement.h" -#include "WMLNames.h" -#endif - namespace WebCore { -using namespace HTMLNames; - // FIXME: According to HTML4, the length attribute's value can be arbitrarily // large. However, due to https://bugs.webkit.org/show_bug.cgi?id=14536 things // get rather sluggish when a text field has a larger number of characters than @@ -287,19 +278,6 @@ const AtomicString& InputElementData::name() const return m_name.isNull() ? emptyAtom : m_name; } -InputElement* toInputElement(Element* element) -{ - if (element->isHTMLElement() && (element->hasTagName(inputTag) || element->hasTagName(isindexTag))) - return static_cast<HTMLInputElement*>(element); - -#if ENABLE(WML) - if (element->isWMLElement() && element->hasTagName(WMLNames::inputTag)) - return static_cast<WMLInputElement*>(element); -#endif - - return 0; -} - #if ENABLE(WCSS) static inline const AtomicString& formatCodes() { |