| 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
|
|
|