OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 { | 263 { |
264 if (isSVGText(this) || isSVGShadowText(this)) | 264 if (isSVGText(this) || isSVGShadowText(this)) |
265 return new (arena) RenderSVGInlineText(this, dataImpl()); | 265 return new (arena) RenderSVGInlineText(this, dataImpl()); |
266 | 266 |
267 if (style->hasTextCombine()) | 267 if (style->hasTextCombine()) |
268 return new (arena) RenderCombineText(this, dataImpl()); | 268 return new (arena) RenderCombineText(this, dataImpl()); |
269 | 269 |
270 return new (arena) RenderText(this, dataImpl()); | 270 return new (arena) RenderText(this, dataImpl()); |
271 } | 271 } |
272 | 272 |
273 void Text::attach() | 273 void Text::attach(const AttachContext& context) |
274 { | 274 { |
275 createTextRendererIfNeeded(); | 275 createTextRendererIfNeeded(); |
276 CharacterData::attach(); | 276 CharacterData::attach(context); |
277 } | 277 } |
278 | 278 |
279 void Text::recalcTextStyle(StyleChange change) | 279 void Text::recalcTextStyle(StyleChange change) |
280 { | 280 { |
281 RenderText* renderer = toRenderText(this->renderer()); | 281 RenderText* renderer = toRenderText(this->renderer()); |
282 | 282 |
283 if (change != NoChange && renderer) | 283 if (change != NoChange && renderer) |
284 renderer->setStyle(document()->styleResolver()->styleForText(this)); | 284 renderer->setStyle(document()->styleResolver()->styleForText(this)); |
285 | 285 |
286 if (needsStyleRecalc()) { | 286 if (needsStyleRecalc()) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 result.appendLiteral("; "); | 341 result.appendLiteral("; "); |
342 result.appendLiteral("value="); | 342 result.appendLiteral("value="); |
343 result.append(s); | 343 result.append(s); |
344 } | 344 } |
345 | 345 |
346 strncpy(buffer, result.toString().utf8().data(), length - 1); | 346 strncpy(buffer, result.toString().utf8().data(), length - 1); |
347 } | 347 } |
348 #endif | 348 #endif |
349 | 349 |
350 } // namespace WebCore | 350 } // namespace WebCore |
OLD | NEW |