| 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);
|
| }
|
|
|