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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "platform/transforms/TransformationMatrix.h" | 30 #include "platform/transforms/TransformationMatrix.h" |
31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class ExceptionState; | 36 class ExceptionState; |
37 | 37 |
38 class CSSMatrix : public ScriptWrappable, public RefCounted<CSSMatrix> { | 38 class CSSMatrix FINAL : public ScriptWrappable, public RefCounted<CSSMatrix> { |
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 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 protected: | 150 protected: |
151 CSSMatrix(const TransformationMatrix&); | 151 CSSMatrix(const TransformationMatrix&); |
152 CSSMatrix(const String&, ExceptionState&); | 152 CSSMatrix(const String&, ExceptionState&); |
153 | 153 |
154 TransformationMatrix m_matrix; | 154 TransformationMatrix m_matrix; |
155 }; | 155 }; |
156 | 156 |
157 } // namespace WebCore | 157 } // namespace WebCore |
158 | 158 |
159 #endif // CSSMatrix_h | 159 #endif // CSSMatrix_h |
OLD | NEW |