OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == Matrix3D; } | 46 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == Matrix3D; } |
47 | 47 |
48 virtual bool operator==(const TransformOperation& o) const | 48 virtual bool operator==(const TransformOperation& o) const |
49 { | 49 { |
50 if (!isSameType(o)) | 50 if (!isSameType(o)) |
51 return false; | 51 return false; |
52 const Matrix3DTransformOperation* m = static_cast<const Matrix3DTransfor
mOperation*>(&o); | 52 const Matrix3DTransformOperation* m = static_cast<const Matrix3DTransfor
mOperation*>(&o); |
53 return m_matrix == m->m_matrix; | 53 return m_matrix == m->m_matrix; |
54 } | 54 } |
55 | 55 |
56 virtual bool apply(TransformationMatrix& transform, const FloatSize&) const | 56 virtual bool apply(TransformationMatrix& transform, const FloatSize&, Render
View*) const |
57 { | 57 { |
58 transform.multiply(TransformationMatrix(m_matrix)); | 58 transform.multiply(TransformationMatrix(m_matrix)); |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false); | 62 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false, RenderView* =0); |
63 | 63 |
64 Matrix3DTransformOperation(const TransformationMatrix& mat) | 64 Matrix3DTransformOperation(const TransformationMatrix& mat) |
65 { | 65 { |
66 m_matrix = mat; | 66 m_matrix = mat; |
67 } | 67 } |
68 | 68 |
69 TransformationMatrix m_matrix; | 69 TransformationMatrix m_matrix; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace WebCore | 72 } // namespace WebCore |
73 | 73 |
74 #endif // Matrix3DTransformOperation_h | 74 #endif // Matrix3DTransformOperation_h |
OLD | NEW |