summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/SVGRenderTreeAsText.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/rendering/SVGRenderTreeAsText.cpp
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/rendering/SVGRenderTreeAsText.cpp')
-rw-r--r--WebCore/rendering/SVGRenderTreeAsText.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/WebCore/rendering/SVGRenderTreeAsText.cpp b/WebCore/rendering/SVGRenderTreeAsText.cpp
index d3e029c..74a8af9 100644
--- a/WebCore/rendering/SVGRenderTreeAsText.cpp
+++ b/WebCore/rendering/SVGRenderTreeAsText.cpp
@@ -88,7 +88,7 @@ TextStream& operator<<(TextStream& ts, const IntRect& r)
return ts << "at (" << r.x() << "," << r.y() << ") size " << r.width() << "x" << r.height();
}
-bool hasFractions(double val)
+static bool hasFractions(double val)
{
double epsilon = 0.0001;
int ival = static_cast<int>(val);
@@ -151,7 +151,7 @@ TextStream& operator<<(TextStream& ts, const FloatSize& s)
return ts;
}
-TextStream& operator<<(TextStream& ts, const AffineTransform& transform)
+TextStream& operator<<(TextStream& ts, const TransformationMatrix& transform)
{
if (transform.isIdentity())
ts << "identity";
@@ -233,8 +233,10 @@ static void writeStyle(TextStream& ts, const RenderObject& object)
if (!object.localTransform().isIdentity())
ts << " [transform=" << object.localTransform() << "]";
- if (svgStyle->imageRendering() != SVGRenderStyle::initialImageRendering())
- ts << " [image rendering=" << svgStyle->imageRendering() << "]";
+ if (svgStyle->imageRendering() != SVGRenderStyle::initialImageRendering()) {
+ unsigned imageRenderingAsInteger = svgStyle->imageRendering();
+ ts << " [image rendering=" << imageRenderingAsInteger << "]";
+ }
if (style->opacity() != RenderStyle::initialOpacity())
ts << " [opacity=" << style->opacity() << "]";
if (object.isRenderPath()) {
@@ -329,7 +331,7 @@ static TextStream& operator<<(TextStream& ts, const RenderSVGText& text)
return ts;
Vector<SVGTextChunk>& chunks = const_cast<Vector<SVGTextChunk>& >(box->svgTextChunks());
- ts << " at (" << text.xPos() << "," << text.yPos() << ") size " << box->width() << "x" << box->height() << " contains " << chunks.size() << " chunk(s)";
+ ts << " at (" << text.x() << "," << text.y() << ") size " << box->width() << "x" << box->height() << " contains " << chunks.size() << " chunk(s)";
if (text.parent() && (text.parent()->style()->color() != text.style()->color()))
ts << " [color=" << text.style()->color().name() << "]";
@@ -514,7 +516,9 @@ void write(TextStream& ts, const RenderSVGInlineText& text, int indent)
ts << " {" << tagName << "}";
}
- ts << " at (" << text.xPos() << "," << text.yPos() << ") size " << text.width() << "x" << text.height() << "\n";
+ IntRect linesBox = text.linesBoundingBox();
+
+ ts << " at (" << text.firstRunX() << "," << text.firstRunY() << ") size " << linesBox.width() << "x" << linesBox.height() << "\n";
writeSVGInlineText(ts, text, indent);
}