Index: Source/core/css/CSSDefaultStyleSheets.cpp |
diff --git a/Source/core/css/CSSDefaultStyleSheets.cpp b/Source/core/css/CSSDefaultStyleSheets.cpp |
index 06bef8c7b0d0d4a962dac29e748d368045a65263..5e60f0f9801ee1a160d68679e4e753d48b4906a0 100644 |
--- a/Source/core/css/CSSDefaultStyleSheets.cpp |
+++ b/Source/core/css/CSSDefaultStyleSheets.cpp |
@@ -35,6 +35,7 @@ |
#include "core/css/StyleSheetContents.h" |
#include "core/dom/FullscreenController.h" |
#include "core/html/HTMLAnchorElement.h" |
+#include "core/html/HTMLVideoElement.h" |
#include "core/rendering/RenderTheme.h" |
namespace WebCore { |
@@ -166,7 +167,7 @@ void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(Element* element, |
changedDefaultStyle = true; |
} |
- if (!mediaControlsStyleSheet && (element->hasTagName(videoTag) || element->hasTagName(audioTag))) { |
+ if (!mediaControlsStyleSheet && (isHTMLVideoElement(element) || element->hasTagName(audioTag))) { |
String mediaRules = String(mediaControlsUserAgentStyleSheet, sizeof(mediaControlsUserAgentStyleSheet)) + RenderTheme::themeForPage(element->document()->page())->extraMediaControlsStyleSheet(); |
mediaControlsStyleSheet = parseUASheet(mediaRules); |
defaultStyle->addRulesFromSheet(mediaControlsStyleSheet, screenEval()); |