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

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: 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 ffdc2ed5d0895d6c2ae9a88dda837a7643ee3780..b3ff0cb98849fafbd88ba44f111b55e9192995b8 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(
@@ -468,7 +468,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