diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 20caaf6199dac5ac2bd50f76dd26e87d37004861..92fb3bf55a0ae534d1dc659d495e2f52f63c3d11 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,15 @@ +2007-06-25 Oliver Hunt + + Reviewed by Darin. + + 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 Reviewed by Adam Roben. diff --git a/WebCore/manual-tests/drop-text-acquires-style.html b/WebCore/manual-tests/drop-text-acquires-style.html new file mode 100644 index 0000000000000000000000000000000000000000..602c76086bf138a8fd6a649682141982a5487750 --- /dev/null +++ b/WebCore/manual-tests/drop-text-acquires-style.html @@ -0,0 +1,11 @@ + + +Dragging plain text into a styled region + + +

This test ensures the plain text dropped into a styled text region will acquire the appropriate style

+

To run this test, drag the text in the input element below into the bold text region. The dropped text should be bold.

+
+Drag the text from the above input element into this bold text + + diff --git a/WebCore/page/DragController.cpp b/WebCore/page/DragController.cpp index 8aa89f8ab2f9175f8943bad290d9a9c573bb6c0b..5213f18e1c090e44f04fc033f14a47e67e140231 100644 --- a/WebCore/page/DragController.cpp +++ b/WebCore/page/DragController.cpp @@ -91,7 +91,7 @@ DragController::~DragController() } static PassRefPtr documentFragmentFromDragData(DragData* dragData, RefPtr context, - bool allowPlainText, bool chosePlainText) + bool allowPlainText, bool& chosePlainText) { ASSERT(dragData); chosePlainText = false;