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

Side by Side Diff: Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.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) Research In Motion Limited 2010-2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010-2011. 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (dyList) 172 if (dyList)
173 data.dy = dyList->at(i)->value(lengthContext); 173 data.dy = dyList->at(i)->value(lengthContext);
174 if (rotateList) { 174 if (rotateList) {
175 data.rotate = rotateList->at(i)->value(); 175 data.rotate = rotateList->at(i)->value();
176 lastRotation = data.rotate; 176 lastRotation = data.rotate;
177 } 177 }
178 } 178 }
179 179
180 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition) 180 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition)
181 { 181 {
182 RefPtr<SVGLengthList> xList = position.element->x()->currentValue(); 182 RefPtrWillBeRawPtr<SVGLengthList> xList = position.element->x()->currentValu e();
183 RefPtr<SVGLengthList> yList = position.element->y()->currentValue(); 183 RefPtrWillBeRawPtr<SVGLengthList> yList = position.element->y()->currentValu e();
184 RefPtr<SVGLengthList> dxList = position.element->dx()->currentValue(); 184 RefPtrWillBeRawPtr<SVGLengthList> dxList = position.element->dx()->currentVa lue();
185 RefPtr<SVGLengthList> dyList = position.element->dy()->currentValue(); 185 RefPtrWillBeRawPtr<SVGLengthList> dyList = position.element->dy()->currentVa lue();
186 RefPtr<SVGNumberList> rotateList = position.element->rotate()->currentValue( ); 186 RefPtrWillBeRawPtr<SVGNumberList> rotateList = position.element->rotate()->c urrentValue();
187 187
188 unsigned xListSize = xList->length(); 188 unsigned xListSize = xList->length();
189 unsigned yListSize = yList->length(); 189 unsigned yListSize = yList->length();
190 unsigned dxListSize = dxList->length(); 190 unsigned dxListSize = dxList->length();
191 unsigned dyListSize = dyList->length(); 191 unsigned dyListSize = dyList->length();
192 unsigned rotateListSize = rotateList->length(); 192 unsigned rotateListSize = rotateList->length();
193 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e) 193 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e)
194 return; 194 return;
195 195
196 float lastRotation = SVGTextLayoutAttributes::emptyValue(); 196 float lastRotation = SVGTextLayoutAttributes::emptyValue();
(...skipping 29 matching lines...) Expand all
226 data.rotate = lastRotation; 226 data.rotate = lastRotation;
227 m_characterDataMap.set(position.start + i + 1, data); 227 m_characterDataMap.set(position.start + i + 1, data);
228 continue; 228 continue;
229 } 229 }
230 230
231 it->value.rotate = lastRotation; 231 it->value.rotate = lastRotation;
232 } 232 }
233 } 233 }
234 234
235 } 235 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderingContext.h ('k') | Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698