OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 28 matching lines...) Expand all Loading... |
39 public: | 39 public: |
40 static PassRefPtr<CSSMatrix> create(const TransformationMatrix& m) | 40 static PassRefPtr<CSSMatrix> create(const TransformationMatrix& m) |
41 { | 41 { |
42 return adoptRef(new CSSMatrix(m)); | 42 return adoptRef(new CSSMatrix(m)); |
43 } | 43 } |
44 static PassRefPtr<CSSMatrix> create(const String& s, ExceptionState& es) | 44 static PassRefPtr<CSSMatrix> create(const String& s, ExceptionState& es) |
45 { | 45 { |
46 return adoptRef(new CSSMatrix(s, es)); | 46 return adoptRef(new CSSMatrix(s, es)); |
47 } | 47 } |
48 | 48 |
49 virtual ~CSSMatrix(); | |
50 | |
51 double a() const { return m_matrix.a(); } | 49 double a() const { return m_matrix.a(); } |
52 double b() const { return m_matrix.b(); } | 50 double b() const { return m_matrix.b(); } |
53 double c() const { return m_matrix.c(); } | 51 double c() const { return m_matrix.c(); } |
54 double d() const { return m_matrix.d(); } | 52 double d() const { return m_matrix.d(); } |
55 double e() const { return m_matrix.e(); } | 53 double e() const { return m_matrix.e(); } |
56 double f() const { return m_matrix.f(); } | 54 double f() const { return m_matrix.f(); } |
57 | 55 |
58 void setA(double f) { m_matrix.setA(f); } | 56 void setA(double f) { m_matrix.setA(f); } |
59 void setB(double f) { m_matrix.setB(f); } | 57 void setB(double f) { m_matrix.setB(f); } |
60 void setC(double f) { m_matrix.setC(f); } | 58 void setC(double f) { m_matrix.setC(f); } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 protected: | 150 protected: |
153 CSSMatrix(const TransformationMatrix&); | 151 CSSMatrix(const TransformationMatrix&); |
154 CSSMatrix(const String&, ExceptionState&); | 152 CSSMatrix(const String&, ExceptionState&); |
155 | 153 |
156 TransformationMatrix m_matrix; | 154 TransformationMatrix m_matrix; |
157 }; | 155 }; |
158 | 156 |
159 } // namespace WebCore | 157 } // namespace WebCore |
160 | 158 |
161 #endif // CSSMatrix_h | 159 #endif // CSSMatrix_h |
OLD | NEW |