Title: [116797] trunk/Source
Revision
116797
Author
shawnsi...@chromium.org
Date
2012-05-11 13:07:12 -0700 (Fri, 11 May 2012)

Log Message

[chromium] Create WebTransformationMatrix interface for chromium platform
https://bugs.webkit.org/show_bug.cgi?id=86049

Reviewed by James Robinson.

Source/Platform:

* Platform.gyp/Platform.gyp:
* Platform.gypi:
* chromium/public/WebTransformationMatrix.h: Added.
(WebCore):
(WebKit):
(WebTransformationMatrix):

Source/WebCore:

This patch creates a WebTransformationMatrix interface. It will
remain unused at the moment, until (a) unit tests are created
and (b) when we are ready to make a brief transition of all other
chromium code to use it.

* WebCore.gypi:
* platform/chromium/support/WebTransformationMatrix.cpp: Added.
(WebKit):
(WebKit::WebTransformationMatrix::WebTransformationMatrix):
(WebKit::WebTransformationMatrix::operator=):
(WebKit::WebTransformationMatrix::operator==):
(WebKit::WebTransformationMatrix::operator*):
(WebKit::WebTransformationMatrix::inverse):
(WebKit::WebTransformationMatrix::to2dTransform):
(WebKit::WebTransformationMatrix::multiply):
(WebKit::WebTransformationMatrix::makeIdentity):
(WebKit::WebTransformationMatrix::translate):
(WebKit::WebTransformationMatrix::translate3d):
(WebKit::WebTransformationMatrix::translateRight3d):
(WebKit::WebTransformationMatrix::scale):
(WebKit::WebTransformationMatrix::scaleNonUniform):
(WebKit::WebTransformationMatrix::scale3d):
(WebKit::WebTransformationMatrix::rotate):
(WebKit::WebTransformationMatrix::rotate3d):
(WebKit::WebTransformationMatrix::skewX):
(WebKit::WebTransformationMatrix::skewY):
(WebKit::WebTransformationMatrix::applyPerspective):
(WebKit::WebTransformationMatrix::blend):
(WebKit::WebTransformationMatrix::hasPerspective):
(WebKit::WebTransformationMatrix::isInvertible):
(WebKit::WebTransformationMatrix::isBackFaceVisible):
(WebKit::WebTransformationMatrix::isIdentity):
(WebKit::WebTransformationMatrix::isIdentityOrTranslation):
(WebKit::WebTransformationMatrix::isIntegerTranslation):
(WebKit::WebTransformationMatrix::m11):
(WebKit::WebTransformationMatrix::setM11):
(WebKit::WebTransformationMatrix::m12):
(WebKit::WebTransformationMatrix::setM12):
(WebKit::WebTransformationMatrix::m13):
(WebKit::WebTransformationMatrix::setM13):
(WebKit::WebTransformationMatrix::m14):
(WebKit::WebTransformationMatrix::setM14):
(WebKit::WebTransformationMatrix::m21):
(WebKit::WebTransformationMatrix::setM21):
(WebKit::WebTransformationMatrix::m22):
(WebKit::WebTransformationMatrix::setM22):
(WebKit::WebTransformationMatrix::m23):
(WebKit::WebTransformationMatrix::setM23):
(WebKit::WebTransformationMatrix::m24):
(WebKit::WebTransformationMatrix::setM24):
(WebKit::WebTransformationMatrix::m31):
(WebKit::WebTransformationMatrix::setM31):
(WebKit::WebTransformationMatrix::m32):
(WebKit::WebTransformationMatrix::setM32):
(WebKit::WebTransformationMatrix::m33):
(WebKit::WebTransformationMatrix::setM33):
(WebKit::WebTransformationMatrix::m34):
(WebKit::WebTransformationMatrix::setM34):
(WebKit::WebTransformationMatrix::m41):
(WebKit::WebTransformationMatrix::setM41):
(WebKit::WebTransformationMatrix::m42):
(WebKit::WebTransformationMatrix::setM42):
(WebKit::WebTransformationMatrix::m43):
(WebKit::WebTransformationMatrix::setM43):
(WebKit::WebTransformationMatrix::m44):
(WebKit::WebTransformationMatrix::setM44):
(WebKit::WebTransformationMatrix::a):
(WebKit::WebTransformationMatrix::setA):
(WebKit::WebTransformationMatrix::b):
(WebKit::WebTransformationMatrix::setB):
(WebKit::WebTransformationMatrix::c):
(WebKit::WebTransformationMatrix::setC):
(WebKit::WebTransformationMatrix::d):
(WebKit::WebTransformationMatrix::setD):
(WebKit::WebTransformationMatrix::e):
(WebKit::WebTransformationMatrix::setE):
(WebKit::WebTransformationMatrix::f):
(WebKit::WebTransformationMatrix::setF):
(WebKit::WebTransformationMatrix::toWebCoreTransform):
(WebKit::WebTransformationMatrix::mapRect):
(WebKit::WebTransformationMatrix::mapPoint):
(WebKit::WebTransformationMatrix::mapQuad):
(WebKit::WebTransformationMatrix::projectPoint):

