| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 TranslateZ, | 57 TranslateZ, |
| 58 Translate3D, | 58 Translate3D, |
| 59 RotateX, | 59 RotateX, |
| 60 RotateY, | 60 RotateY, |
| 61 Rotate3D, | 61 Rotate3D, |
| 62 Matrix3D, | 62 Matrix3D, |
| 63 Perspective, | 63 Perspective, |
| 64 Interpolated, | 64 Interpolated, |
| 65 Identity, | 65 Identity, |
| 66 RotateAroundOrigin, | 66 RotateAroundOrigin, |
| 67 None | |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 TransformOperation() {} | 69 TransformOperation() {} |
| 71 virtual ~TransformOperation() {} | 70 virtual ~TransformOperation() {} |
| 72 | 71 |
| 73 virtual bool operator==(const TransformOperation&) const = 0; | 72 virtual bool operator==(const TransformOperation&) const = 0; |
| 74 bool operator!=(const TransformOperation& o) const { return !(*this == o); } | 73 bool operator!=(const TransformOperation& o) const { return !(*this == o); } |
| 75 | 74 |
| 76 virtual void apply(TransformationMatrix&, | 75 virtual void apply(TransformationMatrix&, |
| 77 const FloatSize& borderBoxSize) const = 0; | 76 const FloatSize& borderBoxSize) const = 0; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \ | 105 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \ |
| 107 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \ | 106 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \ |
| 108 thisType::isMatchingOperationType(transform->type()), \ | 107 thisType::isMatchingOperationType(transform->type()), \ |
| 109 thisType::isMatchingOperationType(transform.type())) | 108 thisType::isMatchingOperationType(transform.type())) |
| 110 | 109 |
| 111 } // namespace blink | 110 } // namespace blink |
| 112 | 111 |
| 113 #endif // TransformOperation_h | 112 #endif // TransformOperation_h |
| OLD | NEW |