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

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

Issue 227043007: CSS Length calculation with MediaValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sizes_parser3
Patch Set: Fix debug compile issue 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
« no previous file with comments | « Source/core/css/MediaValues.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/core/css/MediaValues.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698