Index: Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
diff --git a/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp b/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
index 4be892f85ac46ef311ccf9bbdd2b5ca7d792bc5d..d3bbdcc8c3b281c47ec52b93edc6c72ffcd2a76c 100644 |
--- a/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
+++ b/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
@@ -149,9 +149,9 @@ void SVGTextLayoutAttributesBuilder::buildCharacterDataMap(LayoutSVGText& textRo |
m_characterDataMap.set(1, data); |
} else { |
SVGCharacterData& data = it->value; |
- if (data.x == SVGTextLayoutAttributes::emptyValue()) |
+ if (SVGTextLayoutAttributes::isEmptyValue(data.x)) |
data.x = 0; |
- if (data.y == SVGTextLayoutAttributes::emptyValue()) |
+ if (SVGTextLayoutAttributes::isEmptyValue(data.y)) |
data.y = 0; |
} |
@@ -216,7 +216,7 @@ void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po |
} |
// The last rotation value always spans the whole scope. |
- if (lastRotation == SVGTextLayoutAttributes::emptyValue()) |
+ if (SVGTextLayoutAttributes::isEmptyValue(lastRotation)) |
return; |
for (unsigned i = rotateList->length(); i < position.length; ++i) { |