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

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

Issue 2352273002: CSS Motion Path: offset-anchor and offset-position (Closed)
Patch Set: rebase Created 4 years, 2 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 12 matching lines...) Expand all
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( 32 , m_motion(
33 ComputedStyle::initialOffsetAnchor(),
34 ComputedStyle::initialOffsetPosition(),
33 nullptr, 35 nullptr,
34 ComputedStyle::initialOffsetDistance(), 36 ComputedStyle::initialOffsetDistance(),
35 ComputedStyle::initialOffsetRotation()) 37 ComputedStyle::initialOffsetRotation())
36 { 38 {
37 } 39 }
38 40
39 StyleTransformData::StyleTransformData(const StyleTransformData& o) 41 StyleTransformData::StyleTransformData(const StyleTransformData& o)
40 : RefCounted<StyleTransformData>() 42 : RefCounted<StyleTransformData>()
41 , m_operations(o.m_operations) 43 , m_operations(o.m_operations)
42 , m_origin(o.m_origin) 44 , m_origin(o.m_origin)
(...skipping 16 matching lines...) Expand all
59 61
60 bool StyleTransformData::has3DTransform() const 62 bool StyleTransformData::has3DTransform() const
61 { 63 {
62 return m_operations.has3DOperation() 64 return m_operations.has3DOperation()
63 || (m_translate && m_translate->z() != 0) 65 || (m_translate && m_translate->z() != 0)
64 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0)) 66 || (m_rotate && (m_rotate->x() != 0 || m_rotate->y() != 0))
65 || (m_scale && m_scale->z() != 1); 67 || (m_scale && m_scale->z() != 1);
66 } 68 }
67 69
68 } // namespace blink 70 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleMotionData.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698