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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 6abb8a443e79aabe2848a390e5bfb64556bd3e33..ca3583f5b6f9a1e588fc406a6ab6053cb031e9c3 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -3288,7 +3288,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->inDocument())
+ if (dragState().m_dragSrc && !dragState().m_dragSrc->inShadowIncludingDocument())
dragState().m_dragSrc = rootEditableElement;
}

Powered by Google App Engine
This is Rietveld 408576698