| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRe
placedData, RecalcStyleBehavior recalcStyleBehavior) | 339 void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRe
placedData, RecalcStyleBehavior recalcStyleBehavior) |
| 340 { | 340 { |
| 341 if (!inActiveDocument()) | 341 if (!inActiveDocument()) |
| 342 return; | 342 return; |
| 343 RenderText* textRenderer = toRenderText(renderer()); | 343 RenderText* textRenderer = toRenderText(renderer()); |
| 344 if (!textRenderer || !textRendererIsNeeded(*textRenderer->style(), *textRend
erer->parent())) { | 344 if (!textRenderer || !textRendererIsNeeded(*textRenderer->style(), *textRend
erer->parent())) { |
| 345 lazyReattachIfAttached(); | 345 lazyReattachIfAttached(); |
| 346 // FIXME: Editing should be updated so this is not neccesary. | 346 // FIXME: Editing should be updated so this is not neccesary. |
| 347 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) | 347 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) |
| 348 document().updateStyleIfNeeded(); | 348 document().updateRenderTreeIfNeeded(); |
| 349 return; | 349 return; |
| 350 } | 350 } |
| 351 textRenderer->setTextWithOffset(dataImpl(), offsetOfReplacedData, lengthOfRe
placedData); | 351 textRenderer->setTextWithOffset(dataImpl(), offsetOfReplacedData, lengthOfRe
placedData); |
| 352 } | 352 } |
| 353 | 353 |
| 354 PassRefPtr<Text> Text::cloneWithData(const String& data) | 354 PassRefPtr<Text> Text::cloneWithData(const String& data) |
| 355 { | 355 { |
| 356 return create(document(), data); | 356 return create(document(), data); |
| 357 } | 357 } |
| 358 | 358 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 370 result.appendLiteral("; "); | 370 result.appendLiteral("; "); |
| 371 result.appendLiteral("value="); | 371 result.appendLiteral("value="); |
| 372 result.append(s); | 372 result.append(s); |
| 373 } | 373 } |
| 374 | 374 |
| 375 strncpy(buffer, result.toString().utf8().data(), length - 1); | 375 strncpy(buffer, result.toString().utf8().data(), length - 1); |
| 376 } | 376 } |
| 377 #endif | 377 #endif |
| 378 | 378 |
| 379 } // namespace WebCore | 379 } // namespace WebCore |
| OLD | NEW |