Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Element.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
| index 821c32e723c337e8c0af2ab83076536f7bb52cce..a533d41cb10ab97d147235fc2528ce55f3ef18ec 100644 |
| --- a/third_party/WebKit/Source/core/dom/Element.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp |
| @@ -3041,6 +3041,7 @@ void Element::setIsInTopLayer(bool inTopLayer) |
| void Element::requestPointerLock() |
| { |
| + UseCounter::countCrossOriginIframe(document(), UseCounter::ElementRequestPointerLockIframe); |
|
mlamouri (slow - plz ping)
2016/01/19 17:54:48
Maybe you could move this into `PointerLockControl
raymes
2016/01/20 00:13:12
Done. Is that just to keep code out of Element.cpp
mlamouri (slow - plz ping)
2016/01/21 13:53:18
Yes.
|
| if (document().page()) |
| document().page()->pointerLockController().requestPointerLock(this); |
| } |