OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 virtual bool operator==(const TransformOperation& o) const | 53 virtual bool operator==(const TransformOperation& o) const |
54 { | 54 { |
55 if (!isSameType(o)) | 55 if (!isSameType(o)) |
56 return false; | 56 return false; |
57 | 57 |
58 const MatrixTransformOperation* m = static_cast<const MatrixTransformOpe
ration*>(&o); | 58 const MatrixTransformOperation* m = static_cast<const MatrixTransformOpe
ration*>(&o); |
59 return m_a == m->m_a && m_b == m->m_b && m_c == m->m_c && m_d == m->m_d
&& m_e == m->m_e && m_f == m->m_f; | 59 return m_a == m->m_a && m_b == m->m_b && m_c == m->m_c && m_d == m->m_d
&& m_e == m->m_e && m_f == m->m_f; |
60 } | 60 } |
61 | 61 |
62 virtual bool apply(TransformationMatrix& transform, const FloatSize&) const | 62 virtual bool apply(TransformationMatrix& transform, const FloatSize&, Render
View*) const |
63 { | 63 { |
64 TransformationMatrix matrix(m_a, m_b, m_c, m_d, m_e, m_f); | 64 TransformationMatrix matrix(m_a, m_b, m_c, m_d, m_e, m_f); |
65 transform.multiply(matrix); | 65 transform.multiply(matrix); |
66 return false; | 66 return false; |
67 } | 67 } |
68 | 68 |
69 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false); | 69 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false, RenderView* =0); |
70 | 70 |
71 MatrixTransformOperation(double a, double b, double c, double d, double e, d
ouble f) | 71 MatrixTransformOperation(double a, double b, double c, double d, double e, d
ouble f) |
72 : m_a(a) | 72 : m_a(a) |
73 , m_b(b) | 73 , m_b(b) |
74 , m_c(c) | 74 , m_c(c) |
75 , m_d(d) | 75 , m_d(d) |
76 , m_e(e) | 76 , m_e(e) |
77 , m_f(f) | 77 , m_f(f) |
78 { | 78 { |
79 } | 79 } |
(...skipping 12 matching lines...) Expand all Loading... |
92 double m_b; | 92 double m_b; |
93 double m_c; | 93 double m_c; |
94 double m_d; | 94 double m_d; |
95 double m_e; | 95 double m_e; |
96 double m_f; | 96 double m_f; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif // MatrixTransformOperation_h | 101 #endif // MatrixTransformOperation_h |
OLD | NEW |