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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEImageElement.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/SVGFEImageElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
index e5811466366d5e1fc8155f06a7d8d087c4342f1e..c1d7bd82ef879be38fa98a1c295b3d77aaf4c2fa 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
@@ -91,7 +91,7 @@ void SVGFEImageElement::fetchImageResource()
void SVGFEImageElement::buildPendingResource()
{
clearResourceReferences();
- if (!inDocument())
+ if (!inShadowIncludingDocument())
return;
AtomicString id;
@@ -139,13 +139,13 @@ Node::InsertionNotificationRequest SVGFEImageElement::insertedInto(ContainerNode
void SVGFEImageElement::removedFrom(ContainerNode* rootParent)
{
SVGFilterPrimitiveStandardAttributes::removedFrom(rootParent);
- if (rootParent->inDocument())
+ if (rootParent->inShadowIncludingDocument())
clearResourceReferences();
}
void SVGFEImageElement::notifyFinished(Resource*)
{
- if (!inDocument())
+ if (!inShadowIncludingDocument())
return;
Element* parent = parentElement();
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698