Modified Paths

Added Paths

Diff

Modified: trunk/Source/Platform/ChangeLog (116796 => 116797)


--- trunk/Source/Platform/ChangeLog	2012-05-11 19:49:28 UTC (rev 116796)
+++ trunk/Source/Platform/ChangeLog	2012-05-11 20:07:12 UTC (rev 116797)
@@ -1,3 +1,17 @@
+2012-05-11  Shawn Singh  <shawnsi...@chromium.org>
+
+        [chromium] Create WebTransformationMatrix interface for chromium platform
+        https://bugs.webkit.org/show_bug.cgi?id=86049
+
+        Reviewed by James Robinson.
+
+        * Platform.gyp/Platform.gyp:
+        * Platform.gypi:
+        * chromium/public/WebTransformationMatrix.h: Added.
+        (WebCore):
+        (WebKit):
+        (WebTransformationMatrix):
+
 2012-05-10  Mark Pilgrim  <pilg...@chromium.org>
 
         [Chromium] Remove WEBKIT_USING_SKIA ifdefs that are always true

Modified: trunk/Source/Platform/Platform.gyp/Platform.gyp (116796 => 116797)


--- trunk/Source/Platform/Platform.gyp/Platform.gyp	2012-05-11 19:49:28 UTC (rev 116796)
+++ trunk/Source/Platform/Platform.gyp/Platform.gyp	2012-05-11 20:07:12 UTC (rev 116797)
@@ -59,6 +59,7 @@
                 # directory for all ports and just use them as normal.
                 'webcore_headers': [
                     '../../WebCore/platform/graphics/FloatPoint.h',
+                    '../../WebCore/platform/graphics/FloatPoint3D.h',
                     '../../WebCore/platform/graphics/FloatQuad.h',
                     '../../WebCore/platform/graphics/FloatRect.h',
                     '../../WebCore/platform/graphics/FloatSize.h',

Modified: trunk/Source/Platform/Platform.gypi (116796 => 116797)


--- trunk/Source/Platform/Platform.gypi	2012-05-11 19:49:28 UTC (rev 116796)
+++ trunk/Source/Platform/Platform.gypi	2012-05-11 20:07:12 UTC (rev 116797)
@@ -92,6 +92,7 @@
             'chromium/public/WebString.h',
             'chromium/public/WebThread.h',
             'chromium/public/WebThreadSafeData.h',
+            'chromium/public/WebTransformationMatrix.h',
             'chromium/public/WebURL.h',
             'chromium/public/WebURLError.h',
             'chromium/public/WebURLLoadTiming.h',

Added: trunk/Source/Platform/chromium/public/WebTransformationMatrix.h (0 => 116797)


--- trunk/Source/Platform/chromium/public/WebTransformationMatrix.h	                        (rev 0)
+++ trunk/Source/Platform/chromium/public/WebTransformationMatrix.h	2012-05-11 20:07:12 UTC (rev 116797)
@@ -0,0 +1,157 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ *     * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebTransformationMatrix_h
+#define WebTransformationMatrix_h
+
+#if WEBKIT_IMPLEMENTATION
+#include "FloatPoint.h"
+#include "FloatPoint3D.h"
+#include "FloatQuad.h"
+#endif
+
+#include "WebCommon.h"
+#include "WebPrivateOwnPtr.h"
+
+namespace WebCore {
+class TransformationMatrix;
+}
+
+namespace WebKit {
+
+class WebTransformationMatrix {
+public:
+    WebTransformationMatrix();
+    WebTransformationMatrix(double a, double b, double c, double d, double e, double f);
+    WebTransformationMatrix(const WebTransformationMatrix&);
+
+    // Operations that return a separate matrix and do not modify this one.
+    WebTransformationMatrix inverse() const;
+    WebTransformationMatrix to2dTransform() const;
+
+    WebTransformationMatrix& operator=(const WebTransformationMatrix&);
+    bool operator==(const WebTransformationMatrix&) const;
+    WebTransformationMatrix operator*(const WebTransformationMatrix&) const;
+
+    // Operations that modify this matrix
+    void multiply(const WebTransformationMatrix&);
+    void makeIdentity();
+    void translate(double tx, double ty);
+    void translate3d(double tx, double ty, double tz);
+    void translateRight3d(double tx, double ty, double tz);
+    void scale(double s);
+    void scaleNonUniform(double sx, double sy);
+    void scale3d(double sx, double sy, double sz);
+    void rotate(double angle);
+    void rotate3d(double rx, double ry, double rz);
+    void rotate3d(double x, double y, double z, double angle);
+    void skewX(double angle);
+    void skewY(double angle);
+    void applyPerspective(double p);
+    void blend(const WebTransformationMatrix& from, double progress);
+
+    bool hasPerspective() const;
+    bool isInvertible() const;
+    bool isBackFaceVisible() const;
+    bool isIdentity() const;
+    bool isIdentityOrTranslation() const;
+    bool isIntegerTranslation() const;
+
+    // Accessors
+    double m11() const;
+    void setM11(double);
+    double m12() const;
+    void setM12(double);
+    double m13() const;
+    void setM13(double);
+    double m14() const;
+    void setM14(double);
+    double m21() const;
+    void setM21(double);
+    double m22() const;
+    void setM22(double);
+    double m23() const;
+    void setM23(double);
+    double m24() const;
+    void setM24(double);
+    double m31() const;
+    void setM31(double);
+    double m32() const;
+    void setM32(double);
+    double m33() const;
+    void setM33(double);
+    double m34() const;
+    void setM34(double);
+    double m41() const;
+    void setM41(double);
+    double m42() const;
+    void setM42(double);
+    double m43() const;
+    void setM43(double);
+    double m44() const;
+    void setM44(double);
+
+    double a() const;
+    void setA(double);
+    double b() const;
+    void setB(double);
+    double c() const;
+    void setC(double);
+    double d() const;
+    void setD(double);
+    double e() const;
+    void setE(double);
+    double f() const;
+    void setF(double);
+
+#if WEBKIT_IMPLEMENTATION
+    // Conversions between WebKit::WebTransformationMatrix and WebCore::TransformationMatrix
+    explicit WebTransformationMatrix(const WebCore::TransformationMatrix&);
+    WebCore::TransformationMatrix& toWebCoreTransform() const;
+
+    // FIXME: these map functions should not exist, should be using CCMathUtil
+    // instead. Eventually CCMathUtil functions could be merged here, but its
+    // not yet the right time for that.
+    WebCore::FloatRect mapRect(const WebCore::FloatRect&) const;
+    WebCore::IntRect mapRect(const WebCore::IntRect&) const;
+    WebCore::FloatPoint3D mapPoint(const WebCore::FloatPoint3D&) const;
+    WebCore::FloatPoint mapPoint(const WebCore::FloatPoint&) const;
+    WebCore::IntPoint mapPoint(const WebCore::IntPoint&) const;
+    WebCore::FloatQuad mapQuad(const WebCore::FloatQuad&) const;
+    WebCore::FloatPoint projectPoint(const WebCore::FloatPoint&, bool* clamped = 0) const;
+#endif
+
+protected:
+    WebPrivateOwnPtr<WebCore::TransformationMatrix> m_private;
+};
+
+} // namespace WebKit
+
+#endif

Modified: trunk/Source/WebCore/ChangeLog (116796 => 116797)


--- trunk/Source/WebCore/ChangeLog	2012-05-11 19:49:28 UTC (rev 116796)
+++ trunk/Source/WebCore/ChangeLog	2012-05-11 20:07:12 UTC (rev 116797)
@@ -1,3 +1,94 @@
+2012-05-11  Shawn Singh  <shawnsi...@chromium.org>
+
+        [chromium] Create WebTransformationMatrix interface for chromium platform
+        https://bugs.webkit.org/show_bug.cgi?id=86049
+
+        Reviewed by James Robinson.
+
+        This patch creates a WebTransformationMatrix interface. It will
+        remain unused at the moment, until (a) unit tests are created
+        and (b) when we are ready to make a brief transition of all other
+        chromium code to use it.
+
+        * WebCore.gypi:
+        * platform/chromium/support/WebTransformationMatrix.cpp: Added.
+        (WebKit):
+        (WebKit::WebTransformationMatrix::WebTransformationMatrix):
+        (WebKit::WebTransformationMatrix::operator=):
+        (WebKit::WebTransformationMatrix::operator==):
+        (WebKit::WebTransformationMatrix::operator*):
+        (WebKit::WebTransformationMatrix::inverse):
+        (WebKit::WebTransformationMatrix::to2dTransform):
+        (WebKit::WebTransformationMatrix::multiply):
+        (WebKit::WebTransformationMatrix::makeIdentity):
+        (WebKit::WebTransformationMatrix::translate):
+        (WebKit::WebTransformationMatrix::translate3d):
+        (WebKit::WebTransformationMatrix::translateRight3d):
+        (WebKit::WebTransformationMatrix::scale):
+        (WebKit::WebTransformationMatrix::scaleNonUniform):
+        (WebKit::WebTransformationMatrix::scale3d):
+        (WebKit::WebTransformationMatrix::rotate):
+        (WebKit::WebTransformationMatrix::rotate3d):
+        (WebKit::WebTransformationMatrix::skewX):
+        (WebKit::WebTransformationMatrix::skewY):
+        (WebKit::WebTransformationMatrix::applyPerspective):
+        (WebKit::WebTransformationMatrix::blend):
+        (WebKit::WebTransformationMatrix::hasPerspective):
+        (WebKit::WebTransformationMatrix::isInvertible):
+        (WebKit::WebTransformationMatrix::isBackFaceVisible):
+        (WebKit::WebTransformationMatrix::isIdentity):
+        (WebKit::WebTransformationMatrix::isIdentityOrTranslation):
+        (WebKit::WebTransformationMatrix::isIntegerTranslation):
+        (WebKit::WebTransformationMatrix::m11):
+        (WebKit::WebTransformationMatrix::setM11):
+        (WebKit::WebTransformationMatrix::m12):
+        (WebKit::WebTransformationMatrix::setM12):
+        (WebKit::WebTransformationMatrix::m13):
+        (WebKit::WebTransformationMatrix::setM13):
+        (WebKit::WebTransformationMatrix::m14):
+        (WebKit::WebTransformationMatrix::setM14):
+        (WebKit::WebTransformationMatrix::m21):
+        (WebKit::WebTransformationMatrix::setM21):
+        (WebKit::WebTransformationMatrix::m22):
+        (WebKit::WebTransformationMatrix::setM22):
+        (WebKit::WebTransformationMatrix::m23):
+        (WebKit::WebTransformationMatrix::setM23):
+        (WebKit::WebTransformationMatrix::m24):
+        (WebKit::WebTransformationMatrix::setM24):
+        (WebKit::WebTransformationMatrix::m31):
+        (WebKit::WebTransformationMatrix::setM31):
+        (WebKit::WebTransformationMatrix::m32):
+        (WebKit::WebTransformationMatrix::setM32):
+        (WebKit::WebTransformationMatrix::m33):
+        (WebKit::WebTransformationMatrix::setM33):
+        (WebKit::WebTransformationMatrix::m34):
+        (WebKit::WebTransformationMatrix::setM34):
+        (WebKit::WebTransformationMatrix::m41):
+        (WebKit::WebTransformationMatrix::setM41):
+        (WebKit::WebTransformationMatrix::m42):
+        (WebKit::WebTransformationMatrix::setM42):
+        (WebKit::WebTransformationMatrix::m43):
+        (WebKit::WebTransformationMatrix::setM43):
+        (WebKit::WebTransformationMatrix::m44):
+        (WebKit::WebTransformationMatrix::setM44):
+        (WebKit::WebTransformationMatrix::a):
+        (WebKit::WebTransformationMatrix::setA):
+        (WebKit::WebTransformationMatrix::b):
+        (WebKit::WebTransformationMatrix::setB):
+        (WebKit::WebTransformationMatrix::c):
+        (WebKit::WebTransformationMatrix::setC):
+        (WebKit::WebTransformationMatrix::d):
+        (WebKit::WebTransformationMatrix::setD):
+        (WebKit::WebTransformationMatrix::e):
+        (WebKit::WebTransformationMatrix::setE):
+        (WebKit::WebTransformationMatrix::f):
+        (WebKit::WebTransformationMatrix::setF):
+        (WebKit::WebTransformationMatrix::toWebCoreTransform):
+        (WebKit::WebTransformationMatrix::mapRect):
+        (WebKit::WebTransformationMatrix::mapPoint):
+        (WebKit::WebTransformationMatrix::mapQuad):
+        (WebKit::WebTransformationMatrix::projectPoint):
+
 2012-05-11  Alexandru Chiculita  <ach...@adobe.com>
 
         [CSS Shaders] Make CSS Shaders render to texture framebuffers

Modified: trunk/Source/WebCore/WebCore.gypi (116796 => 116797)


--- trunk/Source/WebCore/WebCore.gypi	2012-05-11 19:49:28 UTC (rev 116796)
+++ trunk/Source/WebCore/WebCore.gypi	2012-05-11 20:07:12 UTC (rev 116797)
@@ -8289,6 +8289,7 @@
             'platform/chromium/support/WebMediaStreamSource.cpp',
             'platform/chromium/support/WebMediaStreamSourcesRequest.cpp',
             'platform/chromium/support/WebThreadSafeData.cpp',
+            'platform/chromium/support/WebTransformationMatrix.cpp',
             'platform/chromium/support/WebURL.cpp',
             'platform/chromium/support/WebURLError.cpp',
             'platform/chromium/support/WebURLRequest.cpp',

Added: trunk/Source/WebCore/platform/chromium/support/WebTransformationMatrix.cpp (0 => 116797)


--- trunk/Source/WebCore/platform/chromium/support/WebTransformationMatrix.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/chromium/support/WebTransformationMatrix.cpp	2012-05-11 20:07:12 UTC (rev 116797)
@@ -0,0 +1,460 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include <public/WebTransformationMatrix.h>
+
+#include "TransformationMatrix.h"
+
+using namespace WebCore;
+
+namespace WebKit {
+
+// FIXME: The overhead of allocating a new TransformationMatrix in these constructors needs to go away as soon
+//        as possible.
+
+WebTransformationMatrix::WebTransformationMatrix()
+    : m_private(new TransformationMatrix())
+{
+}
+
+WebTransformationMatrix::WebTransformationMatrix(double a, double b, double c, double d, double e, double f)
+    : m_private(new TransformationMatrix(a, b, c, d, e, f))
+{
+}
+
+WebTransformationMatrix::WebTransformationMatrix(const WebTransformationMatrix& t)
+    : m_private(new TransformationMatrix(*t.m_private.get()))
+{
+}
+
+#if WEBKIT_IMPLEMENTATION
+WebTransformationMatrix::WebTransformationMatrix(const TransformationMatrix& t)
+    : m_private(new TransformationMatrix(t))
+{
+}
+#endif
+
+WebTransformationMatrix& WebTransformationMatrix::operator=(const WebTransformationMatrix& t)
+{
+    *m_private.get() = *t.m_private.get();
+    return *this;
+}
+
+bool WebTransformationMatrix::operator==(const WebTransformationMatrix& t) const
+{
+    bool isEqual = (*m_private.get() == *t.m_private.get());
+    return isEqual;
+}
+
+WebTransformationMatrix WebTransformationMatrix::operator*(const WebTransformationMatrix& t) const
+{
+    WebTransformationMatrix result = *this;
+    result.multiply(t);
+    return result;
+}
+
+WebTransformationMatrix WebTransformationMatrix::inverse() const
+{
+    WebTransformationMatrix result;
+    *result.m_private.get() = m_private->inverse();
+    return result;
+}
+
+WebTransformationMatrix WebTransformationMatrix::to2dTransform() const
+{
+    WebTransformationMatrix result;
+    *result.m_private.get() = m_private->to2dTransform();
+    return result;
+}
+
+void WebTransformationMatrix::multiply(const WebTransformationMatrix& t)
+{
+    m_private->multiply(*t.m_private.get());
+}
+
+void WebTransformationMatrix::makeIdentity()
+{
+    m_private->makeIdentity();
+}
+
+void WebTransformationMatrix::translate(double tx, double ty)
+{
+    m_private->translate(tx, ty);
+}
+
+void WebTransformationMatrix::translate3d(double tx, double ty, double tz)
+{
+    m_private->translate3d(tx, ty, tz);
+}
+
+void WebTransformationMatrix::translateRight3d(double tx, double ty, double tz)
+{
+    m_private->translateRight3d(tx, ty, tz);
+}
+
+void WebTransformationMatrix::scale(double s)
+{
+    m_private->scale(s);
+}
+
+void WebTransformationMatrix::scaleNonUniform(double sx, double sy)
+{
+    m_private->scaleNonUniform(sx, sy);
+}
+
+void WebTransformationMatrix::scale3d(double sx, double sy, double sz)
+{
+    m_private->scale3d(sx, sy, sz);
+}
+
+void WebTransformationMatrix::rotate(double angle)
+{
+    m_private->rotate(angle);
+}
+
+void WebTransformationMatrix::rotate3d(double rx, double ry, double rz)
+{
+    m_private->rotate3d(rx, ry, rz);
+}
+
+void WebTransformationMatrix::rotate3d(double x, double y, double z, double angle)
+{
+    m_private->rotate3d(x, y, z, angle);
+}
+
+void WebTransformationMatrix::skewX(double angle)
+{
+    m_private->skewX(angle);
+}
+
+void WebTransformationMatrix::skewY(double angle)
+{
+    m_private->skewY(angle);
+}
+
+void WebTransformationMatrix::applyPerspective(double p)
+{
+    m_private->applyPerspective(p);
+}
+
+void WebTransformationMatrix::blend(const WebTransformationMatrix& from, double progress)
+{
+    m_private->blend(*from.m_private.get(), progress);
+}
+
+bool WebTransformationMatrix::hasPerspective() const
+{
+    return m_private->hasPerspective();
+}
+
+bool WebTransformationMatrix::isInvertible() const
+{
+    return m_private->isInvertible();
+}
+
+bool WebTransformationMatrix::isBackFaceVisible() const
+{
+    return m_private->isBackFaceVisible();
+}
+
+bool WebTransformationMatrix::isIdentity() const
+{
+    return m_private->isIdentity();
+}
+
+bool WebTransformationMatrix::isIdentityOrTranslation() const
+{
+    return m_private->isIdentityOrTranslation();
+}
+
+bool WebTransformationMatrix::isIntegerTranslation() const
+{
+    return m_private->isIntegerTranslation();
+}
+
+double WebTransformationMatrix::m11() const
+{
+    return m_private->m11();
+}
+
+void WebTransformationMatrix::setM11(double f)
+{
+    m_private->setM11(f);
+}
+
+double WebTransformationMatrix::m12() const
+{
+    return m_private->m12();
+}
+
+void WebTransformationMatrix::setM12(double f)
+{
+    m_private->setM12(f);
+}
+
+double WebTransformationMatrix::m13() const
+{
+    return m_private->m13();
+}
+
+void WebTransformationMatrix::setM13(double f)
+{
+    m_private->setM13(f);
+}
+
+double WebTransformationMatrix::m14() const
+{
+    return m_private->m14();
+}
+
+void WebTransformationMatrix::setM14(double f)
+{
+    m_private->setM14(f);
+}
+
+double WebTransformationMatrix::m21() const
+{
+    return m_private->m21();
+}
+
+void WebTransformationMatrix::setM21(double f)
+{
+    m_private->setM21(f);
+}
+
+double WebTransformationMatrix::m22() const
+{
+    return m_private->m22();
+}
+
+void WebTransformationMatrix::setM22(double f)
+{
+    m_private->setM22(f);
+}
+
+double WebTransformationMatrix::m23() const
+{
+    return m_private->m23();
+}
+
+void WebTransformationMatrix::setM23(double f)
+{
+    m_private->setM23(f);
+}
+
+double WebTransformationMatrix::m24() const
+{
+    return m_private->m24();
+}
+
+void WebTransformationMatrix::setM24(double f)
+{
+    m_private->setM24(f);
+}
+
+double WebTransformationMatrix::m31() const
+{
+    return m_private->m31();
+}
+
+void WebTransformationMatrix::setM31(double f)
+{
+    m_private->setM31(f);
+}
+
+double WebTransformationMatrix::m32() const
+{
+    return m_private->m32();
+}
+
+void WebTransformationMatrix::setM32(double f)
+{
+    m_private->setM32(f);
+}
+
+double WebTransformationMatrix::m33() const
+{
+    return m_private->m33();
+}
+
+void WebTransformationMatrix::setM33(double f)
+{
+    m_private->setM33(f);
+}
+
+double WebTransformationMatrix::m34() const
+{
+    return m_private->m34();
+}
+
+void WebTransformationMatrix::setM34(double f)
+{
+    m_private->setM34(f);
+}
+
+double WebTransformationMatrix::m41() const
+{
+    return m_private->m41();
+}
+
+void WebTransformationMatrix::setM41(double f)
+{
+    m_private->setM41(f);
+}
+
+double WebTransformationMatrix::m42() const
+{
+    return m_private->m42();
+}
+
+void WebTransformationMatrix::setM42(double f)
+{
+    m_private->setM42(f);
+}
+
+double WebTransformationMatrix::m43() const
+{
+    return m_private->m43();
+}
+
+void WebTransformationMatrix::setM43(double f)
+{
+    m_private->setM43(f);
+}
+
+double WebTransformationMatrix::m44() const
+{
+    return m_private->m44();
+}
+
+void WebTransformationMatrix::setM44(double f)
+{
+    m_private->setM44(f);
+}
+
+double WebTransformationMatrix::a() const
+{
+    return m_private->a();
+}
+
+void WebTransformationMatrix::setA(double a)
+{
+    m_private->setA(a);
+}
+
+double WebTransformationMatrix::b() const
+{
+    return m_private->b();
+}
+
+void WebTransformationMatrix::setB(double b)
+{
+    m_private->setB(b);
+}
+
+double WebTransformationMatrix::c() const
+{
+    return m_private->c();
+}
+
+void WebTransformationMatrix::setC(double c)
+{
+    m_private->setC(c);
+}
+
+double WebTransformationMatrix::d() const
+{
+    return m_private->d();
+}
+
+void WebTransformationMatrix::setD(double d)
+{
+    m_private->setD(d);
+}
+
+double WebTransformationMatrix::e() const
+{
+    return m_private->e();
+}
+
+void WebTransformationMatrix::setE(double e)
+{
+    m_private->setE(e);
+}
+
+double WebTransformationMatrix::f() const
+{
+    return m_private->f();
+}
+
+void WebTransformationMatrix::setF(double f)
+{
+    m_private->setF(f);
+}
+
+#if WEBKIT_IMPLEMENTATION
+TransformationMatrix& WebTransformationMatrix::toWebCoreTransform() const
+{
+    return *m_private.get();
+}
+
+FloatRect WebTransformationMatrix::mapRect(const FloatRect& rect) const
+{
+    return m_private->mapRect(rect);
+}
+
+IntRect WebTransformationMatrix::mapRect(const IntRect& rect) const
+{
+    return m_private->mapRect(rect);
+}
+
+FloatPoint3D WebTransformationMatrix::mapPoint(const FloatPoint3D& p) const
+{
+    return m_private->mapPoint(p);
+}
+
+FloatPoint WebTransformationMatrix::mapPoint(const FloatPoint& p) const
+{
+    return m_private->mapPoint(p);
+}
+
+IntPoint WebTransformationMatrix::mapPoint(const IntPoint& p) const
+{
+    return m_private->mapPoint(p);
+}
+
+FloatQuad WebTransformationMatrix::mapQuad(const FloatQuad& quad) const
+{
+    return m_private->mapQuad(quad);
+}
+
+FloatPoint WebTransformationMatrix::projectPoint(const FloatPoint& p, bool* clamped) const
+{
+    return m_private->projectPoint(p, clamped);
+}
+#endif
+
+} // namespace WebKit
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to