Commit d84beb76 authored by oliver's avatar oliver

Reviewed by Darin.

        <rdar://problem/5293444> REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info

        Fixing logic error in DragController

        * manual-tests/drop-text-acquires-style.html: Added.
        * page/DragController.cpp:
        (WebCore::documentFragmentFromDragData):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fb7182f3
2007-06-25 Oliver Hunt <oliver@apple.com>
Reviewed by Darin.
<rdar://problem/5293444> REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info
Fixing logic error in DragController
* manual-tests/drop-text-acquires-style.html: Added.
* page/DragController.cpp:
(WebCore::documentFragmentFromDragData):
2007-06-25 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
<html>
<head>
<title>Dragging plain text into a styled region</title>
</head>
<body>
<p>This test ensures the plain text dropped into a styled text region will acquire the appropriate style</p>
<p>To run this test, drag the text in the input element below into the bold text region. The dropped text should be bold.</p>
<input id="dragme" value="Drag this text" ><br />
<b contenteditable="true" id="target">Drag the text from the above input element into this bold text</b>
</body>
</html>
......@@ -91,7 +91,7 @@ DragController::~DragController()
}
static PassRefPtr<DocumentFragment> documentFragmentFromDragData(DragData* dragData, RefPtr<Range> context,
bool allowPlainText, bool chosePlainText)
bool allowPlainText, bool& chosePlainText)
{
ASSERT(dragData);
chosePlainText = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment