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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourceFilter.cpp

Issue 1220053003: Disentangle filter content recording state from FilterData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 5 years, 5 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 DEFINE_TRACE(FilterData) 35 DEFINE_TRACE(FilterData)
36 { 36 {
37 #if ENABLE(OILPAN) 37 #if ENABLE(OILPAN)
38 visitor->trace(filter); 38 visitor->trace(filter);
39 visitor->trace(builder); 39 visitor->trace(builder);
40 #endif 40 #endif
41 } 41 }
42 42
43 void FilterData::dispose() 43 void FilterData::dispose()
44 { 44 {
45 m_context.clear();
46 m_displayItemList.clear();
47 builder = nullptr; 45 builder = nullptr;
48 filter = nullptr; 46 filter = nullptr;
49 } 47 }
50 48
51 LayoutSVGResourceFilter::LayoutSVGResourceFilter(SVGFilterElement* node) 49 LayoutSVGResourceFilter::LayoutSVGResourceFilter(SVGFilterElement* node)
52 : LayoutSVGResourceContainer(node) 50 : LayoutSVGResourceContainer(node)
53 { 51 {
54 } 52 }
55 53
56 LayoutSVGResourceFilter::~LayoutSVGResourceFilter() 54 LayoutSVGResourceFilter::~LayoutSVGResourceFilter()
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 return; 155 return;
158 builder->clearResultsRecursive(effect); 156 builder->clearResultsRecursive(effect);
159 157
160 // Issue paint invalidations for the image on the screen. 158 // Issue paint invalidations for the image on the screen.
161 markClientForInvalidation(it->key, PaintInvalidation); 159 markClientForInvalidation(it->key, PaintInvalidation);
162 } 160 }
163 markAllClientLayersForInvalidation(); 161 markAllClientLayersForInvalidation();
164 } 162 }
165 163
166 } // namespace blink 164 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceFilter.h ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698