| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 5741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5752 return; | 5752 return; |
| 5753 size_t position = m_topLayerElements.find(element); | 5753 size_t position = m_topLayerElements.find(element); |
| 5754 DCHECK_NE(position, kNotFound); | 5754 DCHECK_NE(position, kNotFound); |
| 5755 m_topLayerElements.remove(position); | 5755 m_topLayerElements.remove(position); |
| 5756 element->setIsInTopLayer(false); | 5756 element->setIsInTopLayer(false); |
| 5757 } | 5757 } |
| 5758 | 5758 |
| 5759 HTMLDialogElement* Document::activeModalDialog() const { | 5759 HTMLDialogElement* Document::activeModalDialog() const { |
| 5760 if (m_topLayerElements.isEmpty()) | 5760 if (m_topLayerElements.isEmpty()) |
| 5761 return 0; | 5761 return 0; |
| 5762 return toHTMLDialogElement(m_topLayerElements.last().get()); | 5762 return toHTMLDialogElement(m_topLayerElements.back().get()); |
| 5763 } | 5763 } |
| 5764 | 5764 |
| 5765 void Document::exitPointerLock() { | 5765 void Document::exitPointerLock() { |
| 5766 if (!page()) | 5766 if (!page()) |
| 5767 return; | 5767 return; |
| 5768 if (Element* target = page()->pointerLockController().element()) { | 5768 if (Element* target = page()->pointerLockController().element()) { |
| 5769 if (target->document() != this) | 5769 if (target->document() != this) |
| 5770 return; | 5770 return; |
| 5771 page()->pointerLockController().requestPointerUnlock(); | 5771 page()->pointerLockController().requestPointerUnlock(); |
| 5772 } | 5772 } |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6523 } | 6523 } |
| 6524 | 6524 |
| 6525 void showLiveDocumentInstances() { | 6525 void showLiveDocumentInstances() { |
| 6526 WeakDocumentSet& set = liveDocumentSet(); | 6526 WeakDocumentSet& set = liveDocumentSet(); |
| 6527 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6527 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6528 for (Document* document : set) | 6528 for (Document* document : set) |
| 6529 fprintf(stderr, "- Document %p URL: %s\n", document, | 6529 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6530 document->url().getString().utf8().data()); | 6530 document->url().getString().utf8().data()); |
| 6531 } | 6531 } |
| 6532 #endif | 6532 #endif |
| OLD | NEW |