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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 if (dyList) 170 if (dyList)
171 data.dy = dyList->at(i)->value(lengthContext); 171 data.dy = dyList->at(i)->value(lengthContext);
172 if (rotateList) { 172 if (rotateList) {
173 data.rotate = rotateList->at(i)->value(); 173 data.rotate = rotateList->at(i)->value();
174 lastRotation = data.rotate; 174 lastRotation = data.rotate;
175 } 175 }
176 } 176 }
177 177
178 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition) 178 void SVGTextLayoutAttributesBuilder::fillCharacterDataMap(const TextPosition& po sition)
179 { 179 {
180 RefPtrWillBeRawPtr<SVGLengthList> xList = position.element->x()->currentValu e(); 180 RawPtr<SVGLengthList> xList = position.element->x()->currentValue();
181 RefPtrWillBeRawPtr<SVGLengthList> yList = position.element->y()->currentValu e(); 181 RawPtr<SVGLengthList> yList = position.element->y()->currentValue();
182 RefPtrWillBeRawPtr<SVGLengthList> dxList = position.element->dx()->currentVa lue(); 182 RawPtr<SVGLengthList> dxList = position.element->dx()->currentValue();
183 RefPtrWillBeRawPtr<SVGLengthList> dyList = position.element->dy()->currentVa lue(); 183 RawPtr<SVGLengthList> dyList = position.element->dy()->currentValue();
184 RefPtrWillBeRawPtr<SVGNumberList> rotateList = position.element->rotate()->c urrentValue(); 184 RawPtr<SVGNumberList> rotateList = position.element->rotate()->currentValue( );
185 185
186 unsigned xListSize = xList->length(); 186 unsigned xListSize = xList->length();
187 unsigned yListSize = yList->length(); 187 unsigned yListSize = yList->length();
188 unsigned dxListSize = dxList->length(); 188 unsigned dxListSize = dxList->length();
189 unsigned dyListSize = dyList->length(); 189 unsigned dyListSize = dyList->length();
190 unsigned rotateListSize = rotateList->length(); 190 unsigned rotateListSize = rotateList->length();
191 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e) 191 if (!xListSize && !yListSize && !dxListSize && !dyListSize && !rotateListSiz e)
192 return; 192 return;
193 193
194 float lastRotation = SVGTextLayoutAttributes::emptyValue(); 194 float lastRotation = SVGTextLayoutAttributes::emptyValue();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 it->value.rotate = lastRotation; 229 it->value.rotate = lastRotation;
230 } 230 }
231 } 231 }
232 232
233 DEFINE_TRACE(SVGTextLayoutAttributesBuilder::TextPosition) 233 DEFINE_TRACE(SVGTextLayoutAttributesBuilder::TextPosition)
234 { 234 {
235 visitor->trace(element); 235 visitor->trace(element);
236 } 236 }
237 237
238 } // namespace blink 238 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698