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

Unified Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.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/SVGSVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
index 3b4703bbf73778a9e9ba4cba20f6ae70fa54b2e5..baec2162f99126295778b149f6823b99d83b9495 100644
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
@@ -96,7 +96,7 @@ SVGSVGElement::~SVGSVGElement()
// is dead as well and there is no reason to clear the extensions.
document().accessSVGExtensions().removeTimeContainer(this);
- ASSERT(inDocument() || !accessDocumentSVGExtensions().isSVGRootWithRelativeLengthDescendents(this));
+ ASSERT(inShadowIncludingDocument() || !accessDocumentSVGExtensions().isSVGRootWithRelativeLengthDescendents(this));
#endif
}
@@ -116,7 +116,7 @@ SVGViewSpec* SVGSVGElement::currentView()
float SVGSVGElement::currentScale() const
{
- if (!inDocument() || !isOutermostSVGSVGElement())
+ if (!inShadowIncludingDocument() || !isOutermostSVGSVGElement())
return 1;
return m_currentScale;
@@ -125,7 +125,7 @@ float SVGSVGElement::currentScale() const
void SVGSVGElement::setCurrentScale(float scale)
{
ASSERT(std::isfinite(scale));
- if (!inDocument() || !isOutermostSVGSVGElement())
+ if (!inShadowIncludingDocument() || !isOutermostSVGSVGElement())
return;
m_currentScale = scale;
@@ -507,7 +507,7 @@ LayoutObject* SVGSVGElement::createLayoutObject(const ComputedStyle&)
Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* rootParent)
{
- if (rootParent->inDocument()) {
+ if (rootParent->inShadowIncludingDocument()) {
UseCounter::count(document(), UseCounter::SVGSVGElementInDocument);
if (rootParent->document().isXMLDocument())
UseCounter::count(document(), UseCounter::SVGSVGElementInXMLDocument);
@@ -527,7 +527,7 @@ Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro
void SVGSVGElement::removedFrom(ContainerNode* rootParent)
{
- if (rootParent->inDocument()) {
+ if (rootParent->inShadowIncludingDocument()) {
SVGDocumentExtensions& svgExtensions = document().accessSVGExtensions();
svgExtensions.removeTimeContainer(this);
svgExtensions.removeSVGRootWithRelativeLengthDescendents(this);
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMPathElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698