Index: Source/web/ContextMenuClientImpl.cpp |
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp |
index 7dbf1ba9dadf60efe4f03278582e41497e11a5f7..1a60351476fa03f23cb25ce473553eb6f4b921ac 100644 |
--- a/Source/web/ContextMenuClientImpl.cpp |
+++ b/Source/web/ContextMenuClientImpl.cpp |
@@ -258,7 +258,7 @@ void ContextMenuClientImpl::showContextMenu(const WebCore::ContextMenu* defaultM |
// toggling is ignored in that case. |
if (mediaElement->hasVideo() && !mediaElement->isFullscreen()) |
data.mediaFlags |= WebContextMenuData::MediaCanToggleControls; |
- if (mediaElement->controls()) |
+ if (mediaElement->shouldShowControls()) |
data.mediaFlags |= WebContextMenuData::MediaControls; |
} else if (isHTMLObjectElement(*r.innerNonSharedNode()) || isHTMLEmbedElement(*r.innerNonSharedNode())) { |
RenderObject* object = r.innerNonSharedNode()->renderer(); |