| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return false; | 70 return false; |
| 71 const TranslateTransformOperation* t = static_cast<const TranslateTransf
ormOperation*>(&o); | 71 const TranslateTransformOperation* t = static_cast<const TranslateTransf
ormOperation*>(&o); |
| 72 return m_x == t->m_x && m_y == t->m_y && m_z == t->m_z; | 72 return m_x == t->m_x && m_y == t->m_y && m_z == t->m_z; |
| 73 } | 73 } |
| 74 | 74 |
| 75 PassRefPtr<TransformOperation> blend(const TransformOperation* from, double
progress, bool blendToIdentity = false) override; | 75 PassRefPtr<TransformOperation> blend(const TransformOperation* from, double
progress, bool blendToIdentity = false) override; |
| 76 PassRefPtr<TransformOperation> zoom(double factor) final { return zoomTransl
ate(factor); } | 76 PassRefPtr<TransformOperation> zoom(double factor) final { return zoomTransl
ate(factor); } |
| 77 | 77 |
| 78 bool dependsOnBoxSize() const override | 78 bool dependsOnBoxSize() const override |
| 79 { | 79 { |
| 80 return m_x.hasPercent() || m_y.hasPercent(); | 80 return m_x.isPercentOrCalc() || m_y.isPercentOrCalc(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 TranslateTransformOperation(const Length& tx, const Length& ty, double tz, O
perationType type) | 83 TranslateTransformOperation(const Length& tx, const Length& ty, double tz, O
perationType type) |
| 84 : m_x(tx) | 84 : m_x(tx) |
| 85 , m_y(ty) | 85 , m_y(ty) |
| 86 , m_z(tz) | 86 , m_z(tz) |
| 87 , m_type(type) | 87 , m_type(type) |
| 88 { | 88 { |
| 89 ASSERT(isMatchingOperationType(type)); | 89 ASSERT(isMatchingOperationType(type)); |
| 90 } | 90 } |
| 91 | 91 |
| 92 Length m_x; | 92 Length m_x; |
| 93 Length m_y; | 93 Length m_y; |
| 94 double m_z; | 94 double m_z; |
| 95 OperationType m_type; | 95 OperationType m_type; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 DEFINE_TRANSFORM_TYPE_CASTS(TranslateTransformOperation); | 98 DEFINE_TRANSFORM_TYPE_CASTS(TranslateTransformOperation); |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // TranslateTransformOperation_h | 102 #endif // TranslateTransformOperation_h |
| OLD | NEW |