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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
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.cpp
diff --git a/third_party/WebKit/Source/core/html/TextControlElement.cpp b/third_party/WebKit/Source/core/html/TextControlElement.cpp
index 804cf7bdd371c0f2288a244fa4318a3558934b1b..24dbb64bbf4bfd79d5555f0afe644d2ac48ea6e8 100644
--- a/third_party/WebKit/Source/core/html/TextControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/TextControlElement.cpp
@@ -703,18 +703,17 @@ void TextControlElement::scheduleSelectEvent() {
document().enqueueUniqueAnimationFrameEvent(event);
}
-void TextControlElement::parseAttribute(const QualifiedName& name,
- const AtomicString& oldValue,
- const AtomicString& value) {
- if (name == autocapitalizeAttr)
+void TextControlElement::parseAttribute(
+ const AttributeModificationParams& params) {
+ if (params.name == autocapitalizeAttr)
UseCounter::count(document(), UseCounter::AutocapitalizeAttribute);
- if (name == placeholderAttr) {
+ if (params.name == placeholderAttr) {
updatePlaceholderText();
updatePlaceholderVisibility();
UseCounter::count(document(), UseCounter::PlaceholderAttribute);
} else {
- HTMLFormControlElementWithState::parseAttribute(name, oldValue, value);
+ HTMLFormControlElementWithState::parseAttribute(params);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.h ('k') | third_party/WebKit/Source/core/svg/SVGAnimateElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698