Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 521363002: Make XHR use the background HTML parser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove 521403002 changes from diff Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #include "core/rendering/HitTestResult.h" 172 #include "core/rendering/HitTestResult.h"
173 #include "core/rendering/RenderView.h" 173 #include "core/rendering/RenderView.h"
174 #include "core/rendering/RenderWidget.h" 174 #include "core/rendering/RenderWidget.h"
175 #include "core/rendering/TextAutosizer.h" 175 #include "core/rendering/TextAutosizer.h"
176 #include "core/rendering/compositing/RenderLayerCompositor.h" 176 #include "core/rendering/compositing/RenderLayerCompositor.h"
177 #include "core/svg/SVGDocumentExtensions.h" 177 #include "core/svg/SVGDocumentExtensions.h"
178 #include "core/svg/SVGFontFaceElement.h" 178 #include "core/svg/SVGFontFaceElement.h"
179 #include "core/svg/SVGTitleElement.h" 179 #include "core/svg/SVGTitleElement.h"
180 #include "core/svg/SVGUseElement.h" 180 #include "core/svg/SVGUseElement.h"
181 #include "core/workers/SharedWorkerRepositoryClient.h" 181 #include "core/workers/SharedWorkerRepositoryClient.h"
182 #include "core/xml/XMLHttpRequest.h"
182 #include "core/xml/XSLTProcessor.h" 183 #include "core/xml/XSLTProcessor.h"
183 #include "core/xml/parser/XMLDocumentParser.h" 184 #include "core/xml/parser/XMLDocumentParser.h"
184 #include "platform/DateComponents.h" 185 #include "platform/DateComponents.h"
185 #include "platform/EventDispatchForbiddenScope.h" 186 #include "platform/EventDispatchForbiddenScope.h"
186 #include "platform/Language.h" 187 #include "platform/Language.h"
187 #include "platform/Logging.h" 188 #include "platform/Logging.h"
188 #include "platform/RuntimeEnabledFeatures.h" 189 #include "platform/RuntimeEnabledFeatures.h"
189 #include "platform/ScriptForbiddenScope.h" 190 #include "platform/ScriptForbiddenScope.h"
190 #include "platform/TraceEvent.h" 191 #include "platform/TraceEvent.h"
191 #include "platform/network/ContentSecurityPolicyParsers.h" 192 #include "platform/network/ContentSecurityPolicyParsers.h"
(...skipping 4491 matching lines...) Expand 10 before | Expand all | Expand 10 after
4683 // so that dynamically inserted content can also benefit from sharing optimi zations. 4684 // so that dynamically inserted content can also benefit from sharing optimi zations.
4684 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept 4685 // Note that we don't refresh the timer on cache access since that could lea d to huge caches being kept
4685 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer. 4686 // alive indefinitely by something innocuous like JS setting .innerHTML repe atedly on a timer.
4686 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE); 4687 m_elementDataCacheClearTimer.startOneShot(10, FROM_HERE);
4687 4688
4688 // Parser should have picked up all preloads by now 4689 // Parser should have picked up all preloads by now
4689 m_fetcher->clearPreloads(); 4690 m_fetcher->clearPreloads();
4690 4691
4691 if (HTMLImportLoader* import = importLoader()) 4692 if (HTMLImportLoader* import = importLoader())
4692 import->didFinishParsing(); 4693 import->didFinishParsing();
4694
4695 if (XMLHttpRequest* xhr = XMLHttpRequest::findInstancePendingDocumentParse(t his))
4696 xhr->didFinishParsingDocument();
4693 } 4697 }
4694 4698
4695 void Document::elementDataCacheClearTimerFired(Timer<Document>*) 4699 void Document::elementDataCacheClearTimerFired(Timer<Document>*)
4696 { 4700 {
4697 m_elementDataCache.clear(); 4701 m_elementDataCache.clear();
4698 } 4702 }
4699 4703
4700 Vector<IconURL> Document::iconURLs(int iconTypesMask) 4704 Vector<IconURL> Document::iconURLs(int iconTypesMask)
4701 { 4705 {
4702 IconURL firstFavicon; 4706 IconURL firstFavicon;
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
5820 using namespace blink; 5824 using namespace blink;
5821 void showLiveDocumentInstances() 5825 void showLiveDocumentInstances()
5822 { 5826 {
5823 WeakDocumentSet& set = liveDocumentSet(); 5827 WeakDocumentSet& set = liveDocumentSet();
5824 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5828 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5825 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 5829 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
5826 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 5830 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
5827 } 5831 }
5828 } 5832 }
5829 #endif 5833 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | Source/core/xml/XMLHttpRequest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698