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

Unified Diff: Source/core/svg/SVGTitleElement.cpp

Issue 384413003: Document.title getter should return text of title element and setter should stop when head el… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and take review comment into consideration Created 6 years, 5 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
« no previous file with comments | « Source/core/html/HTMLTitleElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTitleElement.cpp
diff --git a/Source/core/svg/SVGTitleElement.cpp b/Source/core/svg/SVGTitleElement.cpp
index 08c23574eb1d8d3d9ef838bba686bfa2f3e6297c..1f45f85401080613b79120ba48e5afdf71d3b108 100644
--- a/Source/core/svg/SVGTitleElement.cpp
+++ b/Source/core/svg/SVGTitleElement.cpp
@@ -40,7 +40,7 @@ Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
if (!rootParent->inDocument())
return InsertionDone;
if (firstChild() && document().isSVGDocument())
- document().setTitleElement(textContent(), this);
+ document().setTitleElement(this);
return InsertionDone;
}
@@ -55,7 +55,7 @@ void SVGTitleElement::childrenChanged(const ChildrenChange& change)
{
SVGElement::childrenChanged(change);
if (inDocument() && document().isSVGDocument())
- document().setTitleElement(textContent(), this);
+ document().setTitleElement(this);
}
}
« no previous file with comments | « Source/core/html/HTMLTitleElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698