Changeset 31932 in webkit


Ignore:
Timestamp:
Apr 15, 2008 10:30:13 PM (16 years ago)
Author:
justin.garcia@apple.com
Message:

WebCore:

2008-04-15 Justin Garcia <justin.garcia@apple.com>

Reviewed by Oliver.

<rdar://problem/5665299> REGRESSION (r27369): Paste text into a contenteditable div creates a contenteditable div for each line (16661)

  • editing/markup.cpp: (WebCore::createFragmentFromText): Don't use clones of the enclosing block to hold paragraphs if the enclosing block is the root editable element.

LayoutTests:

2008-04-15 Justin Garcia <justin.garcia@apple.com>

Reviewed by Oliver.

<rdar://problem/5665299> REGRESSION (r27369): Paste text into a contenteditable div creates a contenteditable div for each line (16661)

  • editing/pasteboard/5665299-expected.txt: Added.
  • editing/pasteboard/5665299.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r31912 r31932  
     12008-04-15  Justin Garcia  <justin.garcia@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        <rdar://problem/5665299> REGRESSION (r27369): Paste text into a contenteditable div creates a contenteditable div for each line (16661)
     6
     7        * editing/pasteboard/5665299-expected.txt: Added.
     8        * editing/pasteboard/5665299.html: Added.
     9
    1102008-04-15  Anatoli Papirovski  <apapirovski@mac.com>
    211
  • trunk/WebCore/ChangeLog

    r31931 r31932  
     12008-04-15  Justin Garcia  <justin.garcia@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        <rdar://problem/5665299> REGRESSION (r27369): Paste text into a contenteditable div creates a contenteditable div for each line (16661)
     6
     7        * editing/markup.cpp:
     8        (WebCore::createFragmentFromText): Don't use clones of the enclosing block to hold
     9        paragraphs if the enclosing block is the root editable element.
     10
    1112008-04-15  Mark Rowe  <mrowe@apple.com>
    212
  • trunk/WebCore/editing/markup.cpp

    r31412 r31932  
    10571057    // Break string into paragraphs. Extra line breaks turn into empty paragraphs.
    10581058    Node* block = enclosingBlock(context->firstNode());
    1059     bool useClonesOfEnclosingBlock = block && !block->hasTagName(bodyTag) && !block->hasTagName(htmlTag);
     1059    bool useClonesOfEnclosingBlock = block && !block->hasTagName(bodyTag) && !block->hasTagName(htmlTag) && block != editableRootForPosition(context->startPosition());
    10601060   
    10611061    Vector<String> list;
Note: See TracChangeset for help on using the changeset viewer.