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 25 matching lines...) Expand all Loading... |
36 WTF_MAKE_FAST_ALLOCATED; | 36 WTF_MAKE_FAST_ALLOCATED; |
37 public: | 37 public: |
38 explicit TransformOperations(bool makeIdentity = false); | 38 explicit TransformOperations(bool makeIdentity = false); |
39 | 39 |
40 bool operator==(const TransformOperations& o) const; | 40 bool operator==(const TransformOperations& o) const; |
41 bool operator!=(const TransformOperations& o) const | 41 bool operator!=(const TransformOperations& o) const |
42 { | 42 { |
43 return !(*this == o); | 43 return !(*this == o); |
44 } | 44 } |
45 | 45 |
46 void apply(const FloatSize& sz, TransformationMatrix& t) const | 46 void apply(const FloatSize& sz, TransformationMatrix& t, RenderView* renderV
iew) const |
47 { | 47 { |
48 for (unsigned i = 0; i < m_operations.size(); ++i) | 48 for (unsigned i = 0; i < m_operations.size(); ++i) |
49 m_operations[i]->apply(t, sz); | 49 m_operations[i]->apply(t, sz, renderView); |
50 } | 50 } |
51 | 51 |
52 // Return true if any of the operation types are 3D operation types (even if
the | 52 // Return true if any of the operation types are 3D operation types (even if
the |
53 // values describe affine transforms) | 53 // values describe affine transforms) |
54 bool has3DOperation() const | 54 bool has3DOperation() const |
55 { | 55 { |
56 for (unsigned i = 0; i < m_operations.size(); ++i) | 56 for (unsigned i = 0; i < m_operations.size(); ++i) |
57 if (m_operations[i]->is3DOperation()) | 57 if (m_operations[i]->is3DOperation()) |
58 return true; | 58 return true; |
59 return false; | 59 return false; |
(...skipping 16 matching lines...) Expand all Loading... |
76 TransformOperations blendByUsingMatrixInterpolation(const TransformOperation
s& from, double progress) const; | 76 TransformOperations blendByUsingMatrixInterpolation(const TransformOperation
s& from, double progress) const; |
77 TransformOperations blend(const TransformOperations& from, double progress)
const; | 77 TransformOperations blend(const TransformOperations& from, double progress)
const; |
78 | 78 |
79 private: | 79 private: |
80 Vector<RefPtr<TransformOperation> > m_operations; | 80 Vector<RefPtr<TransformOperation> > m_operations; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace WebCore |
84 | 84 |
85 #endif // TransformOperations_h | 85 #endif // TransformOperations_h |
OLD | NEW |