| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 { | 265 { |
| 266 if (isSVGText(this) || isSVGShadowText(this)) | 266 if (isSVGText(this) || isSVGShadowText(this)) |
| 267 return new (arena) RenderSVGInlineText(this, dataImpl()); | 267 return new (arena) RenderSVGInlineText(this, dataImpl()); |
| 268 | 268 |
| 269 if (style->hasTextCombine()) | 269 if (style->hasTextCombine()) |
| 270 return new (arena) RenderCombineText(this, dataImpl()); | 270 return new (arena) RenderCombineText(this, dataImpl()); |
| 271 | 271 |
| 272 return new (arena) RenderText(this, dataImpl()); | 272 return new (arena) RenderText(this, dataImpl()); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void Text::attach() | 275 void Text::attach(const AttachContext& context) |
| 276 { | 276 { |
| 277 createTextRendererIfNeeded(); | 277 createTextRendererIfNeeded(); |
| 278 CharacterData::attach(); | 278 CharacterData::attach(context); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void Text::recalcTextStyle(StyleChange change) | 281 void Text::recalcTextStyle(StyleChange change) |
| 282 { | 282 { |
| 283 RenderText* renderer = toRenderText(this->renderer()); | 283 RenderText* renderer = toRenderText(this->renderer()); |
| 284 | 284 |
| 285 if (change != NoChange && renderer) | 285 if (change != NoChange && renderer) |
| 286 renderer->setStyle(document()->styleResolver()->styleForText(this)); | 286 renderer->setStyle(document()->styleResolver()->styleForText(this)); |
| 287 | 287 |
| 288 if (needsStyleRecalc()) { | 288 if (needsStyleRecalc()) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 result.appendLiteral("; "); | 343 result.appendLiteral("; "); |
| 344 result.appendLiteral("value="); | 344 result.appendLiteral("value="); |
| 345 result.append(s); | 345 result.append(s); |
| 346 } | 346 } |
| 347 | 347 |
| 348 strncpy(buffer, result.toString().utf8().data(), length - 1); | 348 strncpy(buffer, result.toString().utf8().data(), length - 1); |
| 349 } | 349 } |
| 350 #endif | 350 #endif |
| 351 | 351 |
| 352 } // namespace WebCore | 352 } // namespace WebCore |
| OLD | NEW |