Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
index 92e8830a36bec9c65a8106c62c249708ae7c0247..f7e83a88fd10023bf58cf19b8e6655312c8fac2a 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
@@ -150,10 +150,10 @@ StyleResolver::StyleResolver(Document& document) |
{ |
FrameView* view = document.view(); |
if (view) { |
- m_medium = adoptPtr(new MediaQueryEvaluator(&view->frame())); |
+ m_medium = adoptPtrWillBeNoop(new MediaQueryEvaluator(&view->frame())); |
m_printMediaType = equalIgnoringCase(view->mediaType(), MediaTypeNames::print); |
} else { |
- m_medium = adoptPtr(new MediaQueryEvaluator("all")); |
+ m_medium = adoptPtrWillBeNoop(new MediaQueryEvaluator("all")); |
} |
initWatchedSelectorRules(); |
@@ -1548,6 +1548,7 @@ DEFINE_TRACE(StyleResolver) |
{ |
#if ENABLE(OILPAN) |
visitor->trace(m_matchedPropertiesCache); |
+ visitor->trace(m_medium); |
visitor->trace(m_viewportDependentMediaQueryResults); |
visitor->trace(m_selectorFilter); |
visitor->trace(m_viewportStyleResolver); |