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

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h

Issue 1999343002: Unify and provide one IsGarbageCollectedType<T> implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 4 years, 7 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) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 // Required to change the attributes of a filter during an svgAttributeChang ed. 61 // Required to change the attributes of a filter during an svgAttributeChang ed.
62 inline FilterEffect* effectByRenderer(LayoutObject* object) { return m_effec tRenderer.get(object); } 62 inline FilterEffect* effectByRenderer(LayoutObject* object) { return m_effec tRenderer.get(object); }
63 63
64 void invalidateDependentEffects(FilterEffect*); 64 void invalidateDependentEffects(FilterEffect*);
65 65
66 DECLARE_TRACE(); 66 DECLARE_TRACE();
67 67
68 private: 68 private:
69 SVGFilterGraphNodeMap() = default; 69 SVGFilterGraphNodeMap();
70 70
71 // The value is a list, which contains those filter effects, 71 // The value is a list, which contains those filter effects,
72 // which depends on the key filter effect. 72 // which depends on the key filter effect.
73 HeapHashMap<Member<FilterEffect>, FilterEffectSet> m_effectReferences; 73 HeapHashMap<Member<FilterEffect>, FilterEffectSet> m_effectReferences;
74 HeapHashMap<LayoutObject*, Member<FilterEffect>> m_effectRenderer; 74 HeapHashMap<LayoutObject*, Member<FilterEffect>> m_effectRenderer;
75 }; 75 };
76 76
77 class SVGFilterBuilder { 77 class SVGFilterBuilder {
78 STACK_ALLOCATED(); 78 STACK_ALLOCATED();
79 public: 79 public:
(...skipping 17 matching lines...) Expand all
97 NamedFilterEffectMap m_builtinEffects; 97 NamedFilterEffectMap m_builtinEffects;
98 NamedFilterEffectMap m_namedEffects; 98 NamedFilterEffectMap m_namedEffects;
99 99
100 Member<FilterEffect> m_lastEffect; 100 Member<FilterEffect> m_lastEffect;
101 Member<SVGFilterGraphNodeMap> m_nodeMap; 101 Member<SVGFilterGraphNodeMap> m_nodeMap;
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // SVGFilterBuilder_h 106 #endif // SVGFilterBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698