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

Unified Diff: Source/core/layout/svg/SVGTextLayoutAttributes.h

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 | « Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | Source/core/layout/svg/SVGTextLayoutAttributes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | Source/core/layout/svg/SVGTextLayoutAttributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698