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

Side by Side Diff: Source/core/svg/SVGElementRareData.cpp

Issue 660653004: Move supplemental transform to rare data (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 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
« no previous file with comments | « Source/core/svg/SVGElementRareData.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/svg/SVGElementRareData.h" 6 #include "core/svg/SVGElementRareData.h"
7 7
8 #include "core/css/CSSCursorImageValue.h" 8 #include "core/css/CSSCursorImageValue.h"
9 #include "core/css/resolver/StyleResolver.h" 9 #include "core/css/resolver/StyleResolver.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
11 #include "core/svg/SVGCursorElement.h" 11 #include "core/svg/SVGCursorElement.h"
12 #include "platform/transforms/AffineTransform.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties() 16 MutableStylePropertySet* SVGElementRareData::ensureAnimatedSMILStyleProperties()
16 { 17 {
17 if (!m_animatedSMILStyleProperties) 18 if (!m_animatedSMILStyleProperties)
18 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri buteMode); 19 m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttri buteMode);
19 return m_animatedSMILStyleProperties.get(); 20 return m_animatedSMILStyleProperties.get();
20 } 21 }
21 22
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 m_cursorElement->removeReferencedElement(m_owner); 61 m_cursorElement->removeReferencedElement(m_owner);
61 m_cursorElement = nullptr; 62 m_cursorElement = nullptr;
62 } 63 }
63 m_cursorImageValue = nullptr; 64 m_cursorImageValue = nullptr;
64 } 65 }
65 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement)); 66 ASSERT(!m_cursorElement || visitor->isAlive(m_cursorElement));
66 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue)); 67 ASSERT(!m_cursorImageValue || visitor->isAlive(m_cursorImageValue));
67 #endif 68 #endif
68 } 69 }
69 70
71 AffineTransform* SVGElementRareData::animateMotionTransform()
72 {
73 if (!m_animateMotionTransform)
74 m_animateMotionTransform = adoptPtr(new AffineTransform);
75 return m_animateMotionTransform.get();
76 }
70 77
71 } 78 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElementRareData.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698