Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: third_party/WebKit/Source/core/style/StyleTransformData.cpp

Issue 2241993002: CSS Motion Path: New names for properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 nullptr,
34 ComputedStyle::initialOffsetDistance(),
35 ComputedStyle::initialOffsetRotation())
33 { 36 {
34 } 37 }
35 38
36 StyleTransformData::StyleTransformData(const StyleTransformData& o) 39 StyleTransformData::StyleTransformData(const StyleTransformData& o)
37 : RefCounted<StyleTransformData>() 40 : RefCounted<StyleTransformData>()
38 , m_operations(o.m_operations) 41 , m_operations(o.m_operations)
39 , m_origin(o.m_origin) 42 , m_origin(o.m_origin)
40 , m_motion(o.m_motion) 43 , m_motion(o.m_motion)
41 , m_translate(o.m_translate) 44 , m_translate(o.m_translate)
42 , m_rotate(o.m_rotate) 45 , m_rotate(o.m_rotate)
(...skipping 13 matching lines...) Expand all
56 59
57 bool StyleTransformData::has3DTransform() const 60 bool StyleTransformData::has3DTransform() const
58 { 61 {
59 return m_operations.has3DOperation() 62 return m_operations.has3DOperation()
60 || (m_translate && m_translate->z() != 0) 63 || (m_translate && m_translate->z() != 0)
61 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0)) 64 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0))
62 || (m_scale && m_scale->z() != 1); 65 || (m_scale && m_scale->z() != 1);
63 } 66 }
64 67
65 } // namespace blink 68 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698