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

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

Issue 2873433003: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: Created 3 years, 7 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 7236302e033dc536640579bb826da73e88410c4c..1add4e03b4f2e1a13ac63a2ed928bb098b1867f2 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* tagImpl) {
static bool mediaAttributeMatches(const MediaValuesCached& mediaValues,
const String& attributeValue) {
- MediaQuerySet* mediaQueries = MediaQuerySet::create(attributeValue);
+ RefPtr<MediaQuerySet> mediaQueries = MediaQuerySet::create(attributeValue);
MediaQueryEvaluator mediaQueryEvaluator(mediaValues);
- return mediaQueryEvaluator.eval(mediaQueries);
+ return mediaQueryEvaluator.eval(*mediaQueries);
}
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