| 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 bool blend_to_identity = false) override; | 92 bool blend_to_identity = false) override; |
| 93 PassRefPtr<TransformOperation> Zoom(double factor) final { | 93 PassRefPtr<TransformOperation> Zoom(double factor) final { |
| 94 return ZoomTranslate(factor); | 94 return ZoomTranslate(factor); |
| 95 } | 95 } |
| 96 | 96 |
| 97 TranslateTransformOperation(const Length& tx, | 97 TranslateTransformOperation(const Length& tx, |
| 98 const Length& ty, | 98 const Length& ty, |
| 99 double tz, | 99 double tz, |
| 100 OperationType type) | 100 OperationType type) |
| 101 : x_(tx), y_(ty), z_(tz), type_(type) { | 101 : x_(tx), y_(ty), z_(tz), type_(type) { |
| 102 ASSERT(IsMatchingOperationType(type)); | 102 DCHECK(IsMatchingOperationType(type)); |
| 103 } | 103 } |
| 104 | 104 |
| 105 Length x_; | 105 Length x_; |
| 106 Length y_; | 106 Length y_; |
| 107 double z_; | 107 double z_; |
| 108 OperationType type_; | 108 OperationType type_; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 DEFINE_TRANSFORM_TYPE_CASTS(TranslateTransformOperation); | 111 DEFINE_TRANSFORM_TYPE_CASTS(TranslateTransformOperation); |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif // TranslateTransformOperation_h | 115 #endif // TranslateTransformOperation_h |
| OLD | NEW |