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

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

Issue 2857603002: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: 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 05ffc6b464cbc334cfba759883037467daee38c3..4e36922c70355d078e08abda081bd83964d47f30 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