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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 protected: | 81 protected: |
82 bool operator==(const TransformOperation&) const override; | 82 bool operator==(const TransformOperation&) const override; |
83 | 83 |
84 PassRefPtr<TransformOperation> blend(const TransformOperation* from, | 84 PassRefPtr<TransformOperation> blend(const TransformOperation* from, |
85 double progress, | 85 double progress, |
86 bool blendToIdentity = false) override; | 86 bool blendToIdentity = false) override; |
87 PassRefPtr<TransformOperation> zoom(double factor) override { return this; } | 87 PassRefPtr<TransformOperation> zoom(double factor) override { return this; } |
88 | 88 |
89 RotateTransformOperation(const Rotation& rotation, OperationType type) | 89 RotateTransformOperation(const Rotation& rotation, OperationType type) |
90 : m_rotation(rotation), m_type(type) { | 90 : m_rotation(rotation), m_type(type) {} |
91 } | |
92 | 91 |
93 const Rotation m_rotation; | 92 const Rotation m_rotation; |
94 const OperationType m_type; | 93 const OperationType m_type; |
95 }; | 94 }; |
96 | 95 |
97 DEFINE_TRANSFORM_TYPE_CASTS(RotateTransformOperation); | 96 DEFINE_TRANSFORM_TYPE_CASTS(RotateTransformOperation); |
98 | 97 |
99 class PLATFORM_EXPORT RotateAroundOriginTransformOperation final | 98 class PLATFORM_EXPORT RotateAroundOriginTransformOperation final |
100 : public RotateTransformOperation { | 99 : public RotateTransformOperation { |
101 public: | 100 public: |
(...skipping 23 matching lines...) Expand all Loading... |
125 | 124 |
126 double m_originX; | 125 double m_originX; |
127 double m_originY; | 126 double m_originY; |
128 }; | 127 }; |
129 | 128 |
130 DEFINE_TRANSFORM_TYPE_CASTS(RotateAroundOriginTransformOperation); | 129 DEFINE_TRANSFORM_TYPE_CASTS(RotateAroundOriginTransformOperation); |
131 | 130 |
132 } // namespace blink | 131 } // namespace blink |
133 | 132 |
134 #endif // RotateTransformOperation_h | 133 #endif // RotateTransformOperation_h |
OLD | NEW |