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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.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/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 8b0b269f8cfafbf2f4b2891156ed804c55534288..48a930c8cadb02d44d85e306c1a188323e983e21 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -33,7 +33,7 @@ const AtomicString& pointerEventNameForTouchPointState(PlatformTouchPoint::Touch
bool isInDocument(RawPtr<EventTarget> n)
{
- return n && n->toNode() && n->toNode()->inDocument();
+ return n && n->toNode() && n->toNode()->inShadowIncludingDocument();
}
WebInputEventResult dispatchMouseEvent(
@@ -485,7 +485,7 @@ bool PointerEventManager::processPendingPointerCapture(
// no longer participating in the tree.
EventTarget* target = pointerCaptureTarget.get();
if (target->toNode()
- && !target->toNode()->inDocument()) {
+ && !target->toNode()->inShadowIncludingDocument()) {
target = target->toNode()->ownerDocument();
}
dispatchPointerEvent(target,

Powered by Google App Engine
This is Rietveld 408576698