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

Unified Diff: Source/core/html/parser/HTMLDocumentParser.cpp

Issue 224733011: A sizes attribute parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp
index 7909722b9be07a3b968044c2fb15aa214b7dc6bb..519cbb512246f6f74007215f4d0b25508fbf9ec9 100644
--- a/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -540,7 +540,8 @@ Document* HTMLDocumentParser::contextForParsingSession()
static PassRefPtr<MediaValues> createMediaValues(Document* document)
{
- RefPtr<MediaValues> mediaValues = MediaValues::create(document, MediaValues::CachingMode);
+ ASSERT(document);
+ RefPtr<MediaValues> mediaValues = MediaValues::create(*document, MediaValues::CachingMode);
ASSERT(mediaValues->isSafeToSendToAnotherThread());
return mediaValues;
}

Powered by Google App Engine
This is Rietveld 408576698