summaryrefslogtreecommitdiffstats
path: root/WebCore/page/DragController.cpp
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-09-13 16:35:48 +0100
committerIain Merrick <husky@google.com>2010-09-16 12:10:42 +0100
commit5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306 (patch)
treeddce1aa5e3b6967a69691892e500897558ff8ab6 /WebCore/page/DragController.cpp
parent12bec63ec71e46baba27f0bd9bd9d8067683690a (diff)
downloadexternal_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.zip
external_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.tar.gz
external_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.tar.bz2
Merge WebKit at r67178 : Initial merge by git.
Change-Id: I57e01163b6866cb029cdadf405a0394a3918bc18
Diffstat (limited to 'WebCore/page/DragController.cpp')
-rw-r--r--WebCore/page/DragController.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/page/DragController.cpp b/WebCore/page/DragController.cpp
index bbf4fed..c623bf6 100644
--- a/WebCore/page/DragController.cpp
+++ b/WebCore/page/DragController.cpp
@@ -30,7 +30,7 @@
#include "CSSStyleDeclaration.h"
#include "Clipboard.h"
#include "ClipboardAccessPolicy.h"
-#include "DocLoader.h"
+#include "CachedResourceLoader.h"
#include "Document.h"
#include "DocumentFragment.h"
#include "DragActions.h"
@@ -440,13 +440,13 @@ bool DragController::concludeEditDrag(DragData* dragData)
// manually controlling drag behaviour
if (!range)
return false;
- DocLoader* loader = range->ownerDocument()->docLoader();
- loader->setAllowStaleResources(true);
+ CachedResourceLoader* cachedResourceLoader = range->ownerDocument()->cachedResourceLoader();
+ cachedResourceLoader->setAllowStaleResources(true);
if (dragIsMove(innerFrame->selection()) || dragCaret.isContentRichlyEditable()) {
bool chosePlainText = false;
RefPtr<DocumentFragment> fragment = documentFragmentFromDragData(dragData, range, true, chosePlainText);
if (!fragment || !innerFrame->editor()->shouldInsertFragment(fragment, range, EditorInsertActionDropped)) {
- loader->setAllowStaleResources(false);
+ cachedResourceLoader->setAllowStaleResources(false);
return false;
}
@@ -464,7 +464,7 @@ bool DragController::concludeEditDrag(DragData* dragData)
} else {
String text = dragData->asPlainText();
if (text.isEmpty() || !innerFrame->editor()->shouldInsertText(text, range.get(), EditorInsertActionDropped)) {
- loader->setAllowStaleResources(false);
+ cachedResourceLoader->setAllowStaleResources(false);
return false;
}
@@ -472,7 +472,7 @@ bool DragController::concludeEditDrag(DragData* dragData)
if (setSelectionToDragCaret(innerFrame, dragCaret, range, point))
applyCommand(ReplaceSelectionCommand::create(m_documentUnderMouse.get(), createFragmentFromText(range.get(), text), true, false, true));
}
- loader->setAllowStaleResources(false);
+ cachedResourceLoader->setAllowStaleResources(false);
return true;
}
@@ -741,7 +741,7 @@ bool DragController::startDrag(Frame* src, Clipboard* clipboard, DragOperation s
} else if (isSelected && (m_dragSourceAction & DragSourceActionSelection)) {
if (!clipboard->hasData()) {
if (isNodeInTextFormControl(src->selection()->start().node()))
- clipboard->writePlainText(src->selectedText());
+ clipboard->writePlainText(src->editor()->selectedText());
else {
RefPtr<Range> selectionRange = src->selection()->toNormalizedRange();
ASSERT(selectionRange);