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 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5307 return toHTMLDialogElement(m_topLayerElements.last().get()); | 5307 return toHTMLDialogElement(m_topLayerElements.last().get()); |
5308 } | 5308 } |
5309 | 5309 |
5310 void Document::exitPointerLock() | 5310 void Document::exitPointerLock() |
5311 { | 5311 { |
5312 if (!page()) | 5312 if (!page()) |
5313 return; | 5313 return; |
5314 if (Element* target = page()->pointerLockController().element()) { | 5314 if (Element* target = page()->pointerLockController().element()) { |
5315 if (target->document() != this) | 5315 if (target->document() != this) |
5316 return; | 5316 return; |
| 5317 page()->pointerLockController().requestPointerUnlock(); |
5317 } | 5318 } |
5318 page()->pointerLockController().requestPointerUnlock(); | |
5319 } | 5319 } |
5320 | 5320 |
5321 Element* Document::pointerLockElement() const | 5321 Element* Document::pointerLockElement() const |
5322 { | 5322 { |
5323 if (!page() || page()->pointerLockController().lockPending()) | 5323 if (!page() || page()->pointerLockController().lockPending()) |
5324 return 0; | 5324 return 0; |
5325 if (Element* element = page()->pointerLockController().element()) { | 5325 if (Element* element = page()->pointerLockController().element()) { |
5326 if (element->document() == this) | 5326 if (element->document() == this) |
5327 return element; | 5327 return element; |
5328 } | 5328 } |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6016 #ifndef NDEBUG | 6016 #ifndef NDEBUG |
6017 using namespace blink; | 6017 using namespace blink; |
6018 void showLiveDocumentInstances() | 6018 void showLiveDocumentInstances() |
6019 { | 6019 { |
6020 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6020 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
6021 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6021 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6022 for (Document* document : set) | 6022 for (Document* document : set) |
6023 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6023 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6024 } | 6024 } |
6025 #endif | 6025 #endif |
OLD | NEW |