| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 { | 252 { |
| 253 Node* parentOrShadowHostNode = text->parentOrShadowHostNode(); | 253 Node* parentOrShadowHostNode = text->parentOrShadowHostNode(); |
| 254 return parentOrShadowHostNode->isSVGElement() && !parentOrShadowHostNode->ha
sTagName(SVGNames::foreignObjectTag); | 254 return parentOrShadowHostNode->isSVGElement() && !parentOrShadowHostNode->ha
sTagName(SVGNames::foreignObjectTag); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void Text::createTextRendererIfNeeded() | 257 void Text::createTextRendererIfNeeded() |
| 258 { | 258 { |
| 259 NodeRenderingContext(this).createRendererForTextIfNeeded(); | 259 NodeRenderingContext(this).createRendererForTextIfNeeded(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 RenderText* Text::createTextRenderer(RenderArena* arena, RenderStyle* style) | 262 RenderText* Text::createTextRenderer(RenderStyle* style) |
| 263 { | 263 { |
| 264 if (isSVGText(this) || isSVGShadowText(this)) | 264 if (isSVGText(this) || isSVGShadowText(this)) |
| 265 return new (arena) RenderSVGInlineText(this, dataImpl()); | 265 return new RenderSVGInlineText(this, dataImpl()); |
| 266 | 266 |
| 267 if (style->hasTextCombine()) | 267 if (style->hasTextCombine()) |
| 268 return new (arena) RenderCombineText(this, dataImpl()); | 268 return new RenderCombineText(this, dataImpl()); |
| 269 | 269 |
| 270 return new (arena) RenderText(this, dataImpl()); | 270 return new RenderText(this, dataImpl()); |
| 271 } | 271 } |
| 272 | 272 |
| 273 void Text::attach(const AttachContext& context) | 273 void Text::attach(const AttachContext& context) |
| 274 { | 274 { |
| 275 createTextRendererIfNeeded(); | 275 createTextRendererIfNeeded(); |
| 276 CharacterData::attach(context); | 276 CharacterData::attach(context); |
| 277 } | 277 } |
| 278 | 278 |
| 279 void Text::recalcTextStyle(StyleChange change) | 279 void Text::recalcTextStyle(StyleChange change) |
| 280 { | 280 { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 result.appendLiteral("; "); | 346 result.appendLiteral("; "); |
| 347 result.appendLiteral("value="); | 347 result.appendLiteral("value="); |
| 348 result.append(s); | 348 result.append(s); |
| 349 } | 349 } |
| 350 | 350 |
| 351 strncpy(buffer, result.toString().utf8().data(), length - 1); | 351 strncpy(buffer, result.toString().utf8().data(), length - 1); |
| 352 } | 352 } |
| 353 #endif | 353 #endif |
| 354 | 354 |
| 355 } // namespace WebCore | 355 } // namespace WebCore |
| OLD | NEW |