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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp

Issue 1481983002: Drop [LegacyInterfaceTypeChecking] where trivial in core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index 687b1a7a590cee7fdf19f10757d0d8db866788f0..3688ab421d272ba5ee317c11a00061c807e8532d 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -212,15 +212,13 @@ FileList* DataTransfer::files() const
return files;
}
-void DataTransfer::setDragImage(Element* image, int x, int y, ExceptionState& exceptionState)
+void DataTransfer::setDragImage(Element* image, int x, int y)
{
+ ASSERT(image);
+
if (!isForDragAndDrop())
return;
- if (!image) {
- exceptionState.throwTypeError("setDragImage: Invalid first argument");
- return;
- }
IntPoint location(x, y);
if (isHTMLImageElement(*image) && !image->inDocument())
setDragImageResource(toHTMLImageElement(*image).cachedImage(), location);
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataTransfer.h ('k') | third_party/WebKit/Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698