diff options
Diffstat (limited to 'WebCore/rendering/SVGRenderTreeAsText.cpp')
-rw-r--r-- | WebCore/rendering/SVGRenderTreeAsText.cpp | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/WebCore/rendering/SVGRenderTreeAsText.cpp b/WebCore/rendering/SVGRenderTreeAsText.cpp index 20d7220..4e26f52 100644 --- a/WebCore/rendering/SVGRenderTreeAsText.cpp +++ b/WebCore/rendering/SVGRenderTreeAsText.cpp @@ -124,24 +124,6 @@ static void writeIfNotDefault(TextStream& ts, const char* name, ValueType value, writeNameValuePair(ts, name, value); } -TextStream& operator<<(TextStream& ts, const IntPoint& p) -{ - return ts << "(" << p.x() << "," << p.y() << ")"; -} - -TextStream& operator<<(TextStream& ts, const IntRect& r) -{ - return ts << "at (" << r.x() << "," << r.y() << ") size " << r.width() << "x" << r.height(); -} - -static bool hasFractions(double val) -{ - double epsilon = 0.0001; - int ival = static_cast<int>(val); - double dval = static_cast<double>(ival); - return fabs(val - dval) > epsilon; -} - TextStream& operator<<(TextStream& ts, const FloatRect &r) { ts << "at ("; @@ -167,36 +149,6 @@ TextStream& operator<<(TextStream& ts, const FloatRect &r) return ts; } -TextStream& operator<<(TextStream& ts, const FloatPoint& p) -{ - ts << "("; - if (hasFractions(p.x())) - ts << p.x(); - else - ts << int(p.x()); - ts << ","; - if (hasFractions(p.y())) - ts << p.y(); - else - ts << int(p.y()); - return ts << ")"; -} - -TextStream& operator<<(TextStream& ts, const FloatSize& s) -{ - ts << "width="; - if (hasFractions(s.width())) - ts << s.width(); - else - ts << int(s.width()); - ts << " height="; - if (hasFractions(s.height())) - ts << s.height(); - else - ts << int(s.height()); - return ts; -} - TextStream& operator<<(TextStream& ts, const AffineTransform& transform) { if (transform.isIdentity()) @@ -440,7 +392,7 @@ static void writeRenderSVGTextBox(TextStream& ts, const RenderBlock& text) return; Vector<SVGTextChunk>& chunks = const_cast<Vector<SVGTextChunk>& >(box->svgTextChunks()); - ts << " at (" << text.x() << "," << text.y() << ") size " << box->width() << "x" << box->height() << " contains " << chunks.size() << " chunk(s)"; + ts << " at (" << text.x() << "," << text.y() << ") size " << box->logicalWidth() << "x" << box->logicalHeight() << " contains " << chunks.size() << " chunk(s)"; if (text.parent() && (text.parent()->style()->visitedDependentColor(CSSPropertyColor) != text.style()->visitedDependentColor(CSSPropertyColor))) writeNameValuePair(ts, "color", text.style()->visitedDependentColor(CSSPropertyColor).name()); |