| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual bool canBlendWith(const TransformOperation& other) const = 0; | 92 virtual bool canBlendWith(const TransformOperation& other) const = 0; |
| 93 | 93 |
| 94 bool is3DOperation() const { | 94 bool is3DOperation() const { |
| 95 OperationType opType = type(); | 95 OperationType opType = type(); |
| 96 return opType == ScaleZ || opType == Scale3D || opType == TranslateZ || | 96 return opType == ScaleZ || opType == Scale3D || opType == TranslateZ || |
| 97 opType == Translate3D || opType == RotateX || opType == RotateY || | 97 opType == Translate3D || opType == RotateX || opType == RotateY || |
| 98 opType == Rotate3D || opType == Matrix3D || opType == Perspective || | 98 opType == Rotate3D || opType == Matrix3D || opType == Perspective || |
| 99 opType == Interpolated; | 99 opType == Interpolated; |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool isSkewOperation() const { |
| 103 OperationType opType = type(); |
| 104 return opType == Skew || opType == SkewX || opType == SkewY; |
| 105 } |
| 106 |
| 102 virtual bool dependsOnBoxSize() const { return false; } | 107 virtual bool dependsOnBoxSize() const { return false; } |
| 103 }; | 108 }; |
| 104 | 109 |
| 105 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \ | 110 #define DEFINE_TRANSFORM_TYPE_CASTS(thisType) \ |
| 106 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \ | 111 DEFINE_TYPE_CASTS(thisType, TransformOperation, transform, \ |
| 107 thisType::isMatchingOperationType(transform->type()), \ | 112 thisType::isMatchingOperationType(transform->type()), \ |
| 108 thisType::isMatchingOperationType(transform.type())) | 113 thisType::isMatchingOperationType(transform.type())) |
| 109 | 114 |
| 110 } // namespace blink | 115 } // namespace blink |
| 111 | 116 |
| 112 #endif // TransformOperation_h | 117 #endif // TransformOperation_h |
| OLD | NEW |