| 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 11 matching lines...) Expand all Loading... |
| 22 #include "core/style/StyleTransformData.h" | 22 #include "core/style/StyleTransformData.h" |
| 23 | 23 |
| 24 #include "core/style/ComputedStyle.h" | 24 #include "core/style/ComputedStyle.h" |
| 25 #include "core/style/DataEquivalency.h" | 25 #include "core/style/DataEquivalency.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 StyleTransformData::StyleTransformData() | 29 StyleTransformData::StyleTransformData() |
| 30 : m_operations(ComputedStyle::initialTransform()) | 30 : m_operations(ComputedStyle::initialTransform()) |
| 31 , m_origin(ComputedStyle::initialTransformOrigin()) | 31 , m_origin(ComputedStyle::initialTransformOrigin()) |
| 32 , m_motion(nullptr, ComputedStyle::initialMotionOffset(), ComputedStyle::ini
tialMotionRotation()) | 32 , m_motion( |
| 33 ComputedStyle::initialOffsetAnchor(), |
| 34 ComputedStyle::initialOffsetPosition(), |
| 35 nullptr, |
| 36 ComputedStyle::initialOffsetDistance(), |
| 37 ComputedStyle::initialOffsetRotation()) |
| 33 { | 38 { |
| 34 } | 39 } |
| 35 | 40 |
| 36 StyleTransformData::StyleTransformData(const StyleTransformData& o) | 41 StyleTransformData::StyleTransformData(const StyleTransformData& o) |
| 37 : RefCounted<StyleTransformData>() | 42 : RefCounted<StyleTransformData>() |
| 38 , m_operations(o.m_operations) | 43 , m_operations(o.m_operations) |
| 39 , m_origin(o.m_origin) | 44 , m_origin(o.m_origin) |
| 40 , m_motion(o.m_motion) | 45 , m_motion(o.m_motion) |
| 41 , m_translate(o.m_translate) | 46 , m_translate(o.m_translate) |
| 42 , m_rotate(o.m_rotate) | 47 , m_rotate(o.m_rotate) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 56 | 61 |
| 57 bool StyleTransformData::has3DTransform() const | 62 bool StyleTransformData::has3DTransform() const |
| 58 { | 63 { |
| 59 return m_operations.has3DOperation() | 64 return m_operations.has3DOperation() |
| 60 || (m_translate && m_translate->z() != 0) | 65 || (m_translate && m_translate->z() != 0) |
| 61 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0)) | 66 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0)) |
| 62 || (m_scale && m_scale->z() != 1); | 67 || (m_scale && m_scale->z() != 1); |
| 63 } | 68 } |
| 64 | 69 |
| 65 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |