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

Unified Diff: Source/core/svg/SVGTextElement.cpp

Issue 23956012: Stop passing NodeRenderingContext except in textRendererIsNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/svg/SVGTextElement.h ('k') | Source/core/svg/SVGTextPathElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextElement.cpp
diff --git a/Source/core/svg/SVGTextElement.cpp b/Source/core/svg/SVGTextElement.cpp
index 0db147d59bfedeb863f36326229704ed8a61923d..960499b1c0266492292eff4ee7c8539b5ecae759 100644
--- a/Source/core/svg/SVGTextElement.cpp
+++ b/Source/core/svg/SVGTextElement.cpp
@@ -23,7 +23,6 @@
#include "core/svg/SVGTextElement.h"
#include "SVGNames.h"
-#include "core/dom/NodeRenderingContext.h"
#include "core/rendering/svg/RenderSVGResource.h"
#include "core/rendering/svg/RenderSVGText.h"
#include "core/svg/SVGElementInstance.h"
@@ -72,16 +71,16 @@ RenderObject* SVGTextElement::createRenderer(RenderStyle*)
return new RenderSVGText(this);
}
-bool SVGTextElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const
+bool SVGTextElement::childShouldCreateRenderer(const Node& child) const
{
- if (childContext.node()->isTextNode()
- || childContext.node()->hasTagName(SVGNames::aTag)
+ if (child.isTextNode()
+ || child.hasTagName(SVGNames::aTag)
#if ENABLE(SVG_FONTS)
- || childContext.node()->hasTagName(SVGNames::altGlyphTag)
+ || child.hasTagName(SVGNames::altGlyphTag)
#endif
- || childContext.node()->hasTagName(SVGNames::textPathTag)
- || childContext.node()->hasTagName(SVGNames::trefTag)
- || childContext.node()->hasTagName(SVGNames::tspanTag))
+ || child.hasTagName(SVGNames::textPathTag)
+ || child.hasTagName(SVGNames::trefTag)
+ || child.hasTagName(SVGNames::tspanTag))
return true;
return false;
« no previous file with comments | « Source/core/svg/SVGTextElement.h ('k') | Source/core/svg/SVGTextPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698