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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 years, 3 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/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index c0a684f1d686859f59777949014ff1a06ba3a310..70e4290a77a1b481e6320b4fce4f54f1837486a4 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -311,7 +311,7 @@ DragSession DragController::dragEnteredOrUpdated(DragData* dragData)
static HTMLInputElement* asFileInput(Node* node)
{
ASSERT(node);
- for (; node; node = node->shadowHost()) {
+ for (; node; node = node->ownerShadowHost()) {
if (isHTMLInputElement(*node) && toHTMLInputElement(node)->type() == InputTypeNames::file)
return toHTMLInputElement(node);
}
@@ -329,7 +329,7 @@ static Element* elementUnderMouse(Document* documentUnderMouse, const IntPoint&
while (n && !n->isElementNode())
n = n->parentOrShadowHostNode();
if (n && n->isInShadowTree())
- n = n->shadowHost();
+ n = n->ownerShadowHost();
return toElement(n);
}

Powered by Google App Engine
This is Rietveld 408576698