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

Side by Side Diff: Source/core/svg/SVGMaskElement.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
« no previous file with comments | « Source/core/svg/SVGMaskElement.h ('k') | Source/core/svg/SVGMatrix.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.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 2009-2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009-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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_height->setDefaultValueAsString("120%"); 48 m_height->setDefaultValueAsString("120%");
49 49
50 addToPropertyMap(m_x); 50 addToPropertyMap(m_x);
51 addToPropertyMap(m_y); 51 addToPropertyMap(m_y);
52 addToPropertyMap(m_width); 52 addToPropertyMap(m_width);
53 addToPropertyMap(m_height); 53 addToPropertyMap(m_height);
54 addToPropertyMap(m_maskUnits); 54 addToPropertyMap(m_maskUnits);
55 addToPropertyMap(m_maskContentUnits); 55 addToPropertyMap(m_maskContentUnits);
56 } 56 }
57 57
58 void SVGMaskElement::trace(Visitor* visitor)
59 {
60 visitor->trace(m_x);
61 visitor->trace(m_y);
62 visitor->trace(m_width);
63 visitor->trace(m_height);
64 visitor->trace(m_maskUnits);
65 visitor->trace(m_maskContentUnits);
66 SVGElement::trace(visitor);
67 SVGTests::trace(visitor);
68 }
69
58 DEFINE_NODE_FACTORY(SVGMaskElement) 70 DEFINE_NODE_FACTORY(SVGMaskElement)
59 71
60 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName) 72 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName)
61 { 73 {
62 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
63 if (supportedAttributes.isEmpty()) { 75 if (supportedAttributes.isEmpty()) {
64 SVGTests::addSupportedAttributes(supportedAttributes); 76 SVGTests::addSupportedAttributes(supportedAttributes);
65 supportedAttributes.add(SVGNames::maskUnitsAttr); 77 supportedAttributes.add(SVGNames::maskUnitsAttr);
66 supportedAttributes.add(SVGNames::maskContentUnitsAttr); 78 supportedAttributes.add(SVGNames::maskContentUnitsAttr);
67 supportedAttributes.add(SVGNames::xAttr); 79 supportedAttributes.add(SVGNames::xAttr);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 127
116 bool SVGMaskElement::selfHasRelativeLengths() const 128 bool SVGMaskElement::selfHasRelativeLengths() const
117 { 129 {
118 return m_x->currentValue()->isRelative() 130 return m_x->currentValue()->isRelative()
119 || m_y->currentValue()->isRelative() 131 || m_y->currentValue()->isRelative()
120 || m_width->currentValue()->isRelative() 132 || m_width->currentValue()->isRelative()
121 || m_height->currentValue()->isRelative(); 133 || m_height->currentValue()->isRelative();
122 } 134 }
123 135
124 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMaskElement.h ('k') | Source/core/svg/SVGMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698