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

Side by Side Diff: Source/core/html/shadow/MediaControls.cpp

Issue 16132004: Have to invalidate the mute button when changing the volume (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test failure. that was a silly mistake. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/repaint/video-unmute-repaint-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 void MediaControls::changedMute() 219 void MediaControls::changedMute()
220 { 220 {
221 m_panelMuteButton->changedMute(); 221 m_panelMuteButton->changedMute();
222 } 222 }
223 223
224 void MediaControls::changedVolume() 224 void MediaControls::changedVolume()
225 { 225 {
226 if (m_volumeSlider) 226 if (m_volumeSlider)
227 m_volumeSlider->setVolume(m_mediaController->volume()); 227 m_volumeSlider->setVolume(m_mediaController->volume());
228 if (m_panelMuteButton && m_panelMuteButton->renderer())
229 m_panelMuteButton->renderer()->repaint();
228 } 230 }
229 231
230 void MediaControls::changedClosedCaptionsVisibility() 232 void MediaControls::changedClosedCaptionsVisibility()
231 { 233 {
232 if (m_toggleClosedCaptionsButton) 234 if (m_toggleClosedCaptionsButton)
233 m_toggleClosedCaptionsButton->updateDisplayType(); 235 m_toggleClosedCaptionsButton->updateDisplayType();
234 } 236 }
235 237
236 void MediaControls::refreshClosedCaptionsButtonVisibility() 238 void MediaControls::refreshClosedCaptionsButtonVisibility()
237 { 239 {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 379
378 void MediaControls::updateTextTrackDisplay() 380 void MediaControls::updateTextTrackDisplay()
379 { 381 {
380 if (!m_textDisplayContainer) 382 if (!m_textDisplayContainer)
381 createTextTrackDisplay(); 383 createTextTrackDisplay();
382 384
383 m_textDisplayContainer->updateDisplay(); 385 m_textDisplayContainer->updateDisplay();
384 } 386 }
385 387
386 } 388 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/video-unmute-repaint-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698