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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTextPathElement.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/SVGTextPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp
index 8cb6cb5793e6f0eadab15b912b589c04f9f34672..7f6063e64e19f3309d96eeaa0552b055a1eaa3e7 100644
--- a/third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp
@@ -120,7 +120,7 @@ bool SVGTextPathElement::layoutObjectIsNeeded(const ComputedStyle& style)
void SVGTextPathElement::buildPendingResource()
{
clearResourceReferences();
- if (!inDocument())
+ if (!inShadowIncludingDocument())
return;
AtomicString id;
@@ -154,7 +154,7 @@ Node::InsertionNotificationRequest SVGTextPathElement::insertedInto(ContainerNod
void SVGTextPathElement::removedFrom(ContainerNode* rootParent)
{
SVGTextContentElement::removedFrom(rootParent);
- if (rootParent->inDocument())
+ if (rootParent->inShadowIncludingDocument())
clearResourceReferences();
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGSVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698