| Index: third_party/WebKit/Source/core/html/forms/EmailInputType.h
|
| diff --git a/third_party/WebKit/Source/core/html/forms/EmailInputType.h b/third_party/WebKit/Source/core/html/forms/EmailInputType.h
|
| index fb005bd0fb0286d3209b92c3eb846e11b4c4ff2f..7c60c708df6602b601edf75d4107d2055556ebfb 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/EmailInputType.h
|
| +++ b/third_party/WebKit/Source/core/html/forms/EmailInputType.h
|
| @@ -40,11 +40,12 @@ public:
|
| static InputType* create(HTMLInputElement&);
|
|
|
| // They are public for unit testing.
|
| - CORE_EXPORT static String convertEmailAddressToASCII(const String&);
|
| - CORE_EXPORT static bool isValidEmailAddress(const String&);
|
| + CORE_EXPORT static String convertEmailAddressToASCII(const ScriptRegexp&, const String&);
|
| + CORE_EXPORT static bool isValidEmailAddress(const ScriptRegexp&, const String&);
|
| + CORE_EXPORT static std::unique_ptr<ScriptRegexp> createEmailRegexp();
|
|
|
| private:
|
| - EmailInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
|
| + explicit EmailInputType(HTMLInputElement&);
|
| void countUsage() override;
|
| const AtomicString& formControlType() const override;
|
| bool typeMismatchFor(const String&) const override;
|
| @@ -56,8 +57,11 @@ private:
|
| String convertFromVisibleValue(const String&) const override;
|
| String visibleValue() const override;
|
|
|
| + ScriptRegexp& ensureEmailRegexp() const;
|
| String convertEmailAddressToUnicode(const String&) const;
|
| String findInvalidAddress(const String&) const;
|
| +
|
| + mutable std::unique_ptr<ScriptRegexp> m_emailRegexp;
|
| };
|
|
|
| } // namespace blink
|
|
|