Index: Source/core/css/CSSDefaultStyleSheets.cpp |
diff --git a/Source/core/css/CSSDefaultStyleSheets.cpp b/Source/core/css/CSSDefaultStyleSheets.cpp |
index 4b4f5aa698f294175ebb0a3f0c5905ade43e89f9..00676c20c59b10f7d562167ec844e1b2fe2035c6 100644 |
--- a/Source/core/css/CSSDefaultStyleSheets.cpp |
+++ b/Source/core/css/CSSDefaultStyleSheets.cpp |
@@ -156,7 +156,10 @@ void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(const Element& el |
// FIXME: We should assert that this sheet only contains rules for <video> and <audio>. |
if (!m_mediaControlsStyleSheet && (isHTMLVideoElement(element) || isHTMLAudioElement(element))) { |
- String mediaRules = loadResourceAsASCIIString("mediaControls.css") + LayoutTheme::theme().extraMediaControlsStyleSheet(); |
+ String mediaRules = loadResourceAsASCIIString( |
+ RuntimeEnabledFeatures::newMediaPlaybackUiEnabled() ? |
+ "mediaControlsNew.css" : "mediaControls.css") + |
+ LayoutTheme::theme().extraMediaControlsStyleSheet(); |
m_mediaControlsStyleSheet = parseUASheet(mediaRules); |
m_defaultStyle->addRulesFromSheet(mediaControlsStyleSheet(), screenEval()); |
m_defaultPrintStyle->addRulesFromSheet(mediaControlsStyleSheet(), printEval()); |