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

Unified Diff: third_party/WebKit/WebCore/platform/graphics/AffineTransform.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/platform/graphics/AffineTransform.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/AffineTransform.cpp (revision 5296)
+++ third_party/WebKit/WebCore/platform/graphics/AffineTransform.cpp (working copy)
@@ -27,6 +27,7 @@
#include "AffineTransform.h"
#include "FloatRect.h"
+#include "FloatQuad.h"
#include "IntRect.h"
#include <wtf/MathExtras.h>
@@ -160,6 +161,16 @@
return FloatPoint(static_cast<float>(x2), static_cast<float>(y2));
}
+FloatQuad AffineTransform::mapQuad(const FloatQuad& quad) const
+{
+ // FIXME: avoid 4 seperate library calls. Point mapping really needs
+ // to be platform-independent code.
+ return FloatQuad(mapPoint(quad.p1()),
+ mapPoint(quad.p2()),
+ mapPoint(quad.p3()),
+ mapPoint(quad.p4()));
+}
+
void AffineTransform::blend(const AffineTransform& from, double progress)
{
double srA[9], srB[9];

Powered by Google App Engine
This is Rietveld 408576698