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

Unified Diff: third_party/WebKit/Source/core/svg/SVGStyleElement.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/svg/SVGStyleElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
index 284116bde2055a44b033fd7efa16f9a237a4edea..4aef0259776210a1ef58ed9c996a667b24621824 100644
--- a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
@@ -81,17 +81,16 @@ void SVGStyleElement::setTitle(const AtomicString& title) {
setAttribute(SVGNames::titleAttr, title);
}
-void SVGStyleElement::parseAttribute(const QualifiedName& name,
- const AtomicString& oldValue,
- const AtomicString& value) {
- if (name == SVGNames::titleAttr) {
+void SVGStyleElement::parseAttribute(
+ const AttributeModificationParams& params) {
+ if (params.name == SVGNames::titleAttr) {
if (m_sheet && isInDocumentTree())
- m_sheet->setTitle(value);
+ m_sheet->setTitle(params.newValue);
return;
}
- SVGElement::parseAttribute(name, oldValue, value);
+ SVGElement::parseAttribute(params);
}
void SVGStyleElement::finishParsingChildren() {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGStyleElement.h ('k') | third_party/WebKit/Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698