summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLInputElement.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-25 15:09:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-25 15:09:11 +0200
commita89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd (patch)
treeb7abd9f49ae1d4d2e426a5883bfccd42b8e2ee12 /Source/WebCore/html/HTMLInputElement.cpp
parent8d473cf9743f1d30a16a27114e93bd5af5648d23 (diff)
downloadqtwebkit-a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd.tar.gz
Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516)
Diffstat (limited to 'Source/WebCore/html/HTMLInputElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLInputElement.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/WebCore/html/HTMLInputElement.cpp b/Source/WebCore/html/HTMLInputElement.cpp
index 131e964b0..732cab41d 100644
--- a/Source/WebCore/html/HTMLInputElement.cpp
+++ b/Source/WebCore/html/HTMLInputElement.cpp
@@ -278,6 +278,11 @@ bool HTMLInputElement::getAllowedValueStep(double* step) const
return m_inputType->getAllowedValueStep(step);
}
+StepRange HTMLInputElement::createStepRange(AnyStepHandling anyStepHandling) const
+{
+ return m_inputType->createStepRange(anyStepHandling);
+}
+
void HTMLInputElement::stepUp(int n, ExceptionCode& ec)
{
m_inputType->stepUp(n, ec);
@@ -1268,12 +1273,12 @@ bool HTMLInputElement::hasUnacceptableValue() const
bool HTMLInputElement::isInRange() const
{
- return m_inputType->supportsRangeLimitation() && !m_inputType->rangeUnderflow(value()) && !m_inputType->rangeOverflow(value());
+ return m_inputType->isInRange(value());
}
bool HTMLInputElement::isOutOfRange() const
{
- return m_inputType->supportsRangeLimitation() && (m_inputType->rangeUnderflow(value()) || m_inputType->rangeOverflow(value()));
+ return m_inputType->isOutOfRange(value());
}
bool HTMLInputElement::needsSuspensionCallback()
@@ -1331,7 +1336,7 @@ void HTMLInputElement::didChangeForm()
addToRadioButtonGroup();
}
-Node::InsertionNotificationRequest HTMLInputElement::insertedInto(Node* insertionPoint)
+Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode* insertionPoint)
{
HTMLTextFormControlElement::insertedInto(insertionPoint);
if (!insertionPoint->inDocument())
@@ -1341,7 +1346,7 @@ Node::InsertionNotificationRequest HTMLInputElement::insertedInto(Node* insertio
return InsertionDone;
}
-void HTMLInputElement::removedFrom(Node* insertionPoint)
+void HTMLInputElement::removedFrom(ContainerNode* insertionPoint)
{
if (insertionPoint->inDocument())
removeFromRadioButtonGroup();