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

Unified Diff: third_party/WebKit/Source/core/html/HTMLProgressElement.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/HTMLProgressElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
index 0eea69aeeb160a6602cd285f0f109efccac987f3..d16304180035b147abf890ac3f8b7654e9c45966 100644
--- a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
@@ -68,17 +68,16 @@ LayoutProgress* HTMLProgressElement::layoutProgress() const {
return nullptr;
}
-void HTMLProgressElement::parseAttribute(const QualifiedName& name,
- const AtomicString& oldValue,
- const AtomicString& value) {
- if (name == valueAttr) {
- if (oldValue.isNull() != value.isNull())
+void HTMLProgressElement::parseAttribute(
+ const AttributeModificationParams& params) {
+ if (params.name == valueAttr) {
+ if (params.oldValue.isNull() != params.newValue.isNull())
pseudoStateChanged(CSSSelector::PseudoIndeterminate);
didElementStateChange();
- } else if (name == maxAttr) {
+ } else if (params.name == maxAttr) {
didElementStateChange();
} else {
- LabelableElement::parseAttribute(name, oldValue, value);
+ LabelableElement::parseAttribute(params);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLProgressElement.h ('k') | third_party/WebKit/Source/core/html/HTMLScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698