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

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

Issue 944923004: rendering/RenderBoxModelObject -> layout/LayoutBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 for (unsigned textPosition = 0; textPosition < textLength; ++textPosition) { 93 for (unsigned textPosition = 0; textPosition < textLength; ++textPosition) {
94 UChar currentCharacter = text->characterAt(textPosition); 94 UChar currentCharacter = text->characterAt(textPosition);
95 if (currentCharacter == ' ' && lastCharacter == ' ') 95 if (currentCharacter == ' ' && lastCharacter == ' ')
96 continue; 96 continue;
97 97
98 lastCharacter = currentCharacter; 98 lastCharacter = currentCharacter;
99 ++atCharacter; 99 ++atCharacter;
100 } 100 }
101 } 101 }
102 102
103 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(RenderBoxMod elObject& start, UChar& lastCharacter) 103 void SVGTextLayoutAttributesBuilder::collectTextPositioningElements(LayoutBoxMod elObject& start, UChar& lastCharacter)
104 { 104 {
105 ASSERT(!start.isSVGText() || m_textPositions.isEmpty()); 105 ASSERT(!start.isSVGText() || m_textPositions.isEmpty());
106 106
107 for (LayoutObject* child = start.slowFirstChild(); child; child = child->nex tSibling()) { 107 for (LayoutObject* child = start.slowFirstChild(); child; child = child->nex tSibling()) {
108 if (child->isSVGInlineText()) { 108 if (child->isSVGInlineText()) {
109 processLayoutSVGInlineText(toLayoutSVGInlineText(child), m_textLengt h, lastCharacter); 109 processLayoutSVGInlineText(toLayoutSVGInlineText(child), m_textLengt h, lastCharacter);
110 continue; 110 continue;
111 } 111 }
112 112
113 if (!child->isSVGInline()) 113 if (!child->isSVGInline())
(...skipping 112 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/layout/svg/SVGTextLayoutAttributesBuilder.h ('k') | Source/core/page/PrintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698