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

Unified Diff: third_party/WebKit/Source/core/html/TextControlElement.h

Issue 2669213002: Remove spelling markers in disabled and readonly form elements
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/html/TextControlElement.h
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.h b/third_party/WebKit/Source/core/html/TextControlElement.h
index 79ee9879424fafa87f450ea00808271c2f7eafed..e6c869536ec3e19496fc54451fbad608578844c3 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.h
+++ b/third_party/WebKit/Source/core/html/TextControlElement.h
@@ -156,6 +156,9 @@ class CORE_EXPORT TextControlElement : public HTMLFormControlElementWithState {
virtual bool shouldDispatchFormControlChangeEvent(String&, String&);
void copyNonAttributePropertiesFromElement(const Element&) override;
+ void disabledAttributeChanged() override;
+ void readonlyAttributeChanged() override;
+
private:
int computeSelectionStart() const;
int computeSelectionEnd() const;
@@ -194,6 +197,8 @@ class CORE_EXPORT TextControlElement : public HTMLFormControlElementWithState {
bool placeholderShouldBeVisible() const;
+ void removeSpellingAndGrammarMarkersOnInnerEditor();
+
String m_textAsOfLastFormControlChangeEvent;
bool m_wasChangedSinceLastFormControlChangeEvent = false;
bool m_lastChangeWasUserEdit;

Powered by Google App Engine
This is Rietveld 408576698