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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 void Text::updateTextLayoutObject(unsigned offsetOfReplacedData, unsigned length
OfReplacedData, RecalcStyleBehavior recalcStyleBehavior) | 420 void Text::updateTextLayoutObject(unsigned offsetOfReplacedData, unsigned length
OfReplacedData, RecalcStyleBehavior recalcStyleBehavior) |
421 { | 421 { |
422 if (!inActiveDocument()) | 422 if (!inActiveDocument()) |
423 return; | 423 return; |
424 LayoutText* textLayoutObject = layoutObject(); | 424 LayoutText* textLayoutObject = layoutObject(); |
425 if (shouldUpdateLayoutByReattaching(*this, textLayoutObject)) { | 425 if (shouldUpdateLayoutByReattaching(*this, textLayoutObject)) { |
426 lazyReattachIfAttached(); | 426 lazyReattachIfAttached(); |
427 // FIXME: Editing should be updated so this is not neccesary. | 427 // FIXME: Editing should be updated so this is not neccesary. |
428 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) | 428 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) |
429 document().updateLayoutTree(); | 429 document().updateStyleAndLayoutTree(); |
430 return; | 430 return; |
431 } | 431 } |
432 textLayoutObject->setTextWithOffset(dataImpl(), offsetOfReplacedData, length
OfReplacedData); | 432 textLayoutObject->setTextWithOffset(dataImpl(), offsetOfReplacedData, length
OfReplacedData); |
433 } | 433 } |
434 | 434 |
435 Text* Text::cloneWithData(const String& data) | 435 Text* Text::cloneWithData(const String& data) |
436 { | 436 { |
437 return create(document(), data); | 437 return create(document(), data); |
438 } | 438 } |
439 | 439 |
(...skipping 16 matching lines...) Expand all Loading... |
456 result.appendLiteral("; "); | 456 result.appendLiteral("; "); |
457 result.appendLiteral("value="); | 457 result.appendLiteral("value="); |
458 result.append(s); | 458 result.append(s); |
459 } | 459 } |
460 | 460 |
461 strncpy(buffer, result.toString().utf8().data(), length - 1); | 461 strncpy(buffer, result.toString().utf8().data(), length - 1); |
462 } | 462 } |
463 #endif | 463 #endif |
464 | 464 |
465 } // namespace blink | 465 } // namespace blink |
OLD | NEW |