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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
index 0a7c3688b52f8c0b873f4f5ab1e1e3ece8243b56..a3c3c56970c06fd34ab2a8d357dc237605297900 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -245,7 +245,7 @@ void BackgroundHTMLParser::pumpTokenizer()
CompactHTMLToken token(m_token.get(), position);
- m_preloadScanner->scan(token, m_input.current(), m_pendingPreloads);
+ m_preloadScanner->scan(token, m_input.current(), m_pendingPreloads, &m_viewportDescription);
simulatedToken = m_treeBuilderSimulator.simulate(token, m_tokenizer.get());
// Break chunks before a script tag is inserted and flag the chunk as starting a script
@@ -282,6 +282,8 @@ void BackgroundHTMLParser::sendTokensToMainThread()
OwnPtr<HTMLDocumentParser::ParsedChunk> chunk = adoptPtr(new HTMLDocumentParser::ParsedChunk);
chunk->preloads.swap(m_pendingPreloads);
+ if (m_viewportDescription.set)
+ chunk->viewport = m_viewportDescription;
chunk->xssInfos.swap(m_pendingXSSInfos);
chunk->tokenizerState = m_tokenizer->getState();
chunk->treeBuilderState = m_treeBuilderSimulator.state();

Powered by Google App Engine
This is Rietveld 408576698