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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/SVGMPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
index 8ff94fd3c13d0b9c5643983ab5d248026a9e197a..f576b5aa89b568d217c98bbe8422bb34e0d0b3b8 100644
--- a/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGMPathElement.cpp
@@ -51,7 +51,7 @@ SVGMPathElement::~SVGMPathElement()
void SVGMPathElement::buildPendingResource()
{
clearResourceReferences();
- if (!inDocument())
+ if (!inShadowIncludingDocument())
return;
AtomicString id;
@@ -82,7 +82,7 @@ void SVGMPathElement::clearResourceReferences()
Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent)
{
SVGElement::insertedInto(rootParent);
- if (rootParent->inDocument())
+ if (rootParent->inShadowIncludingDocument())
buildPendingResource();
return InsertionDone;
}
@@ -91,7 +91,7 @@ void SVGMPathElement::removedFrom(ContainerNode* rootParent)
{
SVGElement::removedFrom(rootParent);
notifyParentOfPathChange(rootParent);
- if (rootParent->inDocument())
+ if (rootParent->inShadowIncludingDocument())
clearResourceReferences();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698