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

Unified Diff: third_party/WebKit/WebCore/rendering/RenderSVGTextPath.cpp

Issue 10670: Do another merge using nifty new merge script (CL for that coming soon). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
Index: third_party/WebKit/WebCore/rendering/RenderSVGTextPath.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderSVGTextPath.cpp (revision 5296)
+++ third_party/WebKit/WebCore/rendering/RenderSVGTextPath.cpp (working copy)
@@ -92,10 +92,31 @@
for (InlineRunBox* curr = firstBox; curr; curr = curr->nextLineBox()) {
FloatRect rect(xRef + curr->xPos(), yRef + curr->yPos(), curr->width(), curr->height());
+ // FIXME: broken with CSS transforms
rects.append(enclosingIntRect(absoluteTransform().mapRect(rect)));
}
}
+void RenderSVGTextPath::absoluteQuads(Vector<FloatQuad>& quads, bool topLevel)
+{
+ InlineRunBox* firstBox = firstLineBox();
+
+ SVGRootInlineBox* rootBox = firstBox ? static_cast<SVGInlineTextBox*>(firstBox)->svgRootInlineBox() : 0;
+ RenderObject* object = rootBox ? rootBox->object() : 0;
+
+ if (!object)
+ return;
+
+ int xRef = object->xPos() + xPos();
+ int yRef = object->yPos() + yPos();
+
+ for (InlineRunBox* curr = firstBox; curr; curr = curr->nextLineBox()) {
+ FloatRect rect(xRef + curr->xPos(), yRef + curr->yPos(), curr->width(), curr->height());
+ // FIXME: broken with CSS transforms
+ quads.append(absoluteTransform().mapRect(rect));
+ }
}
+}
+
#endif // ENABLE(SVG)
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderSVGTextPath.h ('k') | third_party/WebKit/WebCore/rendering/RenderTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698