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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 1819593002: Preload scan external css for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "core/dom/DocumentFragment.h" 31 #include "core/dom/DocumentFragment.h"
32 #include "core/dom/DocumentLifecycleObserver.h" 32 #include "core/dom/DocumentLifecycleObserver.h"
33 #include "core/dom/Element.h" 33 #include "core/dom/Element.h"
34 #include "core/frame/LocalFrame.h" 34 #include "core/frame/LocalFrame.h"
35 #include "core/frame/Settings.h" 35 #include "core/frame/Settings.h"
36 #include "core/html/HTMLDocument.h" 36 #include "core/html/HTMLDocument.h"
37 #include "core/html/parser/AtomicHTMLToken.h" 37 #include "core/html/parser/AtomicHTMLToken.h"
38 #include "core/html/parser/BackgroundHTMLParser.h" 38 #include "core/html/parser/BackgroundHTMLParser.h"
39 #include "core/html/parser/HTMLParserScheduler.h" 39 #include "core/html/parser/HTMLParserScheduler.h"
40 #include "core/html/parser/HTMLParserThread.h" 40 #include "core/html/parser/HTMLParserThread.h"
41 #include "core/html/parser/HTMLResourcePreloader.h"
41 #include "core/html/parser/HTMLScriptRunner.h" 42 #include "core/html/parser/HTMLScriptRunner.h"
42 #include "core/html/parser/HTMLTreeBuilder.h" 43 #include "core/html/parser/HTMLTreeBuilder.h"
43 #include "core/inspector/InspectorInstrumentation.h" 44 #include "core/inspector/InspectorInstrumentation.h"
44 #include "core/inspector/InspectorTraceEvents.h" 45 #include "core/inspector/InspectorTraceEvents.h"
45 #include "core/loader/DocumentLoader.h" 46 #include "core/loader/DocumentLoader.h"
46 #include "core/loader/LinkLoader.h" 47 #include "core/loader/LinkLoader.h"
47 #include "core/loader/NavigationScheduler.h" 48 #include "core/loader/NavigationScheduler.h"
48 #include "platform/SharedBuffer.h" 49 #include "platform/SharedBuffer.h"
49 #include "platform/ThreadSafeFunctional.h" 50 #include "platform/ThreadSafeFunctional.h"
50 #include "platform/TraceEvent.h" 51 #include "platform/TraceEvent.h"
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) 1126 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder)
1126 { 1127 {
1127 ASSERT(decoder); 1128 ASSERT(decoder);
1128 DecodedDataDocumentParser::setDecoder(decoder); 1129 DecodedDataDocumentParser::setDecoder(decoder);
1129 1130
1130 if (m_haveBackgroundParser) 1131 if (m_haveBackgroundParser)
1131 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder())); 1132 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder()));
1132 } 1133 }
1133 1134
1134 } // namespace blink 1135 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698