Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1161)

Unified Diff: Source/core/page/DragController.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/DOMWindow.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/DragController.cpp
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
index f4ceae5b7dd582b27bcddab1ca5e71a9e56264a5..ccd92fa96649f032f6193def1dd38b3cf3e41458 100644
--- a/Source/core/page/DragController.cpp
+++ b/Source/core/page/DragController.cpp
@@ -169,9 +169,9 @@ static PassRefPtr<DocumentFragment> documentFragmentFromDragData(DragData* dragD
title = url;
}
RefPtr<Node> anchorText = document->createTextNode(title);
- anchor->appendChild(anchorText, IGNORE_EXCEPTION_STATE);
+ anchor->appendChild(anchorText, IGNORE_EXCEPTION);
RefPtr<DocumentFragment> fragment = document->createDocumentFragment();
- fragment->appendChild(anchor, IGNORE_EXCEPTION_STATE);
+ fragment->appendChild(anchor, IGNORE_EXCEPTION);
return fragment.get();
}
}
@@ -443,7 +443,7 @@ bool DragController::dispatchTextInputEventFor(Frame* innerFrame, DragData* drag
ASSERT(m_page->dragCaretController()->hasCaret());
String text = m_page->dragCaretController()->isContentRichlyEditable() ? "" : dragData->asPlainText(innerFrame);
Node* target = innerFrame->editor()->findEventTargetFrom(m_page->dragCaretController()->caretPosition());
- return target->dispatchEvent(TextEvent::createForDrop(innerFrame->domWindow(), text), IGNORE_EXCEPTION_STATE);
+ return target->dispatchEvent(TextEvent::createForDrop(innerFrame->domWindow(), text), IGNORE_EXCEPTION);
}
bool DragController::concludeEditDrag(DragData* dragData)
@@ -686,7 +686,7 @@ static void prepareClipboardForImageDrag(Frame* source, Clipboard* clipboard, El
{
if (node->isContentRichlyEditable()) {
RefPtr<Range> range = source->document()->createRange();
- range->selectNode(node, ASSERT_NO_EXCEPTION_STATE);
+ range->selectNode(node, ASSERT_NO_EXCEPTION);
source->selection()->setSelection(VisibleSelection(range.get(), DOWNSTREAM));
}
clipboard->declareAndWriteDragImage(node, !linkURL.isEmpty() ? linkURL : imageURL, label, source);
« no previous file with comments | « Source/core/page/DOMWindow.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698