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

Unified Diff: Source/core/layout/svg/LayoutSVGInlineText.cpp

Issue 1129333004: Inline SVGTextLayoutAttributes::emptyValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « no previous file | Source/core/layout/svg/SVGTextLayoutAttributes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGInlineText.cpp
diff --git a/Source/core/layout/svg/LayoutSVGInlineText.cpp b/Source/core/layout/svg/LayoutSVGInlineText.cpp
index 2ef5ee2f707a659c7c1c8d14f1a689f038fda1ba..4f77904650d91bd997ff8f361a74bc0df6d90ca7 100644
--- a/Source/core/layout/svg/LayoutSVGInlineText.cpp
+++ b/Source/core/layout/svg/LayoutSVGInlineText.cpp
@@ -155,7 +155,7 @@ bool LayoutSVGInlineText::characterStartsNewTextChunk(int position) const
if (it == m_layoutAttributes.characterDataMap().end())
return false;
- return it->value.x != SVGTextLayoutAttributes::emptyValue() || it->value.y != SVGTextLayoutAttributes::emptyValue();
+ return !SVGTextLayoutAttributes::isEmptyValue(it->value.x) || !SVGTextLayoutAttributes::isEmptyValue(it->value.y);
}
PositionWithAffinity LayoutSVGInlineText::positionForPoint(const LayoutPoint& point)
« no previous file with comments | « no previous file | Source/core/layout/svg/SVGTextLayoutAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698