Chromium Code Reviews| 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..f3ff270b36ce7161ed35f1d6b5320a6b6704d8ff 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.adjustedElement(*target); |
|
hayato
2016/07/15 06:24:40
Nit: Can we rename this `adjustedElement` to `adju
kochi
2016/07/15 06:40:09
returns an adjusted element of *target (for docume
|
| } |
| 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.adjustedElement(*target); |
| } |
| }; |