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

Side by Side Diff: Source/core/svg/properties/SVGProperty.h

Issue 803443002: Introduce InlinedGlobalMarkingVisitor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "wtf/Noncopyable.h" 36 #include "wtf/Noncopyable.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class SVGElement; 43 class SVGElement;
44 class SVGAnimationElement; 44 class SVGAnimationElement;
45 45
46 class SVGPropertyBase : public RefCountedWillBeGarbageCollectedFinalized<SVGProp ertyBase> { 46 class GC_PLUGIN_IGNORE("") SVGPropertyBase : public RefCountedWillBeGarbageColle ctedFinalized<SVGPropertyBase> {
47 WTF_MAKE_NONCOPYABLE(SVGPropertyBase); 47 WTF_MAKE_NONCOPYABLE(SVGPropertyBase);
48 48
49 public: 49 public:
50 // Properties do not have a primitive type by default 50 // Properties do not have a primitive type by default
51 typedef void PrimitiveType; 51 typedef void PrimitiveType;
52 52
53 virtual ~SVGPropertyBase() 53 virtual ~SVGPropertyBase()
54 { 54 {
55 #if !ENABLE(OILPAN) 55 #if !ENABLE(OILPAN)
56 // Oilpan: a property can legitimately be swept out along with its list, 56 // Oilpan: a property can legitimately be swept out along with its list,
(...skipping 24 matching lines...) Expand all
81 } 81 }
82 82
83 void setOwnerList(SVGPropertyBase* ownerList) 83 void setOwnerList(SVGPropertyBase* ownerList)
84 { 84 {
85 // Previous owner list must be cleared before setting new owner list. 85 // Previous owner list must be cleared before setting new owner list.
86 ASSERT((!ownerList && m_ownerList) || (ownerList && !m_ownerList)); 86 ASSERT((!ownerList && m_ownerList) || (ownerList && !m_ownerList));
87 87
88 m_ownerList = ownerList; 88 m_ownerList = ownerList;
89 } 89 }
90 90
91 virtual void trace(Visitor* visitor) 91 DEFINE_INLINE_TRACE(virtual,)
92 { 92 {
93 visitor->trace(m_ownerList); 93 visitor->trace(m_ownerList);
94 } 94 }
95 95
96 protected: 96 protected:
97 explicit SVGPropertyBase(AnimatedPropertyType type) 97 explicit SVGPropertyBase(AnimatedPropertyType type)
98 : m_type(type) 98 : m_type(type)
99 , m_ownerList(nullptr) 99 , m_ownerList(nullptr)
100 { 100 {
101 } 101 }
102 102
103 private: 103 private:
104 const AnimatedPropertyType m_type; 104 const AnimatedPropertyType m_type;
105 105
106 RawPtrWillBeMember<SVGPropertyBase> m_ownerList; 106 RawPtrWillBeMember<SVGPropertyBase> m_ownerList;
107 }; 107 };
108 108
109 } 109 }
110 110
111 #endif // SVGProperty_h 111 #endif // SVGProperty_h
OLDNEW
« no previous file with comments | « Source/core/svg/properties/SVGListPropertyHelper.h ('k') | Source/core/svg/properties/SVGPropertyHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698