Changeset 31336 in webkit
- Timestamp:
- Mar 26, 2008, 6:10:15 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r31334 r31336 1 2008-03-26 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Harrison. 4 5 <rdar://problem/5820749> REGRESSION (Safari 3.1): Mail's plain text reply omits blank line following the attribution 6 7 * editing/markup.cpp: 8 (WebCore::createFragmentFromText): When asked to create a fragment from "Attribution:\n" 9 with a context from [html, 0] to [html, 0], we'd return "<html>Attribution</html><br>". 10 Don't enclose paragraphs in clones of the context's enclosing block if that block is the 11 html or body element. Currently no way to test [DOMHTMLElement createFragmentFromText:]. 12 1 13 2008-03-26 Antti Koivisto <antti@apple.com> 2 14 -
trunk/WebCore/editing/markup.cpp
r31169 r31336 1057 1057 // Break string into paragraphs. Extra line breaks turn into empty paragraphs. 1058 1058 Node* block = enclosingBlock(context->firstNode()); 1059 bool useClonesOfEnclosingBlock = !block->hasTagName(bodyTag);1059 bool useClonesOfEnclosingBlock = block && !block->hasTagName(bodyTag) && !block->hasTagName(htmlTag); 1060 1060 1061 1061 Vector<String> list;
Note:
See TracChangeset
for help on using the changeset viewer.