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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.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/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index 1e70376b085b71e0f6af6f9c927b52a00195cbe3..37ae8541c209c0802f85dfbae948e2f06e370829 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -305,9 +305,9 @@ LinkStyle::LoadReturnValue LinkStyle::LoadStylesheetIfNeeded(
bool media_query_matches = true;
LocalFrame* frame = LoadingFrame();
if (!owner_->Media().IsEmpty() && frame) {
- MediaQuerySet* media = MediaQuerySet::Create(owner_->Media());
+ RefPtr<MediaQuerySet> media = MediaQuerySet::Create(owner_->Media());
MediaQueryEvaluator evaluator(frame);
- media_query_matches = evaluator.Eval(media);
+ media_query_matches = evaluator.Eval(*media);
}
// Don't hold up layout tree construction and script execution on

Powered by Google App Engine
This is Rietveld 408576698