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

Unified Diff: Source/core/rendering/svg/RenderSVGTSpan.cpp

Issue 145493012: <br> nodes should not be allowed within SVG text (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload ps#3. Created 6 years, 11 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/rendering/svg/RenderSVGInline.cpp ('k') | Source/core/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGTSpan.cpp
diff --git a/Source/core/rendering/svg/RenderSVGTSpan.cpp b/Source/core/rendering/svg/RenderSVGTSpan.cpp
index 168037e97903a0b97f8e5d8a25fa80c7fd6b1b4a..9c71d5416842354b83b58a94ec31ffd235424ab2 100644
--- a/Source/core/rendering/svg/RenderSVGTSpan.cpp
+++ b/Source/core/rendering/svg/RenderSVGTSpan.cpp
@@ -36,9 +36,9 @@ RenderSVGTSpan::RenderSVGTSpan(Element* element)
bool RenderSVGTSpan::isChildAllowed(RenderObject* child, RenderStyle*) const
{
- // Always allow text (except empty textnodes).
+ // Always allow text (except empty textnodes and <br>).
if (child->isText())
- return !SVGRenderSupport::isEmptySVGInlineText(child);
+ return SVGRenderSupport::isRenderableTextNode(child);
#if ENABLE(SVG_FONTS)
// Only allow other types of children if this is not an 'altGlyph'.
« no previous file with comments | « Source/core/rendering/svg/RenderSVGInline.cpp ('k') | Source/core/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698