| Index: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| index 73bddfc0bd4f4625d3947890011c6ed5d1696afd..10ded6d7cdffa2533f11d42e047733da4873ec98 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
| @@ -104,7 +104,7 @@ SVGViewSpec* SVGSVGElement::currentView()
|
|
|
| float SVGSVGElement::currentScale() const
|
| {
|
| - if (!inShadowIncludingDocument() || !isOutermostSVGSVGElement())
|
| + if (!isConnected() || !isOutermostSVGSVGElement())
|
| return 1;
|
|
|
| return m_currentScale;
|
| @@ -113,7 +113,7 @@ float SVGSVGElement::currentScale() const
|
| void SVGSVGElement::setCurrentScale(float scale)
|
| {
|
| ASSERT(std::isfinite(scale));
|
| - if (!inShadowIncludingDocument() || !isOutermostSVGSVGElement())
|
| + if (!isConnected() || !isOutermostSVGSVGElement())
|
| return;
|
|
|
| m_currentScale = scale;
|
| @@ -500,7 +500,7 @@ LayoutObject* SVGSVGElement::createLayoutObject(const ComputedStyle&)
|
|
|
| Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* rootParent)
|
| {
|
| - if (rootParent->inShadowIncludingDocument()) {
|
| + if (rootParent->isConnected()) {
|
| UseCounter::count(document(), UseCounter::SVGSVGElementInDocument);
|
| if (rootParent->document().isXMLDocument())
|
| UseCounter::count(document(), UseCounter::SVGSVGElementInXMLDocument);
|
| @@ -520,7 +520,7 @@ Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro
|
|
|
| void SVGSVGElement::removedFrom(ContainerNode* rootParent)
|
| {
|
| - if (rootParent->inShadowIncludingDocument()) {
|
| + if (rootParent->isConnected()) {
|
| SVGDocumentExtensions& svgExtensions = document().accessSVGExtensions();
|
| svgExtensions.removeTimeContainer(this);
|
| svgExtensions.removeSVGRootWithRelativeLengthDescendents(this);
|
|
|