Index: Source/core/layout/svg/SVGTextLayoutAttributes.h |
diff --git a/Source/core/layout/svg/SVGTextLayoutAttributes.h b/Source/core/layout/svg/SVGTextLayoutAttributes.h |
index 60dda6dcdaac86613c1bf1dc65d890d0cd3e5147..0423b736812a119545a13ec7b1824b3033b83932 100644 |
--- a/Source/core/layout/svg/SVGTextLayoutAttributes.h |
+++ b/Source/core/layout/svg/SVGTextLayoutAttributes.h |
@@ -22,6 +22,7 @@ |
#include "core/layout/svg/SVGTextMetrics.h" |
#include "wtf/HashMap.h" |
+#include "wtf/MathExtras.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/Vector.h" |
@@ -47,7 +48,8 @@ public: |
SVGTextLayoutAttributes(LayoutSVGInlineText*); |
void clear(); |
- static float emptyValue(); |
+ static float emptyValue() { return std::numeric_limits<float>::quiet_NaN(); } |
+ static bool isEmptyValue(float value) { return std::isnan(value); } |
LayoutSVGInlineText* context() const { return m_context; } |