OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 5317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5328 return toHTMLDialogElement(m_topLayerElements.last().get()); | 5328 return toHTMLDialogElement(m_topLayerElements.last().get()); |
5329 } | 5329 } |
5330 | 5330 |
5331 void Document::exitPointerLock() | 5331 void Document::exitPointerLock() |
5332 { | 5332 { |
5333 if (!page()) | 5333 if (!page()) |
5334 return; | 5334 return; |
5335 if (Element* target = page()->pointerLockController().element()) { | 5335 if (Element* target = page()->pointerLockController().element()) { |
5336 if (target->document() != this) | 5336 if (target->document() != this) |
5337 return; | 5337 return; |
| 5338 page()->pointerLockController().requestPointerUnlock(); |
5338 } | 5339 } |
5339 page()->pointerLockController().requestPointerUnlock(); | |
5340 } | 5340 } |
5341 | 5341 |
5342 Element* Document::pointerLockElement() const | 5342 Element* Document::pointerLockElement() const |
5343 { | 5343 { |
5344 if (!page() || page()->pointerLockController().lockPending()) | 5344 if (!page() || page()->pointerLockController().lockPending()) |
5345 return 0; | 5345 return 0; |
5346 if (Element* element = page()->pointerLockController().element()) { | 5346 if (Element* element = page()->pointerLockController().element()) { |
5347 if (element->document() == this) | 5347 if (element->document() == this) |
5348 return element; | 5348 return element; |
5349 } | 5349 } |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6036 #ifndef NDEBUG | 6036 #ifndef NDEBUG |
6037 using namespace blink; | 6037 using namespace blink; |
6038 void showLiveDocumentInstances() | 6038 void showLiveDocumentInstances() |
6039 { | 6039 { |
6040 WeakDocumentSet& set = liveDocumentSet(); | 6040 WeakDocumentSet& set = liveDocumentSet(); |
6041 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6041 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6042 for (Document* document : set) | 6042 for (Document* document : set) |
6043 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6043 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6044 } | 6044 } |
6045 #endif | 6045 #endif |
OLD | NEW |