| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DocumentOrShadowRoot_h | 5 #ifndef DocumentOrShadowRoot_h |
| 6 #define DocumentOrShadowRoot_h | 6 #define DocumentOrShadowRoot_h |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/Fullscreen.h" | 9 #include "core/dom/Fullscreen.h" |
| 10 #include "core/dom/shadow/ShadowRoot.h" | 10 #include "core/dom/shadow/ShadowRoot.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return nullptr; | 69 return nullptr; |
| 70 UseCounter::count(shadowRoot.document(), | 70 UseCounter::count(shadowRoot.document(), |
| 71 UseCounter::ShadowRootPointerLockElement); | 71 UseCounter::ShadowRootPointerLockElement); |
| 72 const Element* target = shadowRoot.document().pointerLockElement(); | 72 const Element* target = shadowRoot.document().pointerLockElement(); |
| 73 if (!target) | 73 if (!target) |
| 74 return nullptr; | 74 return nullptr; |
| 75 return shadowRoot.adjustedElement(*target); | 75 return shadowRoot.adjustedElement(*target); |
| 76 } | 76 } |
| 77 | 77 |
| 78 static Element* fullscreenElement(TreeScope& scope) { | 78 static Element* fullscreenElement(TreeScope& scope) { |
| 79 return Fullscreen::fullscreenElementForBindingFrom(scope); | 79 return Fullscreen::fullscreenElementForBinding(scope); |
| 80 } | 80 } |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // DocumentOrShadowRoot_h | 85 #endif // DocumentOrShadowRoot_h |
| OLD | NEW |