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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 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
Index: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
index b40d3d62658addf035aa0ccd3460cb9c3faa07f8..76d626078b885dae5764ff35add2ae70180ed848 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
@@ -226,7 +226,7 @@ static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPro
static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName, const String& valueAsString)
{
ASSERT(targetElement);
- if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
+ if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
return;
CSSPropertyID id = cssPropertyID(attributeName.localName());
@@ -245,7 +245,7 @@ static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElemen
static inline void removeCSSPropertyFromTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName)
{
ASSERT(targetElement);
- if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
+ if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
return;
CSSPropertyID id = cssPropertyID(attributeName.localName());
@@ -270,7 +270,7 @@ static inline void notifyTargetAboutAnimValChange(SVGElement* targetElement, con
static inline void notifyTargetAndInstancesAboutAnimValChange(SVGElement* targetElement, const QualifiedName& attributeName)
{
ASSERT(targetElement);
- if (attributeName == anyQName() || !targetElement->inShadowIncludingDocument() || !targetElement->parentNode())
+ if (attributeName == anyQName() || !targetElement->isConnected() || !targetElement->parentNode())
return;
SVGElement::InstanceUpdateBlocker blocker(targetElement);

Powered by Google App Engine
This is Rietveld 408576698