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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 bool operator!=(const TransformOperation& o) const { return !(*this == o); } | 58 bool operator!=(const TransformOperation& o) const { return !(*this == o); } |
59 | 59 |
60 virtual bool isIdentity() const = 0; | 60 virtual bool isIdentity() const = 0; |
61 | 61 |
62 virtual void apply(TransformationMatrix&, const FloatSize& borderBoxSize) co nst = 0; | 62 virtual void apply(TransformationMatrix&, const FloatSize& borderBoxSize) co nst = 0; |
63 | 63 |
64 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) = 0; | 64 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) = 0; |
65 | 65 |
66 virtual OperationType type() const = 0; | 66 virtual OperationType type() const = 0; |
67 bool isSameType(const TransformOperation& other) const { return other.type() == type(); } | 67 bool isSameType(const TransformOperation& other) const { return other.type() == type(); } |
68 virtual bool canInterpolateWith(const TransformOperation& other) const = 0; | |
Ian Vollick
2014/06/17 15:54:56
Ack. I think I picked the wrong color for this bik
awoloszyn
2014/06/17 20:06:02
Done.
| |
68 | 69 |
69 bool is3DOperation() const | 70 bool is3DOperation() const |
70 { | 71 { |
71 OperationType opType = type(); | 72 OperationType opType = type(); |
72 return opType == ScaleZ | 73 return opType == ScaleZ |
73 || opType == Scale3D | 74 || opType == Scale3D |
74 || opType == TranslateZ | 75 || opType == TranslateZ |
75 || opType == Translate3D | 76 || opType == Translate3D |
76 || opType == RotateX | 77 || opType == RotateX |
77 || opType == RotateY | 78 || opType == RotateY |
78 || opType == Rotate3D | 79 || opType == Rotate3D |
79 || opType == Matrix3D | 80 || opType == Matrix3D |
80 || opType == Perspective | 81 || opType == Perspective |
81 || opType == Interpolated; | 82 || opType == Interpolated; |
82 } | 83 } |
83 | 84 |
84 virtual bool dependsOnBoxSize() const { return false; } | 85 virtual bool dependsOnBoxSize() const { return false; } |
85 }; | 86 }; |
86 | 87 |
87 } // namespace WebCore | 88 } // namespace WebCore |
88 | 89 |
89 #endif // TransformOperation_h | 90 #endif // TransformOperation_h |
OLD | NEW |