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/core/v8/ScriptWrappable.h" | 29 #include "bindings/core/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 blink { | 34 namespace blink { |
35 | 35 |
36 class ExceptionState; | 36 class ExceptionState; |
37 | 37 |
38 class CSSMatrix FINAL : public RefCountedWillBeGarbageCollected<CSSMatrix>, publ
ic ScriptWrappable { | 38 class CSSMatrix final : public RefCountedWillBeGarbageCollected<CSSMatrix>, publ
ic ScriptWrappable { |
39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const TransformationMatrix&
m) | 41 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const TransformationMatrix&
m) |
42 { | 42 { |
43 return adoptRefWillBeNoop(new CSSMatrix(m)); | 43 return adoptRefWillBeNoop(new CSSMatrix(m)); |
44 } | 44 } |
45 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const String& s, ExceptionSt
ate& exceptionState) | 45 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const String& s, ExceptionSt
ate& exceptionState) |
46 { | 46 { |
47 return adoptRefWillBeNoop(new CSSMatrix(s, exceptionState)); | 47 return adoptRefWillBeNoop(new CSSMatrix(s, exceptionState)); |
48 } | 48 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 protected: | 153 protected: |
154 CSSMatrix(const TransformationMatrix&); | 154 CSSMatrix(const TransformationMatrix&); |
155 CSSMatrix(const String&, ExceptionState&); | 155 CSSMatrix(const String&, ExceptionState&); |
156 | 156 |
157 TransformationMatrix m_matrix; | 157 TransformationMatrix m_matrix; |
158 }; | 158 }; |
159 | 159 |
160 } // namespace blink | 160 } // namespace blink |
161 | 161 |
162 #endif // CSSMatrix_h | 162 #endif // CSSMatrix_h |
OLD | NEW |