| 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 5046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5057 | 5057 |
| 5058 HTMLDialogElement* Document::activeModalDialog() const | 5058 HTMLDialogElement* Document::activeModalDialog() const |
| 5059 { | 5059 { |
| 5060 if (m_topLayerElements.isEmpty()) | 5060 if (m_topLayerElements.isEmpty()) |
| 5061 return 0; | 5061 return 0; |
| 5062 return toHTMLDialogElement(m_topLayerElements.last().get()); | 5062 return toHTMLDialogElement(m_topLayerElements.last().get()); |
| 5063 } | 5063 } |
| 5064 | 5064 |
| 5065 void Document::webkitExitPointerLock() | 5065 void Document::webkitExitPointerLock() |
| 5066 { | 5066 { |
| 5067 exitPointerLock(); |
| 5068 } |
| 5069 |
| 5070 void Document::exitPointerLock() |
| 5071 { |
| 5067 if (!page()) | 5072 if (!page()) |
| 5068 return; | 5073 return; |
| 5069 if (Element* target = page()->pointerLockController().element()) { | 5074 if (Element* target = page()->pointerLockController().element()) { |
| 5070 if (target->document() != this) | 5075 if (target->document() != this) |
| 5071 return; | 5076 return; |
| 5072 } | 5077 } |
| 5073 page()->pointerLockController().requestPointerUnlock(); | 5078 page()->pointerLockController().requestPointerUnlock(); |
| 5074 } | 5079 } |
| 5075 | 5080 |
| 5076 Element* Document::webkitPointerLockElement() const | 5081 Element* Document::webkitPointerLockElement() const |
| 5077 { | 5082 { |
| 5083 return pointerLockElement(); |
| 5084 } |
| 5085 |
| 5086 Element* Document::pointerLockElement() const |
| 5087 { |
| 5078 if (!page() || page()->pointerLockController().lockPending()) | 5088 if (!page() || page()->pointerLockController().lockPending()) |
| 5079 return 0; | 5089 return 0; |
| 5080 if (Element* element = page()->pointerLockController().element()) { | 5090 if (Element* element = page()->pointerLockController().element()) { |
| 5081 if (element->document() == this) | 5091 if (element->document() == this) |
| 5082 return element; | 5092 return element; |
| 5083 } | 5093 } |
| 5084 return 0; | 5094 return 0; |
| 5085 } | 5095 } |
| 5086 | 5096 |
| 5087 void Document::decrementLoadEventDelayCount() | 5097 void Document::decrementLoadEventDelayCount() |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5715 visitor->trace(m_visibilityObservers); | 5725 visitor->trace(m_visibilityObservers); |
| 5716 visitor->trace(m_userActionElements); | 5726 visitor->trace(m_userActionElements); |
| 5717 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5727 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5718 DocumentSupplementable::trace(visitor); | 5728 DocumentSupplementable::trace(visitor); |
| 5719 TreeScope::trace(visitor); | 5729 TreeScope::trace(visitor); |
| 5720 ContainerNode::trace(visitor); | 5730 ContainerNode::trace(visitor); |
| 5721 ExecutionContext::trace(visitor); | 5731 ExecutionContext::trace(visitor); |
| 5722 } | 5732 } |
| 5723 | 5733 |
| 5724 } // namespace WebCore | 5734 } // namespace WebCore |
| OLD | NEW |