Index: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
index becc390eb3c7063a18046ccfaab099f49106335f..5c24881104914686ca4c676ace92dd19486119ab 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp |
@@ -147,9 +147,9 @@ void SVGTextLayoutAttributesBuilder::buildCharacterDataMap(LayoutSVGText& textRo |
// Handle x/y default attributes. |
SVGCharacterData& data = m_characterDataMap.add(1, SVGCharacterData()).storedValue->value; |
- if (SVGTextLayoutAttributes::isEmptyValue(data.x)) |
+ if (!data.hasX()) |
data.x = 0; |
- if (SVGTextLayoutAttributes::isEmptyValue(data.y)) |
+ if (!data.hasY()) |
data.y = 0; |
} |