Changeset 13628 in webkit


Ignore:
Timestamp:
Apr 1, 2006 12:59:45 PM (18 years ago)
Author:
mjs
Message:

Ooops, actually land the fix with this ChangeLog entry:

2006-03-31 Maciej Stachowiak <mjs@apple.com>

Reviewed by Adele.


<rdar://problem/4497684> REGRESSION(NativeTextField): After undoing pasted text in a field, the field changes to only a few pixels in height (8096)

  • editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): merge into start block when pasting into an empty editable subtree.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/editing/ReplaceSelectionCommand.cpp

    r13581 r13628  
    519519    if (startBlock == startBlock->rootEditableElement() && startAtStartOfBlock && startAtEndOfBlock) {
    520520        // empty editable subtree, need to mergeStart so that fragment ends up
    521         // inside the editable subtree rather than just before it
    522         // FIXME: Reconcile comment versus mergeStart = false
    523         mergeStart = false;
     521        // merged into the editable subtree rather than adding more levels of block nesting
     522        mergeStart = true;
    524523    } else {
    525524        // merge if current selection starts inside a paragraph, or there is only one block and no interchange newline to add
Note: See TracChangeset for help on using the changeset viewer.