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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 8c2790eee6eed70c0a7c97cedfb7a49c002fa6dd..8f8c124a11c852990af935be9f7adbf65ebb2028 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -2606,7 +2606,7 @@ void EventHandler::dragSourceEndedAt(const PlatformMouseEvent& event, DragOperat
void EventHandler::updateDragStateAfterEditDragIfNeeded(Element* rootEditableElement)
{
// If inserting the dragged contents removed the drag source, we still want to fire dragend at the root editble element.
- if (dragState().m_dragSrc && !dragState().m_dragSrc->inShadowIncludingDocument())
+ if (dragState().m_dragSrc && !dragState().m_dragSrc->isConnected())
dragState().m_dragSrc = rootEditableElement;
}

Powered by Google App Engine
This is Rietveld 408576698