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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 if (dyList) 181 if (dyList)
182 data.dy = dyList->at(i)->value(lengthContext); 182 data.dy = dyList->at(i)->value(lengthContext);
183 if (rotateList) { 183 if (rotateList) {
184 data.rotate = rotateList->at(i)->value(); 184 data.rotate = rotateList->at(i)->value();
185 lastRotation = data.rotate; 185 lastRotation = data.rotate;
186 } 186 }
187 } 187 }
188 188
189 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition) 189 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition)
190 { 190 {
191 RefPtrWillBeRawPtr<SVGLengthList> xList = position.element->x()->currentValu e(); 191 RawPtr<SVGLengthList> xList = position.element->x()->currentValue();
192 RefPtrWillBeRawPtr<SVGLengthList> yList = position.element->y()->currentValu e(); 192 RawPtr<SVGLengthList> yList = position.element->y()->currentValue();
193 RefPtrWillBeRawPtr<SVGLengthList> dxList = position.element->dx()->currentVa lue(); 193 RawPtr<SVGLengthList> dxList = position.element->dx()->currentValue();
194 RefPtrWillBeRawPtr<SVGLengthList> dyList = position.element->dy()->currentVa lue(); 194 RawPtr<SVGLengthList> dyList = position.element->dy()->currentValue();
195 RefPtrWillBeRawPtr<SVGNumberList> rotateList = position.element->rotate()->c urrentValue(); 195 RawPtr<SVGNumberList> rotateList = position.element->rotate()->currentValue( );
196 196
197 unsigned xListSize = xList->length(); 197 unsigned xListSize = xList->length();
198 unsigned yListSize = yList->length(); 198 unsigned yListSize = yList->length();
199 unsigned dxListSize = dxList->length(); 199 unsigned dxListSize = dxList->length();
200 unsigned dyListSize = dyList->length(); 200 unsigned dyListSize = dyList->length();
201 unsigned rotateListSize = rotateList->length(); 201 unsigned rotateListSize = rotateList->length();
202 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e) 202 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e)
203 return; 203 return;
204 204
205 float lastRotation = SVGTextLayoutAttributes::emptyValue(); 205 float lastRotation = SVGTextLayoutAttributes::emptyValue();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 it->value.rotate = lastRotation; 240 it->value.rotate = lastRotation;
241 } 241 }
242 } 242 }
243 243
244 DEFINE_TRACE(SVGTextLayoutAttributesBuilder::TextPosition) 244 DEFINE_TRACE(SVGTextLayoutAttributesBuilder::TextPosition)
245 { 245 {
246 visitor->trace(element); 246 visitor->trace(element);
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698