-
justing authored
Reviewed by darin <rdar://problem/5134759> GMail Editor: Hang after pasting underlined text multiple times Demonstrates the bug: * editing/pasteboard/5134759-expected.checksum: Added. * editing/pasteboard/5134759-expected.png: Added. * editing/pasteboard/5134759-expected.txt: Added. * editing/pasteboard/5134759.html: Added. A unnecessary extra space was added to an element's inline style declaration, because of the way cssText behaves: * editing/pasteboard/paste-table-002-expected.txt: WebCore: Reviewed by darin <rdar://problem/5134759> GMail Editor: Hang after pasting underlined text multiple times The moveParagraphs call that ReplaceSelectionCommand performs must receive only inline content from createMarkup, or else it will result in another call to moveParagraphs when it performs the move, resulting in infinite recursion. * editing/markup.cpp: (WebCore::startMarkup): We were only converting a block to an inline if it had an inline style declaration or styles coming from matched rules. Cleaned up this code a bit by handling an element's style separately from its other attributes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ce2db776