summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp b/chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp
index 54c0e74e0aa..d00d21e98cb 100644
--- a/chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp
+++ b/chromium/third_party/WebKit/Source/core/html/forms/BaseTextInputType.cpp
@@ -25,8 +25,8 @@
#include "core/html/forms/BaseTextInputType.h"
#include "HTMLNames.h"
+#include "bindings/v8/ScriptRegexp.h"
#include "core/html/HTMLInputElement.h"
-#include "core/platform/text/RegularExpression.h"
namespace WebCore {
@@ -39,14 +39,14 @@ bool BaseTextInputType::isTextType() const
bool BaseTextInputType::patternMismatch(const String& value) const
{
- const AtomicString& rawPattern = element()->fastGetAttribute(patternAttr);
+ const AtomicString& rawPattern = element().fastGetAttribute(patternAttr);
// Empty values can't be mismatched
- if (rawPattern.isNull() || value.isEmpty() || !RegularExpression(rawPattern, TextCaseSensitive).isValid())
+ if (rawPattern.isNull() || value.isEmpty() || !ScriptRegexp(rawPattern, TextCaseSensitive).isValid())
return false;
String pattern = "^(?:" + rawPattern + ")$";
int matchLength = 0;
int valueLength = value.length();
- int matchOffset = RegularExpression(pattern, TextCaseSensitive).match(value, 0, &matchLength);
+ int matchOffset = ScriptRegexp(pattern, TextCaseSensitive).match(value, 0, &matchLength);
return matchOffset || matchLength != valueLength;
}