| Index: third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp b/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| index ebe19d2f210901b33c7ce558b534d37f1fc82bf7..062cdb539a6fd0a4641394a655071217b97a5259 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGTitleElement.cpp
|
| @@ -21,15 +21,12 @@
|
| #include "core/svg/SVGTitleElement.h"
|
|
|
| #include "core/SVGNames.h"
|
| -#include "core/dom/ChildListMutationScope.h"
|
| #include "core/dom/Document.h"
|
| -#include "core/dom/Text.h"
|
|
|
| namespace blink {
|
|
|
| inline SVGTitleElement::SVGTitleElement(Document& document)
|
| : SVGElement(SVGNames::titleTag, document)
|
| - , m_ignoreTitleUpdatesWhenChildrenChange(false)
|
| {
|
| }
|
|
|
| @@ -55,23 +52,8 @@
|
| void SVGTitleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| SVGElement::childrenChanged(change);
|
| - if (inDocument() && document().isSVGDocument() && !m_ignoreTitleUpdatesWhenChildrenChange)
|
| + if (inDocument() && document().isSVGDocument())
|
| document().setTitleElement(this);
|
| }
|
|
|
| -void SVGTitleElement::setText(const String& value)
|
| -{
|
| - RefPtrWillBeRawPtr<Node> protectFromMutationEvents(this);
|
| - ChildListMutationScope mutation(*this);
|
| -
|
| - {
|
| - // Avoid calling Document::setTitleElement() during intermediate steps.
|
| - TemporaryChange<bool> inhibitTitleUpdateScope(m_ignoreTitleUpdatesWhenChildrenChange, !value.isEmpty());
|
| - removeChildren(OmitSubtreeModifiedEvent);
|
| - }
|
| -
|
| - if (!value.isEmpty())
|
| - appendChild(document().createTextNode(value.impl()), IGNORE_EXCEPTION);
|
| -}
|
| -
|
| } // namespace blink
|
|
|