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

Unified Diff: Source/core/rendering/svg/SVGRenderSupport.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/SVGRenderSupport.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGRenderSupport.cpp
diff --git a/Source/core/rendering/svg/SVGRenderSupport.cpp b/Source/core/rendering/svg/SVGRenderSupport.cpp
index 276573c23b9366eefce184b02703e166c10f2b53..a9676a093495c0b391bad1e3da6226861e880428 100644
--- a/Source/core/rendering/svg/SVGRenderSupport.cpp
+++ b/Source/core/rendering/svg/SVGRenderSupport.cpp
@@ -411,4 +411,11 @@ bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object)
return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyText();
}
+bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object)
+{
+ ASSERT(object->isText());
+ // <br> is marked as text, but is not handled by the SVG rendering code-path.
+ return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmptyText();
+}
+
}
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698