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 5717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5728 if (!context->securityOrigin()->isPotentiallyTrustworthy(err
orMessage)) | 5728 if (!context->securityOrigin()->isPotentiallyTrustworthy(err
orMessage)) |
5729 return false; | 5729 return false; |
5730 } | 5730 } |
5731 } | 5731 } |
5732 context = context->parentDocument(); | 5732 context = context->parentDocument(); |
5733 } | 5733 } |
5734 } | 5734 } |
5735 return true; | 5735 return true; |
5736 } | 5736 } |
5737 | 5737 |
| 5738 bool Document::isSecureContext(const SecureContextCheck privilegeContextCheck) c
onst |
| 5739 { |
| 5740 String unusedErrorMessage; |
| 5741 return isSecureContext(unusedErrorMessage, privilegeContextCheck); |
| 5742 } |
| 5743 |
5738 WebTaskRunner* Document::loadingTaskRunner() const | 5744 WebTaskRunner* Document::loadingTaskRunner() const |
5739 { | 5745 { |
5740 if (frame()) | 5746 if (frame()) |
5741 return frame()->frameScheduler()->loadingTaskRunner(); | 5747 return frame()->frameScheduler()->loadingTaskRunner(); |
5742 if (m_importsController) | 5748 if (m_importsController) |
5743 return m_importsController->master()->loadingTaskRunner(); | 5749 return m_importsController->master()->loadingTaskRunner(); |
5744 if (m_contextDocument) | 5750 if (m_contextDocument) |
5745 return m_contextDocument->loadingTaskRunner(); | 5751 return m_contextDocument->loadingTaskRunner(); |
5746 return Platform::current()->currentThread()->scheduler()->loadingTaskRunner(
); | 5752 return Platform::current()->currentThread()->scheduler()->loadingTaskRunner(
); |
5747 } | 5753 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5828 #ifndef NDEBUG | 5834 #ifndef NDEBUG |
5829 using namespace blink; | 5835 using namespace blink; |
5830 void showLiveDocumentInstances() | 5836 void showLiveDocumentInstances() |
5831 { | 5837 { |
5832 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5838 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5833 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5839 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5834 for (Document* document : set) | 5840 for (Document* document : set) |
5835 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5841 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5836 } | 5842 } |
5837 #endif | 5843 #endif |
OLD | NEW |