| Index: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
|
| index 8749667a832bfa4e58b3c8ee7ed71cc8b7981691..7c68641b24e45acad6904045624ea45ab2888018 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
|
| @@ -61,7 +61,7 @@ public:
|
| UseCounter::count(document, UseCounter::DocumentPointerLockElementInV0Shadow);
|
| return const_cast<Element*>(target);
|
| }
|
| - return document.adjustedPointerLockElement(*target);
|
| + return document.retargetElementIfInSameTreeScope(*target);
|
| }
|
|
|
| static Element* pointerLockElement(ShadowRoot& shadowRoot)
|
| @@ -74,7 +74,7 @@ public:
|
| const Element* target = shadowRoot.document().pointerLockElement();
|
| if (!target)
|
| return nullptr;
|
| - return shadowRoot.adjustedPointerLockElement(*target);
|
| + return shadowRoot.retargetElementIfInSameTreeScope(*target);
|
| }
|
| };
|
|
|
|
|