| 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 5675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5686 if (!context->securityOrigin()->isPotentiallyTrustworthy(err
orMessage)) | 5686 if (!context->securityOrigin()->isPotentiallyTrustworthy(err
orMessage)) |
| 5687 return false; | 5687 return false; |
| 5688 } | 5688 } |
| 5689 } | 5689 } |
| 5690 context = context->parentDocument(); | 5690 context = context->parentDocument(); |
| 5691 } | 5691 } |
| 5692 } | 5692 } |
| 5693 return true; | 5693 return true; |
| 5694 } | 5694 } |
| 5695 | 5695 |
| 5696 WebTaskRunner* Document::loadingTaskRunner() const |
| 5697 { |
| 5698 if (frame()) |
| 5699 return frame()->frameScheduler()->loadingTaskRunner(); |
| 5700 return Platform::current()->currentThread()->scheduler()->loadingTaskRunner(
); |
| 5701 } |
| 5702 |
| 5696 DEFINE_TRACE(Document) | 5703 DEFINE_TRACE(Document) |
| 5697 { | 5704 { |
| 5698 #if ENABLE(OILPAN) | 5705 #if ENABLE(OILPAN) |
| 5699 visitor->trace(m_importsController); | 5706 visitor->trace(m_importsController); |
| 5700 visitor->trace(m_docType); | 5707 visitor->trace(m_docType); |
| 5701 visitor->trace(m_implementation); | 5708 visitor->trace(m_implementation); |
| 5702 visitor->trace(m_autofocusElement); | 5709 visitor->trace(m_autofocusElement); |
| 5703 visitor->trace(m_focusedElement); | 5710 visitor->trace(m_focusedElement); |
| 5704 visitor->trace(m_hoverNode); | 5711 visitor->trace(m_hoverNode); |
| 5705 visitor->trace(m_activeHoverElement); | 5712 visitor->trace(m_activeHoverElement); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5765 #ifndef NDEBUG | 5772 #ifndef NDEBUG |
| 5766 using namespace blink; | 5773 using namespace blink; |
| 5767 void showLiveDocumentInstances() | 5774 void showLiveDocumentInstances() |
| 5768 { | 5775 { |
| 5769 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5776 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5770 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5777 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5771 for (Document* document : set) | 5778 for (Document* document : set) |
| 5772 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5779 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5773 } | 5780 } |
| 5774 #endif | 5781 #endif |
| OLD | NEW |