OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "platform/animation/AnimationUtilities.h" | 25 #include "platform/animation/AnimationUtilities.h" |
26 #include "platform/geometry/FloatBox.h" | 26 #include "platform/geometry/FloatBox.h" |
27 #include "platform/transforms/IdentityTransformOperation.h" | 27 #include "platform/transforms/IdentityTransformOperation.h" |
28 #include "platform/transforms/InterpolatedTransformOperation.h" | 28 #include "platform/transforms/InterpolatedTransformOperation.h" |
29 #include "platform/transforms/RotateTransformOperation.h" | 29 #include "platform/transforms/RotateTransformOperation.h" |
30 #include <algorithm> | 30 #include <algorithm> |
31 | 31 |
32 using namespace std; | 32 using namespace std; |
33 | 33 |
34 namespace WebCore { | 34 namespace blink { |
35 | 35 |
36 TransformOperations::TransformOperations(bool makeIdentity) | 36 TransformOperations::TransformOperations(bool makeIdentity) |
37 { | 37 { |
38 if (makeIdentity) | 38 if (makeIdentity) |
39 m_operations.append(IdentityTransformOperation::create()); | 39 m_operations.append(IdentityTransformOperation::create()); |
40 } | 40 } |
41 | 41 |
42 bool TransformOperations::operator==(const TransformOperations& o) const | 42 bool TransformOperations::operator==(const TransformOperations& o) const |
43 { | 43 { |
44 if (m_operations.size() != o.m_operations.size()) | 44 if (m_operations.size() != o.m_operations.size()) |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 } | 374 } |
375 | 375 |
376 TransformOperations TransformOperations::add(const TransformOperations& addend)
const | 376 TransformOperations TransformOperations::add(const TransformOperations& addend)
const |
377 { | 377 { |
378 TransformOperations result; | 378 TransformOperations result; |
379 result.m_operations = operations(); | 379 result.m_operations = operations(); |
380 result.m_operations.appendVector(addend.operations()); | 380 result.m_operations.appendVector(addend.operations()); |
381 return result; | 381 return result; |
382 } | 382 } |
383 | 383 |
384 } // namespace WebCore | 384 } // namespace blink |
OLD | NEW |