Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: Source/core/html/forms/BaseTextInputType.cpp

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/forms/BaseTextInputType.h ('k') | Source/core/html/forms/ButtonInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/BaseTextInputType.cpp
diff --git a/Source/core/html/forms/BaseTextInputType.cpp b/Source/core/html/forms/BaseTextInputType.cpp
index 54c0e74e0aa3d76509e7795105cd8bdd35aacbe3..7dd12c69a2fcce0592eb6ecfff149d68b1c427af 100644
--- a/Source/core/html/forms/BaseTextInputType.cpp
+++ b/Source/core/html/forms/BaseTextInputType.cpp
@@ -39,7 +39,7 @@ 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())
return false;
« no previous file with comments | « Source/core/html/forms/BaseTextInputType.h ('k') | Source/core/html/forms/ButtonInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698