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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #include "core/dom/StaticNodeList.h" | 100 #include "core/dom/StaticNodeList.h" |
101 #include "core/dom/StyleChangeReason.h" | 101 #include "core/dom/StyleChangeReason.h" |
102 #include "core/dom/StyleEngine.h" | 102 #include "core/dom/StyleEngine.h" |
103 #include "core/dom/TaskRunnerHelper.h" | 103 #include "core/dom/TaskRunnerHelper.h" |
104 #include "core/dom/TouchList.h" | 104 #include "core/dom/TouchList.h" |
105 #include "core/dom/TransformSource.h" | 105 #include "core/dom/TransformSource.h" |
106 #include "core/dom/TreeWalker.h" | 106 #include "core/dom/TreeWalker.h" |
107 #include "core/dom/VisitedLinkState.h" | 107 #include "core/dom/VisitedLinkState.h" |
108 #include "core/dom/XMLDocument.h" | 108 #include "core/dom/XMLDocument.h" |
109 #include "core/dom/custom/CustomElement.h" | 109 #include "core/dom/custom/CustomElement.h" |
110 #include "core/dom/custom/CustomElementsRegistry.h" | 110 #include "core/dom/custom/CustomElementRegistry.h" |
111 #include "core/dom/custom/V0CustomElementMicrotaskRunQueue.h" | 111 #include "core/dom/custom/V0CustomElementMicrotaskRunQueue.h" |
112 #include "core/dom/custom/V0CustomElementRegistrationContext.h" | 112 #include "core/dom/custom/V0CustomElementRegistrationContext.h" |
113 #include "core/dom/shadow/ElementShadow.h" | 113 #include "core/dom/shadow/ElementShadow.h" |
114 #include "core/dom/shadow/FlatTreeTraversal.h" | 114 #include "core/dom/shadow/FlatTreeTraversal.h" |
115 #include "core/dom/shadow/ShadowRoot.h" | 115 #include "core/dom/shadow/ShadowRoot.h" |
116 #include "core/editing/DragCaretController.h" | 116 #include "core/editing/DragCaretController.h" |
117 #include "core/editing/EditingUtilities.h" | 117 #include "core/editing/EditingUtilities.h" |
118 #include "core/editing/Editor.h" | 118 #include "core/editing/Editor.h" |
119 #include "core/editing/FrameSelection.h" | 119 #include "core/editing/FrameSelection.h" |
120 #include "core/editing/InputMethodController.h" | 120 #include "core/editing/InputMethodController.h" |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 , m_parserSyncPolicy(AllowAsynchronousParsing) | 456 , m_parserSyncPolicy(AllowAsynchronousParsing) |
457 , m_nodeCount(0) | 457 , m_nodeCount(0) |
458 { | 458 { |
459 if (m_frame) { | 459 if (m_frame) { |
460 DCHECK(m_frame->page()); | 460 DCHECK(m_frame->page()); |
461 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); | 461 provideContextFeaturesToDocumentFrom(*this, *m_frame->page()); |
462 | 462 |
463 m_fetcher = m_frame->loader().documentLoader()->fetcher(); | 463 m_fetcher = m_frame->loader().documentLoader()->fetcher(); |
464 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); | 464 FrameFetchContext::provideDocumentToContext(m_fetcher->context(), this); |
465 | 465 |
466 CustomElementsRegistry* registry = m_frame->localDOMWindow() | 466 CustomElementRegistry* registry = m_frame->localDOMWindow() |
467 ? m_frame->localDOMWindow()->maybeCustomElements() | 467 ? m_frame->localDOMWindow()->maybeCustomElements() |
468 : nullptr; | 468 : nullptr; |
469 if (registry && m_registrationContext) | 469 if (registry && m_registrationContext) |
470 registry->entangle(m_registrationContext); | 470 registry->entangle(m_registrationContext); |
471 } else if (m_importsController) { | 471 } else if (m_importsController) { |
472 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); | 472 m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this); |
473 } else { | 473 } else { |
474 m_fetcher = ResourceFetcher::create(nullptr); | 474 m_fetcher = ResourceFetcher::create(nullptr); |
475 } | 475 } |
476 | 476 |
(...skipping 5563 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 |