Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index 726c613ba5e615caa51e3bf7f4eb5898bb5ae128..439cb5ae69cee12ffc90dfe2e7c67fa2a3cf0766 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -303,7 +303,7 @@ static HTMLInputElement* asFileInput(Node* node) |
{ |
ASSERT(node); |
for (; node; node = node->shadowHost()) { |
- if (node->hasTagName(HTMLNames::inputTag) && toHTMLInputElement(node)->isFileUpload()) |
+ if (isHTMLInputElement(*node) && toHTMLInputElement(node)->isFileUpload()) |
return toHTMLInputElement(node); |
} |
return 0; |
@@ -655,7 +655,7 @@ Node* DragController::draggableNode(const LocalFrame* src, Node* startNode, cons |
return node; |
} |
// Other draggable elements are considered unselectable. |
- if (node->hasTagName(HTMLNames::aTag) && toHTMLAnchorElement(node)->isLiveLink()) { |
+ if (isHTMLAnchorElement(*node) && toHTMLAnchorElement(node)->isLiveLink()) { |
candidateDragType = DragSourceActionLink; |
break; |
} |