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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.h

Issue 2490163002: Reland of "Tracking reference filter mutation via SVGElementProxy" (Closed)
Patch Set: Fix double observer unregistration; simplify scope selection; add tests Created 4 years, 1 month 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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 void setFilterDataForLayoutObject(LayoutObject* object, 98 void setFilterDataForLayoutObject(LayoutObject* object,
99 FilterData* filterData) { 99 FilterData* filterData) {
100 m_filter.set(object, filterData); 100 m_filter.set(object, filterData);
101 } 101 }
102 102
103 protected: 103 protected:
104 void willBeDestroyed() override; 104 void willBeDestroyed() override;
105 105
106 private: 106 private:
107 SVGElementProxySet* elementProxySet() override;
108
107 void disposeFilterMap(); 109 void disposeFilterMap();
108 110
109 using FilterMap = PersistentHeapHashMap<LayoutObject*, Member<FilterData>>; 111 using FilterMap = PersistentHeapHashMap<LayoutObject*, Member<FilterData>>;
110 FilterMap m_filter; 112 FilterMap m_filter;
111 }; 113 };
112 114
113 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceFilter, isSVGResourceFilter()); 115 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceFilter, isSVGResourceFilter());
114 116
115 } // namespace blink 117 } // namespace blink
116 118
117 #endif 119 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698