| 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 18 matching lines...) Expand all Loading... |
| 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 public: | 40 public: |
| 40 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const TransformationMatrix&
m) | 41 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const TransformationMatrix&
m) |
| 41 { | 42 { |
| 42 return adoptRefWillBeNoop(new CSSMatrix(m)); | 43 return adoptRefWillBeNoop(new CSSMatrix(m)); |
| 43 } | 44 } |
| 44 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const String& s, ExceptionSt
ate& exceptionState) | 45 static PassRefPtrWillBeRawPtr<CSSMatrix> create(const String& s, ExceptionSt
ate& exceptionState) |
| 45 { | 46 { |
| 46 return adoptRefWillBeNoop(new CSSMatrix(s, exceptionState)); | 47 return adoptRefWillBeNoop(new CSSMatrix(s, exceptionState)); |
| 47 } | 48 } |
| 48 | 49 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 protected: | 153 protected: |
| 153 CSSMatrix(const TransformationMatrix&); | 154 CSSMatrix(const TransformationMatrix&); |
| 154 CSSMatrix(const String&, ExceptionState&); | 155 CSSMatrix(const String&, ExceptionState&); |
| 155 | 156 |
| 156 TransformationMatrix m_matrix; | 157 TransformationMatrix m_matrix; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace blink | 160 } // namespace blink |
| 160 | 161 |
| 161 #endif // CSSMatrix_h | 162 #endif // CSSMatrix_h |
| OLD | NEW |