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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.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/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index 2dc4d0b15e12489cf326ffaeee026da6b6bd8092..3f2bef5d3a6eda980f06d5040570e36630491446 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -313,9 +313,9 @@ LinkStyle::LoadReturnValue LinkStyle::loadStylesheetIfNeeded(
bool mediaQueryMatches = true;
LocalFrame* frame = loadingFrame();
if (!m_owner->media().isEmpty() && frame) {
- MediaQuerySet* media = MediaQuerySet::create(m_owner->media());
+ RefPtr<MediaQuerySet> media = MediaQuerySet::create(m_owner->media());
MediaQueryEvaluator evaluator(frame);
- mediaQueryMatches = evaluator.eval(media);
+ mediaQueryMatches = evaluator.eval(*media);
}
// Don't hold up layout tree construction and script execution on

Powered by Google App Engine
This is Rietveld 408576698