summaryrefslogtreecommitdiffstats
path: root/WebCore/html/InputType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/InputType.cpp')
-rw-r--r--WebCore/html/InputType.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/WebCore/html/InputType.cpp b/WebCore/html/InputType.cpp
index c870c69..6dd002c 100644
--- a/WebCore/html/InputType.cpp
+++ b/WebCore/html/InputType.cpp
@@ -41,6 +41,7 @@
#include "HiddenInputType.h"
#include "ImageInputType.h"
#include "IsIndexInputType.h"
+#include "LocalizedStrings.h"
#include "MonthInputType.h"
#include "NumberInputType.h"
#include "PasswordInputType.h"
@@ -237,6 +238,13 @@ double InputType::stepBase() const
return 0;
}
+double InputType::stepBaseWithDecimalPlaces(unsigned* decimalPlaces) const
+{
+ if (decimalPlaces)
+ *decimalPlaces = 0;
+ return stepBase();
+}
+
double InputType::defaultStep() const
{
return numeric_limits<double>::quiet_NaN();
@@ -257,6 +265,31 @@ bool InputType::scaledStepValeuShouldBeInteger() const
return false;
}
+double InputType::acceptableError(double) const
+{
+ return 0;
+}
+
+String InputType::typeMismatchText() const
+{
+ return validationMessageTypeMismatchText();
+}
+
+bool InputType::handleClickEvent(MouseEvent*)
+{
+ return false;
+}
+
+bool InputType::handleDOMActivateEvent(Event*)
+{
+ return false;
+}
+
+bool InputType::handleKeydownEvent(KeyboardEvent*)
+{
+ return false;
+}
+
RenderObject* InputType::createRenderer(RenderArena*, RenderStyle* style) const
{
return RenderObject::createObject(element(), style);
@@ -267,6 +300,13 @@ double InputType::parseToDouble(const String&, double defaultValue) const
return defaultValue;
}
+double InputType::parseToDoubleWithDecimalPlaces(const String& src, double defaultValue, unsigned *decimalPlaces) const
+{
+ if (decimalPlaces)
+ *decimalPlaces = 0;
+ return parseToDouble(src, defaultValue);
+}
+
bool InputType::parseToDateComponents(const String&, DateComponents*) const
{
ASSERT_NOT_REACHED();