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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 return m_importsController->loaderFor(*this); | 755 return m_importsController->loaderFor(*this); |
756 } | 756 } |
757 | 757 |
758 bool Document::haveImportsLoaded() const | 758 bool Document::haveImportsLoaded() const |
759 { | 759 { |
760 if (!m_importsController) | 760 if (!m_importsController) |
761 return true; | 761 return true; |
762 return !m_importsController->shouldBlockScriptExecution(*this); | 762 return !m_importsController->shouldBlockScriptExecution(*this); |
763 } | 763 } |
764 | 764 |
765 LocalDOMWindow* Document::executingWindow() | 765 LocalDOMWindow* Document::executingWindow() const |
766 { | 766 { |
767 if (LocalDOMWindow* owningWindow = domWindow()) | 767 if (LocalDOMWindow* owningWindow = domWindow()) |
768 return owningWindow; | 768 return owningWindow; |
769 if (HTMLImportsController* import = this->importsController()) | 769 if (HTMLImportsController* import = this->importsController()) |
770 return import->master()->domWindow(); | 770 return import->master()->domWindow(); |
771 return 0; | 771 return 0; |
772 } | 772 } |
773 | 773 |
774 LocalFrame* Document::executingFrame() | 774 LocalFrame* Document::executingFrame() |
775 { | 775 { |
(...skipping 5264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6040 } | 6040 } |
6041 | 6041 |
6042 void showLiveDocumentInstances() | 6042 void showLiveDocumentInstances() |
6043 { | 6043 { |
6044 WeakDocumentSet& set = liveDocumentSet(); | 6044 WeakDocumentSet& set = liveDocumentSet(); |
6045 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6045 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6046 for (Document* document : set) | 6046 for (Document* document : set) |
6047 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6047 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6048 } | 6048 } |
6049 #endif | 6049 #endif |
OLD | NEW |