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

Side by Side Diff: Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 lastCharacter = currentCharacter; 99 lastCharacter = currentCharacter;
100 ++atCharacter; 100 ++atCharacter;
101 } 101 }
102 } 102 }
103 103
104 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderObject * start, UChar& lastCharacter) 104 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderObject * start, UChar& lastCharacter)
105 { 105 {
106 ASSERT(!start->isSVGText() || m_textPositions.isEmpty()); 106 ASSERT(!start->isSVGText() || m_textPositions.isEmpty());
107 107
108 for (RenderObject* child = start->firstChild(); child; child = child->nextSi bling()) { 108 for (RenderObject* child = start->slowFirstChild(); child; child = child->ne xtSibling()) {
109 if (child->isSVGInlineText()) { 109 if (child->isSVGInlineText()) {
110 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt h, lastCharacter); 110 processRenderSVGInlineText(toRenderSVGInlineText(child), m_textLengt h, lastCharacter);
111 continue; 111 continue;
112 } 112 }
113 113
114 if (!child->isSVGInline()) 114 if (!child->isSVGInline())
115 continue; 115 continue;
116 116
117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF romRenderer(child); 117 SVGTextPositioningElement* element = SVGTextPositioningElement::elementF romRenderer(child);
118 unsigned atPosition = m_textPositions.size(); 118 unsigned atPosition = m_textPositions.size();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/SVGResourcesCycleSolver.cpp ('k') | Source/core/rendering/svg/SVGTextMetricsBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698