| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return false; | 72 return false; |
| 73 const ScaleTransformOperation* s = | 73 const ScaleTransformOperation* s = |
| 74 static_cast<const ScaleTransformOperation*>(&o); | 74 static_cast<const ScaleTransformOperation*>(&o); |
| 75 return x_ == s->x_ && y_ == s->y_ && z_ == s->z_; | 75 return x_ == s->x_ && y_ == s->y_ && z_ == s->z_; |
| 76 } | 76 } |
| 77 | 77 |
| 78 PassRefPtr<TransformOperation> Zoom(double factor) final { return this; } | 78 PassRefPtr<TransformOperation> Zoom(double factor) final { return this; } |
| 79 | 79 |
| 80 ScaleTransformOperation(double sx, double sy, double sz, OperationType type) | 80 ScaleTransformOperation(double sx, double sy, double sz, OperationType type) |
| 81 : x_(sx), y_(sy), z_(sz), type_(type) { | 81 : x_(sx), y_(sy), z_(sz), type_(type) { |
| 82 ASSERT(IsMatchingOperationType(type)); | 82 DCHECK(IsMatchingOperationType(type)); |
| 83 } | 83 } |
| 84 | 84 |
| 85 double x_; | 85 double x_; |
| 86 double y_; | 86 double y_; |
| 87 double z_; | 87 double z_; |
| 88 OperationType type_; | 88 OperationType type_; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 DEFINE_TRANSFORM_TYPE_CASTS(ScaleTransformOperation); | 91 DEFINE_TRANSFORM_TYPE_CASTS(ScaleTransformOperation); |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // ScaleTransformOperation_h | 95 #endif // ScaleTransformOperation_h |
| OLD | NEW |