Index: Source/core/css/CSSDefaultStyleSheets.cpp |
diff --git a/Source/core/css/CSSDefaultStyleSheets.cpp b/Source/core/css/CSSDefaultStyleSheets.cpp |
index 7061f9b3dbe9edcfa99df0ede71d7a42d9daf511..8b45af379f384f5f84da49cb8dfc29b35ab39704 100644 |
--- a/Source/core/css/CSSDefaultStyleSheets.cpp |
+++ b/Source/core/css/CSSDefaultStyleSheets.cpp |
@@ -176,7 +176,7 @@ void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, |
changedDefaultStyle = true; |
} |
- if (!fullscreenStyleSheet && FullscreenElementStack::isFullScreen(element->document())) { |
+ if (!fullscreenStyleSheet && FullscreenElementStack::isFullScreen(&element->document())) { |
String fullscreenRules = String(fullscreenUserAgentStyleSheet, sizeof(fullscreenUserAgentStyleSheet)) + RenderTheme::theme().extraFullScreenStyleSheet(); |
fullscreenStyleSheet = parseUASheet(fullscreenRules); |
defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval()); |