Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: Source/core/accessibility/AXMediaControls.cpp

Issue 361563003: Remove unneeded and incorrect static_cast in AXMediaControlsContainer::controllingVideoElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed static_cast Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXMediaControls.cpp
diff --git a/Source/core/accessibility/AXMediaControls.cpp b/Source/core/accessibility/AXMediaControls.cpp
index e445b5409a0cdc467165c704312497d7af60cdbb..ad785f2eab6c6152a85f29454299f2f61e41e910 100644
--- a/Source/core/accessibility/AXMediaControls.cpp
+++ b/Source/core/accessibility/AXMediaControls.cpp
@@ -208,12 +208,11 @@ String AXMediaControlsContainer::helpText() const
bool AXMediaControlsContainer::controllingVideoElement() const
{
- if (!m_renderer->node())
+ Node* node = m_renderer->node();
+ if (!node)
return true;
- MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDisplayElement*>(m_renderer->node());
-
- return isHTMLVideoElement(toParentMediaElement(element));
+ return isHTMLVideoElement(toParentMediaElement(node));
}
bool AXMediaControlsContainer::computeAccessibilityIsIgnored() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698