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

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

Issue 318803002: Rename Repaint to Paint Invalidation part 3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElementTypes.cpp ('k') | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698