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

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

Issue 2837023005: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: fix Created 3 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: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
index afbd37486b3cc38d4e9b356f3454e707d2db2dc4..101d5c9085a1b586f010474106088efe24a8a01d 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
@@ -127,9 +127,9 @@ static String InitiatorFor(const StringImpl* tag_impl) {
static bool MediaAttributeMatches(const MediaValuesCached& media_values,
const String& attribute_value) {
- MediaQuerySet* media_queries = MediaQuerySet::Create(attribute_value);
+ RefPtr<MediaQuerySet> media_queries = MediaQuerySet::Create(attribute_value);
MediaQueryEvaluator media_query_evaluator(media_values);
- return media_query_evaluator.Eval(media_queries);
+ return media_query_evaluator.Eval(*media_queries);
}
class TokenPreloadScanner::StartTagScanner {
« no previous file with comments | « third_party/WebKit/Source/core/html/LinkStyle.cpp ('k') | third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698