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

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

Issue 1025883002: Oilpan: revert SVG GC mixin constructor workaround. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 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 26 matching lines...) Expand all
37 if (entries.isEmpty()) { 37 if (entries.isEmpty()) {
38 entries.append(std::make_pair(SVGSpreadMethodPad, "pad")); 38 entries.append(std::make_pair(SVGSpreadMethodPad, "pad"));
39 entries.append(std::make_pair(SVGSpreadMethodReflect, "reflect")); 39 entries.append(std::make_pair(SVGSpreadMethodReflect, "reflect"));
40 entries.append(std::make_pair(SVGSpreadMethodRepeat, "repeat")); 40 entries.append(std::make_pair(SVGSpreadMethodRepeat, "repeat"));
41 } 41 }
42 return entries; 42 return entries;
43 } 43 }
44 44
45 SVGGradientElement::SVGGradientElement(const QualifiedName& tagName, Document& d ocument) 45 SVGGradientElement::SVGGradientElement(const QualifiedName& tagName, Document& d ocument)
46 : SVGElement(tagName, document) 46 : SVGElement(tagName, document)
47 , SVGURIReference(this)
47 , m_gradientTransform(SVGAnimatedTransformList::create(this, SVGNames::gradi entTransformAttr, SVGTransformList::create())) 48 , m_gradientTransform(SVGAnimatedTransformList::create(this, SVGNames::gradi entTransformAttr, SVGTransformList::create()))
48 , m_spreadMethod(SVGAnimatedEnumeration<SVGSpreadMethodType>::create(this, S VGNames::spreadMethodAttr, SVGSpreadMethodPad)) 49 , m_spreadMethod(SVGAnimatedEnumeration<SVGSpreadMethodType>::create(this, S VGNames::spreadMethodAttr, SVGSpreadMethodPad))
49 , m_gradientUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( this, SVGNames::gradientUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX )) 50 , m_gradientUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( this, SVGNames::gradientUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX ))
50 { 51 {
51 SVGURIReference::initialize(this);
52
53 addToPropertyMap(m_gradientTransform); 52 addToPropertyMap(m_gradientTransform);
54 addToPropertyMap(m_spreadMethod); 53 addToPropertyMap(m_spreadMethod);
55 addToPropertyMap(m_gradientUnits); 54 addToPropertyMap(m_gradientUnits);
56 } 55 }
57 56
58 DEFINE_TRACE(SVGGradientElement) 57 DEFINE_TRACE(SVGGradientElement)
59 { 58 {
60 visitor->trace(m_gradientTransform); 59 visitor->trace(m_gradientTransform);
61 visitor->trace(m_spreadMethod); 60 visitor->trace(m_spreadMethod);
62 visitor->trace(m_gradientUnits); 61 visitor->trace(m_gradientUnits);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 offset = std::min(std::max(previousOffset, offset), 1.0f); 111 offset = std::min(std::max(previousOffset, offset), 1.0f);
113 previousOffset = offset; 112 previousOffset = offset;
114 113
115 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity ())); 114 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity ()));
116 } 115 }
117 116
118 return stops; 117 return stops;
119 } 118 }
120 119
121 } 120 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698