Title: [118572] trunk/Source/WebCore
- Revision
- 118572
- Author
- [email protected]
- Date
- 2012-05-25 15:10:59 -0700 (Fri, 25 May 2012)
Log Message
Build fix: add TransformationMatrix ctor from an AffineTransform.
* platform/graphics/transforms/TransformationMatrix.cpp:
(WebCore::TransformationMatrix::TransformationMatrix):
(WebCore):
* platform/graphics/transforms/TransformationMatrix.h:
(TransformationMatrix):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (118571 => 118572)
--- trunk/Source/WebCore/ChangeLog 2012-05-25 22:07:32 UTC (rev 118571)
+++ trunk/Source/WebCore/ChangeLog 2012-05-25 22:10:59 UTC (rev 118572)
@@ -1,3 +1,13 @@
+2012-05-25 Simon Fraser <[email protected]>
+
+ Build fix: add TransformationMatrix ctor from an AffineTransform.
+
+ * platform/graphics/transforms/TransformationMatrix.cpp:
+ (WebCore::TransformationMatrix::TransformationMatrix):
+ (WebCore):
+ * platform/graphics/transforms/TransformationMatrix.h:
+ (TransformationMatrix):
+
2012-05-24 Ryosuke Niwa <[email protected]>
createContextualFragment and insertAdjacentHTML should throw syntax error
Modified: trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp (118571 => 118572)
--- trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp 2012-05-25 22:07:32 UTC (rev 118571)
+++ trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp 2012-05-25 22:10:59 UTC (rev 118572)
@@ -515,6 +515,11 @@
// End of Supporting Math Functions
+TransformationMatrix::TransformationMatrix(const AffineTransform& t)
+{
+ setMatrix(t.a(), t.b(), t.c(), t.d(), t.e(), t.f());
+}
+
TransformationMatrix& TransformationMatrix::scale(double s)
{
return scaleNonUniform(s, s);
Modified: trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h (118571 => 118572)
--- trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h 2012-05-25 22:07:32 UTC (rev 118571)
+++ trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h 2012-05-25 22:10:59 UTC (rev 118572)
@@ -73,6 +73,7 @@
typedef double Matrix4[4][4];
TransformationMatrix() { makeIdentity(); }
+ TransformationMatrix(const AffineTransform& t);
TransformationMatrix(const TransformationMatrix& t) { *this = t; }
TransformationMatrix(double a, double b, double c, double d, double e, double f) { setMatrix(a, b, c, d, e, f); }
TransformationMatrix(double m11, double m12, double m13, double m14,
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes