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

Unified Diff: third_party/WebKit/Source/core/html/HTMLContentElement.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/HTMLContentElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLContentElement.cpp b/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
index 364bdf5377d24df7ff2c0372c2b43cbff8172411..23f97fad833bad0e7876635e256fe469b39294a7 100644
--- a/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLContentElement.cpp
@@ -70,18 +70,17 @@ void HTMLContentElement::parseSelect() {
m_selectorList = CSSSelectorList();
}
-void HTMLContentElement::parseAttribute(const QualifiedName& name,
- const AtomicString& oldValue,
- const AtomicString& value) {
- if (name == selectAttr) {
+void HTMLContentElement::parseAttribute(
+ const AttributeModificationParams& params) {
+ if (params.name == selectAttr) {
if (ShadowRoot* root = containingShadowRoot()) {
if (!root->isV1() && root->owner())
root->owner()->v0().willAffectSelector();
}
m_shouldParseSelect = true;
- m_select = value;
+ m_select = params.newValue;
} else {
- InsertionPoint::parseAttribute(name, oldValue, value);
+ InsertionPoint::parseAttribute(params);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLContentElement.h ('k') | third_party/WebKit/Source/core/html/HTMLDetailsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698