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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 #include "core/rendering/HitTestResult.h" | 175 #include "core/rendering/HitTestResult.h" |
176 #include "core/rendering/RenderView.h" | 176 #include "core/rendering/RenderView.h" |
177 #include "core/rendering/RenderWidget.h" | 177 #include "core/rendering/RenderWidget.h" |
178 #include "core/rendering/TextAutosizer.h" | 178 #include "core/rendering/TextAutosizer.h" |
179 #include "core/rendering/compositing/RenderLayerCompositor.h" | 179 #include "core/rendering/compositing/RenderLayerCompositor.h" |
180 #include "core/svg/SVGDocumentExtensions.h" | 180 #include "core/svg/SVGDocumentExtensions.h" |
181 #include "core/svg/SVGFontFaceElement.h" | 181 #include "core/svg/SVGFontFaceElement.h" |
182 #include "core/svg/SVGTitleElement.h" | 182 #include "core/svg/SVGTitleElement.h" |
183 #include "core/svg/SVGUseElement.h" | 183 #include "core/svg/SVGUseElement.h" |
184 #include "core/workers/SharedWorkerRepositoryClient.h" | 184 #include "core/workers/SharedWorkerRepositoryClient.h" |
185 #include "core/xml/XMLHttpRequest.h" | |
185 #include "core/xml/XSLTProcessor.h" | 186 #include "core/xml/XSLTProcessor.h" |
186 #include "core/xml/parser/XMLDocumentParser.h" | 187 #include "core/xml/parser/XMLDocumentParser.h" |
187 #include "platform/DateComponents.h" | 188 #include "platform/DateComponents.h" |
188 #include "platform/EventDispatchForbiddenScope.h" | 189 #include "platform/EventDispatchForbiddenScope.h" |
189 #include "platform/Language.h" | 190 #include "platform/Language.h" |
190 #include "platform/Logging.h" | 191 #include "platform/Logging.h" |
191 #include "platform/RuntimeEnabledFeatures.h" | 192 #include "platform/RuntimeEnabledFeatures.h" |
192 #include "platform/ScriptForbiddenScope.h" | 193 #include "platform/ScriptForbiddenScope.h" |
193 #include "platform/TraceEvent.h" | 194 #include "platform/TraceEvent.h" |
194 #include "platform/network/ContentSecurityPolicyParsers.h" | 195 #include "platform/network/ContentSecurityPolicyParsers.h" |
(...skipping 4491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4686 // so that dynamically inserted content can also benefit from sharing optimi zations. | 4687 // so that dynamically inserted content can also benefit from sharing optimi zations. |
4687 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept | 4688 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept |
4688 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer. | 4689 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer. |
4689 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); | 4690 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); |
4690 | 4691 |
4691 // Parser should have picked up all preloads by now | 4692 // Parser should have picked up all preloads by now |
4692 m_fetcher->clearPreloads(); | 4693 m_fetcher->clearPreloads(); |
4693 | 4694 |
4694 if (HTMLImportLoader* import = importLoader()) | 4695 if (HTMLImportLoader* import = importLoader()) |
4695 import->didFinishParsing(); | 4696 import->didFinishParsing(); |
4697 | |
4698 if (XMLHttpRequest* xhr = XMLHttpRequest::findInstancePendingDocumentParse(t his)) | |
4699 xhr->didFinishParsingDocument(); | |
abarth-chromium
2014/09/02 20:13:19
Can we make this into a generic client interface i
kouhei (in TOK)
2014/09/03 03:23:50
Got it. That makes more sense. Let me create a sep
kouhei (in TOK)
2014/09/09 22:14:40
Done. Rewrote the patch to use the DocumentParserC
| |
4696 } | 4700 } |
4697 | 4701 |
4698 void Document::elementDataCacheClearTimerFired(Timer<Document>*) | 4702 void Document::elementDataCacheClearTimerFired(Timer<Document>*) |
4699 { | 4703 { |
4700 m_elementDataCache.clear(); | 4704 m_elementDataCache.clear(); |
4701 } | 4705 } |
4702 | 4706 |
4703 Vector<IconURL> Document::iconURLs(int iconTypesMask) | 4707 Vector<IconURL> Document::iconURLs(int iconTypesMask) |
4704 { | 4708 { |
4705 IconURL firstFavicon; | 4709 IconURL firstFavicon; |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5851 using namespace blink; | 5855 using namespace blink; |
5852 void showLiveDocumentInstances() | 5856 void showLiveDocumentInstances() |
5853 { | 5857 { |
5854 WeakDocumentSet& set = liveDocumentSet(); | 5858 WeakDocumentSet& set = liveDocumentSet(); |
5855 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5859 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5856 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { | 5860 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { |
5857 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); | 5861 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); |
5858 } | 5862 } |
5859 } | 5863 } |
5860 #endif | 5864 #endif |
OLD | NEW |