summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/WebKitCSSMatrix.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/css/WebKitCSSMatrix.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/css/WebKitCSSMatrix.h')
-rw-r--r--Source/WebCore/css/WebKitCSSMatrix.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/WebCore/css/WebKitCSSMatrix.h b/Source/WebCore/css/WebKitCSSMatrix.h
index 8921ce466..45393fbad 100644
--- a/Source/WebCore/css/WebKitCSSMatrix.h
+++ b/Source/WebCore/css/WebKitCSSMatrix.h
@@ -36,18 +36,18 @@ namespace WebCore {
typedef int ExceptionCode;
-class WebKitCSSMatrix final : public ScriptWrappable, public RefCounted<WebKitCSSMatrix> {
+class WebKitCSSMatrix : public ScriptWrappable, public RefCounted<WebKitCSSMatrix> {
public:
- static Ref<WebKitCSSMatrix> create(const TransformationMatrix& m)
+ static PassRefPtr<WebKitCSSMatrix> create(const TransformationMatrix& m)
{
- return adoptRef(*new WebKitCSSMatrix(m));
+ return adoptRef(new WebKitCSSMatrix(m));
}
- static Ref<WebKitCSSMatrix> create(const String& s, ExceptionCode& ec)
+ static PassRefPtr<WebKitCSSMatrix> create(const String& s, ExceptionCode& ec)
{
- return adoptRef(*new WebKitCSSMatrix(s, ec));
+ return adoptRef(new WebKitCSSMatrix(s, ec));
}
- ~WebKitCSSMatrix();
+ virtual ~WebKitCSSMatrix();
double a() const { return m_matrix.a(); }
double b() const { return m_matrix.b(); }
@@ -103,48 +103,48 @@ public:
// specified operation applied. The this value is not modified.
// Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix)
- RefPtr<WebKitCSSMatrix> multiply(WebKitCSSMatrix* secondMatrix) const;
+ PassRefPtr<WebKitCSSMatrix> multiply(WebKitCSSMatrix* secondMatrix) const;
// Return the inverse of this matrix. Throw an exception if the matrix is not invertible
- RefPtr<WebKitCSSMatrix> inverse(ExceptionCode&) const;
+ PassRefPtr<WebKitCSSMatrix> inverse(ExceptionCode&) const;
// Return this matrix translated by the passed values.
// Passing a NaN will use a value of 0. This allows the 3D form to used for 2D operations
// Operation is performed as though the this matrix is multiplied by a matrix with
// the translation values on the left (result = translation(x,y,z) * this)
- RefPtr<WebKitCSSMatrix> translate(double x, double y, double z) const;
+ PassRefPtr<WebKitCSSMatrix> translate(double x, double y, double z) const;
// Returns this matrix scaled by the passed values.
// Passing scaleX or scaleZ as NaN uses a value of 1, but passing scaleY of NaN
// makes it the same as scaleX. This allows the 3D form to used for 2D operations
// Operation is performed as though the this matrix is multiplied by a matrix with
// the scale values on the left (result = scale(x,y,z) * this)
- RefPtr<WebKitCSSMatrix> scale(double scaleX, double scaleY, double scaleZ) const;
+ PassRefPtr<WebKitCSSMatrix> scale(double scaleX, double scaleY, double scaleZ) const;
// Returns this matrix rotated by the passed values.
// If rotY and rotZ are NaN, rotate about Z (rotX=0, rotateY=0, rotateZ=rotX).
// Otherwise use a rotation value of 0 for any passed NaN.
// Operation is performed as though the this matrix is multiplied by a matrix with
// the rotation values on the left (result = rotation(x,y,z) * this)
- RefPtr<WebKitCSSMatrix> rotate(double rotX, double rotY, double rotZ) const;
+ PassRefPtr<WebKitCSSMatrix> rotate(double rotX, double rotY, double rotZ) const;
// Returns this matrix rotated about the passed axis by the passed angle.
// Passing a NaN will use a value of 0. If the axis is (0,0,0) use a value
// Operation is performed as though the this matrix is multiplied by a matrix with
// the rotation values on the left (result = rotation(x,y,z,angle) * this)
- RefPtr<WebKitCSSMatrix> rotateAxisAngle(double x, double y, double z, double angle) const;
+ PassRefPtr<WebKitCSSMatrix> rotateAxisAngle(double x, double y, double z, double angle) const;
// Return this matrix skewed along the X axis by the passed values.
// Passing a NaN will use a value of 0.
// Operation is performed as though the this matrix is multiplied by a matrix with
// the skew values on the left (result = skewX(angle) * this)
- RefPtr<WebKitCSSMatrix> skewX(double angle) const;
+ PassRefPtr<WebKitCSSMatrix> skewX(double angle) const;
// Return this matrix skewed along the Y axis by the passed values.
// Passing a NaN will use a value of 0.
// Operation is performed as though the this matrix is multiplied by a matrix with
// the skew values on the left (result = skewY(angle) * this)
- RefPtr<WebKitCSSMatrix> skewY(double angle) const;
+ PassRefPtr<WebKitCSSMatrix> skewY(double angle) const;
const TransformationMatrix& transform() const { return m_matrix; }