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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #include "core/dom/DocumentLifecycleObserver.h" | 66 #include "core/dom/DocumentLifecycleObserver.h" |
67 #include "core/dom/DocumentMarkerController.h" | 67 #include "core/dom/DocumentMarkerController.h" |
68 #include "core/dom/DocumentType.h" | 68 #include "core/dom/DocumentType.h" |
69 #include "core/dom/Element.h" | 69 #include "core/dom/Element.h" |
70 #include "core/dom/ElementDataCache.h" | 70 #include "core/dom/ElementDataCache.h" |
71 #include "core/dom/ElementTraversal.h" | 71 #include "core/dom/ElementTraversal.h" |
72 #include "core/dom/ExceptionCode.h" | 72 #include "core/dom/ExceptionCode.h" |
73 #include "core/dom/ExecutionContextTask.h" | 73 #include "core/dom/ExecutionContextTask.h" |
74 #include "core/dom/MainThreadTaskRunner.h" | 74 #include "core/dom/MainThreadTaskRunner.h" |
75 #include "core/dom/MutationObserver.h" | 75 #include "core/dom/MutationObserver.h" |
76 #include "core/dom/NoEventDispatchAssertion.h" | |
77 #include "core/dom/NodeChildRemovalTracker.h" | 76 #include "core/dom/NodeChildRemovalTracker.h" |
78 #include "core/dom/NodeFilter.h" | 77 #include "core/dom/NodeFilter.h" |
79 #include "core/dom/NodeIterator.h" | 78 #include "core/dom/NodeIterator.h" |
80 #include "core/dom/NodeRareData.h" | 79 #include "core/dom/NodeRareData.h" |
81 #include "core/dom/NodeRenderStyle.h" | 80 #include "core/dom/NodeRenderStyle.h" |
82 #include "core/dom/NodeRenderingTraversal.h" | 81 #include "core/dom/NodeRenderingTraversal.h" |
83 #include "core/dom/NodeTraversal.h" | 82 #include "core/dom/NodeTraversal.h" |
84 #include "core/dom/NodeWithIndex.h" | 83 #include "core/dom/NodeWithIndex.h" |
85 #include "core/dom/ProcessingInstruction.h" | 84 #include "core/dom/ProcessingInstruction.h" |
86 #include "core/dom/RequestAnimationFrameCallback.h" | 85 #include "core/dom/RequestAnimationFrameCallback.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 #include "core/rendering/TextAutosizer.h" | 174 #include "core/rendering/TextAutosizer.h" |
176 #include "core/rendering/compositing/RenderLayerCompositor.h" | 175 #include "core/rendering/compositing/RenderLayerCompositor.h" |
177 #include "core/svg/SVGDocumentExtensions.h" | 176 #include "core/svg/SVGDocumentExtensions.h" |
178 #include "core/svg/SVGFontFaceElement.h" | 177 #include "core/svg/SVGFontFaceElement.h" |
179 #include "core/svg/SVGTitleElement.h" | 178 #include "core/svg/SVGTitleElement.h" |
180 #include "core/svg/SVGUseElement.h" | 179 #include "core/svg/SVGUseElement.h" |
181 #include "core/workers/SharedWorkerRepositoryClient.h" | 180 #include "core/workers/SharedWorkerRepositoryClient.h" |
182 #include "core/xml/XSLTProcessor.h" | 181 #include "core/xml/XSLTProcessor.h" |
183 #include "core/xml/parser/XMLDocumentParser.h" | 182 #include "core/xml/parser/XMLDocumentParser.h" |
184 #include "platform/DateComponents.h" | 183 #include "platform/DateComponents.h" |
| 184 #include "platform/EventDispatchForbiddenScope.h" |
185 #include "platform/Language.h" | 185 #include "platform/Language.h" |
186 #include "platform/RuntimeEnabledFeatures.h" | 186 #include "platform/RuntimeEnabledFeatures.h" |
187 #include "platform/ScriptForbiddenScope.h" | 187 #include "platform/ScriptForbiddenScope.h" |
188 #include "platform/TraceEvent.h" | 188 #include "platform/TraceEvent.h" |
189 #include "platform/network/ContentSecurityPolicyParsers.h" | 189 #include "platform/network/ContentSecurityPolicyParsers.h" |
190 #include "platform/network/HTTPParsers.h" | 190 #include "platform/network/HTTPParsers.h" |
191 #include "platform/scroll/ScrollbarTheme.h" | 191 #include "platform/scroll/ScrollbarTheme.h" |
192 #include "platform/text/PlatformLocale.h" | 192 #include "platform/text/PlatformLocale.h" |
193 #include "platform/text/SegmentedString.h" | 193 #include "platform/text/SegmentedString.h" |
194 #include "platform/weborigin/OriginAccessEntry.h" | 194 #include "platform/weborigin/OriginAccessEntry.h" |
(...skipping 3554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3749 if (m_ranges.isEmpty()) | 3749 if (m_ranges.isEmpty()) |
3750 return; | 3750 return; |
3751 AttachedRangeSet ranges = m_ranges; | 3751 AttachedRangeSet ranges = m_ranges; |
3752 AttachedRangeSet::const_iterator end = ranges.end(); | 3752 AttachedRangeSet::const_iterator end = ranges.end(); |
3753 for (AttachedRangeSet::const_iterator it = ranges.begin(); it != end; ++it) | 3753 for (AttachedRangeSet::const_iterator it = ranges.begin(); it != end; ++it) |
3754 (*it)->updateOwnerDocumentIfNeeded(); | 3754 (*it)->updateOwnerDocumentIfNeeded(); |
3755 } | 3755 } |
3756 | 3756 |
3757 void Document::nodeChildrenWillBeRemoved(ContainerNode& container) | 3757 void Document::nodeChildrenWillBeRemoved(ContainerNode& container) |
3758 { | 3758 { |
3759 NoEventDispatchAssertion assertNoEventDispatch; | 3759 EventDispatchForbiddenScope assertNoEventDispatch; |
3760 if (!m_ranges.isEmpty()) { | 3760 if (!m_ranges.isEmpty()) { |
3761 AttachedRangeSet::const_iterator end = m_ranges.end(); | 3761 AttachedRangeSet::const_iterator end = m_ranges.end(); |
3762 for (AttachedRangeSet::const_iterator it = m_ranges.begin(); it != end;
++it) | 3762 for (AttachedRangeSet::const_iterator it = m_ranges.begin(); it != end;
++it) |
3763 (*it)->nodeChildrenWillBeRemoved(container); | 3763 (*it)->nodeChildrenWillBeRemoved(container); |
3764 } | 3764 } |
3765 | 3765 |
3766 WillBeHeapHashSet<RawPtrWillBeWeakMember<NodeIterator> >::const_iterator nod
eIteratorsEnd = m_nodeIterators.end(); | 3766 WillBeHeapHashSet<RawPtrWillBeWeakMember<NodeIterator> >::const_iterator nod
eIteratorsEnd = m_nodeIterators.end(); |
3767 for (WillBeHeapHashSet<RawPtrWillBeWeakMember<NodeIterator> >::const_iterato
r it = m_nodeIterators.begin(); it != nodeIteratorsEnd; ++it) { | 3767 for (WillBeHeapHashSet<RawPtrWillBeWeakMember<NodeIterator> >::const_iterato
r it = m_nodeIterators.begin(); it != nodeIteratorsEnd; ++it) { |
3768 for (Node* n = container.firstChild(); n; n = n->nextSibling()) | 3768 for (Node* n = container.firstChild(); n; n = n->nextSibling()) |
3769 (*it)->nodeWillBeRemoved(*n); | 3769 (*it)->nodeWillBeRemoved(*n); |
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5892 using namespace blink; | 5892 using namespace blink; |
5893 void showLiveDocumentInstances() | 5893 void showLiveDocumentInstances() |
5894 { | 5894 { |
5895 WeakDocumentSet& set = liveDocumentSet(); | 5895 WeakDocumentSet& set = liveDocumentSet(); |
5896 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5896 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5897 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5897 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
5898 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5898 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
5899 } | 5899 } |
5900 } | 5900 } |
5901 #endif | 5901 #endif |
OLD | NEW |