Index: Source/core/rendering/RenderMediaControls.cpp |
diff --git a/Source/core/rendering/RenderMediaControls.cpp b/Source/core/rendering/RenderMediaControls.cpp |
index c117c5855460ec9a4fda8bd9008fbc136f61c304..88cb4695732ece8fa6a7315e9de6896f4e769b4c 100644 |
--- a/Source/core/rendering/RenderMediaControls.cpp |
+++ b/Source/core/rendering/RenderMediaControls.cpp |
@@ -334,7 +334,7 @@ static bool paintMediaToggleClosedCaptionsButton(RenderObject* object, const Pai |
static Image* mediaClosedCaptionButton = platformResource("mediaplayerClosedCaption"); |
static Image* mediaClosedCaptionButtonDisabled = platformResource("mediaplayerClosedCaptionDisabled"); |
- if (mediaElement->webkitClosedCaptionsVisible()) |
+ if (mediaElement->closedCaptionsVisible()) |
return paintMediaButton(paintInfo.context, rect, mediaClosedCaptionButton); |
return paintMediaButton(paintInfo.context, rect, mediaClosedCaptionButtonDisabled); |