OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 return queryString(controllingVideoElement() ? WebLocalizedString::AXMediaVi
deoElementHelp : WebLocalizedString::AXMediaAudioElementHelp); | 222 return queryString(controllingVideoElement() ? WebLocalizedString::AXMediaVi
deoElementHelp : WebLocalizedString::AXMediaAudioElementHelp); |
223 } | 223 } |
224 | 224 |
225 bool AXMediaControlsContainer::controllingVideoElement() const | 225 bool AXMediaControlsContainer::controllingVideoElement() const |
226 { | 226 { |
227 if (!m_renderer->node()) | 227 if (!m_renderer->node()) |
228 return true; | 228 return true; |
229 | 229 |
230 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); | 230 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); |
231 | 231 |
232 return toParentMediaElement(element)->isVideo(); | 232 return isHTMLVideoElement(toParentMediaElement(element)); |
233 } | 233 } |
234 | 234 |
235 bool AXMediaControlsContainer::computeAccessibilityIsIgnored() const | 235 bool AXMediaControlsContainer::computeAccessibilityIsIgnored() const |
236 { | 236 { |
237 return accessibilityIsIgnoredByDefault(); | 237 return accessibilityIsIgnoredByDefault(); |
238 } | 238 } |
239 | 239 |
240 // | 240 // |
241 // AccessibilityMediaTimeline | 241 // AccessibilityMediaTimeline |
242 | 242 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 { | 307 { |
308 if (!m_renderer || !m_renderer->node()) | 308 if (!m_renderer || !m_renderer->node()) |
309 return String(); | 309 return String(); |
310 | 310 |
311 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); | 311 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); |
312 float time = element->currentValue(); | 312 float time = element->currentValue(); |
313 return localizedMediaTimeDescription(fabsf(time)); | 313 return localizedMediaTimeDescription(fabsf(time)); |
314 } | 314 } |
315 | 315 |
316 } // namespace WebCore | 316 } // namespace WebCore |
OLD | NEW |