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

Side by Side Diff: Source/core/svg/SVGClipPathElement.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 16 matching lines...) Expand all
27 27
28 namespace blink { 28 namespace blink {
29 29
30 inline SVGClipPathElement::SVGClipPathElement(Document& document) 30 inline SVGClipPathElement::SVGClipPathElement(Document& document)
31 : SVGGraphicsElement(SVGNames::clipPathTag, document) 31 : SVGGraphicsElement(SVGNames::clipPathTag, document)
32 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) 32 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE))
33 { 33 {
34 addToPropertyMap(m_clipPathUnits); 34 addToPropertyMap(m_clipPathUnits);
35 } 35 }
36 36
37 void SVGClipPathElement::trace(Visitor* visitor)
38 {
39 visitor->trace(m_clipPathUnits);
40 SVGGraphicsElement::trace(visitor);
41 }
42
37 DEFINE_NODE_FACTORY(SVGClipPathElement) 43 DEFINE_NODE_FACTORY(SVGClipPathElement)
38 44
39 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS tring& value) 45 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS tring& value)
40 { 46 {
41 parseAttributeNew(name, value); 47 parseAttributeNew(name, value);
42 } 48 }
43 49
44 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) 50 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName)
45 { 51 {
46 if (attrName != SVGNames::clipPathUnitsAttr) { 52 if (attrName != SVGNames::clipPathUnitsAttr) {
(...skipping 18 matching lines...) Expand all
65 if (RenderObject* object = renderer()) 71 if (RenderObject* object = renderer())
66 object->setNeedsLayoutAndFullPaintInvalidation(); 72 object->setNeedsLayoutAndFullPaintInvalidation();
67 } 73 }
68 74
69 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) 75 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*)
70 { 76 {
71 return new RenderSVGResourceClipper(this); 77 return new RenderSVGResourceClipper(this);
72 } 78 }
73 79
74 } 80 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGClipPathElement.h ('k') | Source/core/svg/SVGComponentTransferFunctionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698