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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceContainer.cpp

Issue 23668002: Avoid leaking ThreadingPrimitives.h from StackStats.h when collection is off. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 RenderSVGResourceContainer::~RenderSVGResourceContainer() 48 RenderSVGResourceContainer::~RenderSVGResourceContainer()
49 { 49 {
50 if (m_registered) 50 if (m_registered)
51 svgExtensionsFromNode(node())->removeResource(m_id); 51 svgExtensionsFromNode(node())->removeResource(m_id);
52 } 52 }
53 53
54 void RenderSVGResourceContainer::layout() 54 void RenderSVGResourceContainer::layout()
55 { 55 {
56 StackStats::LayoutCheckPoint layoutCheckPoint;
57 // Invalidate all resources if our layout changed. 56 // Invalidate all resources if our layout changed.
58 if (everHadLayout() && selfNeedsLayout()) 57 if (everHadLayout() && selfNeedsLayout())
59 RenderSVGRoot::addResourceForClientInvalidation(this); 58 RenderSVGRoot::addResourceForClientInvalidation(this);
60 59
61 RenderSVGHiddenContainer::layout(); 60 RenderSVGHiddenContainer::layout();
62 } 61 }
63 62
64 void RenderSVGResourceContainer::willBeDestroyed() 63 void RenderSVGResourceContainer::willBeDestroyed()
65 { 64 {
66 SVGResourcesCache::resourceDestroyed(this); 65 SVGResourcesCache::resourceDestroyed(this);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 if (!object->isSVGShape()) 217 if (!object->isSVGShape())
219 return resourceTransform; 218 return resourceTransform;
220 219
221 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); 220 SVGGraphicsElement* element = toSVGGraphicsElement(object->node());
222 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl eUpdate); 221 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl eUpdate);
223 transform *= resourceTransform; 222 transform *= resourceTransform;
224 return transform; 223 return transform;
225 } 224 }
226 225
227 } 226 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698