Index: Source/core/html/HTMLLinkElement.cpp |
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp |
index 2627d594e0221f4bc9c9b7c44507a3ba89f1c53c..550c6fa14504d620b790f811aabcaaa1394dcc56 100644 |
--- a/Source/core/html/HTMLLinkElement.cpp |
+++ b/Source/core/html/HTMLLinkElement.cpp |
@@ -600,7 +600,7 @@ void LinkStyle::process() |
bool mediaQueryMatches = true; |
if (!m_owner->media().isEmpty()) { |
- RefPtr<RenderStyle> documentStyle = StyleResolver::styleForDocument(&document()); |
+ RefPtr<RenderStyle> documentStyle = StyleResolver::styleForDocument(document()); |
RefPtr<MediaQuerySet> media = MediaQuerySet::create(m_owner->media()); |
MediaQueryEvaluator evaluator(document().frame()->view()->mediaType(), document().frame(), documentStyle.get()); |
mediaQueryMatches = evaluator.eval(media.get()); |