Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 5a64465f68bcfa03fcd3294d24c9b534b26d7472..e0301a0034d9d5e7edd6564342e4facd19597c63 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -1745,10 +1745,7 @@ bool EventHandler::dispatchDragEvent(const AtomicString& eventType, Node* dragTa |
static bool targetIsFrame(Node* target, LocalFrame*& frame) |
{ |
- if (!target) |
- return false; |
- |
- if (!isHTMLFrameElement(*target) && !isHTMLIFrameElement(*target)) |
+ if (!isHTMLFrameElementBase(target)) |
return false; |
frame = toHTMLFrameElementBase(target)->contentFrame(); |