OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 // Allow the theme to format the time. | 305 // Allow the theme to format the time. |
306 m_currentTimeDisplay->setInnerText(RenderTheme::theme().formatMediaControlsC
urrentTime(now, duration), IGNORE_EXCEPTION); | 306 m_currentTimeDisplay->setInnerText(RenderTheme::theme().formatMediaControlsC
urrentTime(now, duration), IGNORE_EXCEPTION); |
307 m_currentTimeDisplay->setCurrentValue(now); | 307 m_currentTimeDisplay->setCurrentValue(now); |
308 } | 308 } |
309 | 309 |
310 void MediaControls::updateVolume() | 310 void MediaControls::updateVolume() |
311 { | 311 { |
312 m_muteButton->updateDisplayType(); | 312 m_muteButton->updateDisplayType(); |
313 if (m_muteButton->renderer()) | 313 if (m_muteButton->renderer()) |
314 m_muteButton->renderer()->repaint(); | 314 m_muteButton->renderer()->paintInvalidationForWholeRenderer(); |
315 | 315 |
316 if (mediaElement().muted()) | 316 if (mediaElement().muted()) |
317 m_volumeSlider->setVolume(0); | 317 m_volumeSlider->setVolume(0); |
318 else | 318 else |
319 m_volumeSlider->setVolume(mediaElement().volume()); | 319 m_volumeSlider->setVolume(mediaElement().volume()); |
320 } | 320 } |
321 | 321 |
322 void MediaControls::changedClosedCaptionsVisibility() | 322 void MediaControls::changedClosedCaptionsVisibility() |
323 { | 323 { |
324 m_toggleClosedCaptionsButton->updateDisplayType(); | 324 m_toggleClosedCaptionsButton->updateDisplayType(); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 visitor->trace(m_muteButton); | 472 visitor->trace(m_muteButton); |
473 visitor->trace(m_volumeSlider); | 473 visitor->trace(m_volumeSlider); |
474 visitor->trace(m_toggleClosedCaptionsButton); | 474 visitor->trace(m_toggleClosedCaptionsButton); |
475 visitor->trace(m_fullScreenButton); | 475 visitor->trace(m_fullScreenButton); |
476 visitor->trace(m_durationDisplay); | 476 visitor->trace(m_durationDisplay); |
477 visitor->trace(m_enclosure); | 477 visitor->trace(m_enclosure); |
478 HTMLDivElement::trace(visitor); | 478 HTMLDivElement::trace(visitor); |
479 } | 479 } |
480 | 480 |
481 } | 481 } |
OLD | NEW |