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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2420633002: [Cast] Refresh cast button visibility when disableRemotePlayback attribute changes (Closed)
Patch Set: Refresh visibility only when the attribute's value changes Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp » ('j') | 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 invokeLoadAlgorithm(); 583 invokeLoadAlgorithm();
584 } 584 }
585 } else if (name == controlsAttr) { 585 } else if (name == controlsAttr) {
586 UseCounter::count(document(), 586 UseCounter::count(document(),
587 UseCounter::HTMLMediaElementControlsAttribute); 587 UseCounter::HTMLMediaElementControlsAttribute);
588 configureMediaControls(); 588 configureMediaControls();
589 } else if (name == preloadAttr) { 589 } else if (name == preloadAttr) {
590 setPlayerPreload(); 590 setPlayerPreload();
591 } else if (name == disableremoteplaybackAttr) { 591 } else if (name == disableremoteplaybackAttr) {
592 UseCounter::count(document(), UseCounter::DisableRemotePlaybackAttribute); 592 UseCounter::count(document(), UseCounter::DisableRemotePlaybackAttribute);
593 if (mediaControls() && (oldValue != value))
594 mediaControls()->refreshCastButtonVisibility();
593 } else { 595 } else {
594 HTMLElement::parseAttribute(name, oldValue, value); 596 HTMLElement::parseAttribute(name, oldValue, value);
595 } 597 }
596 } 598 }
597 599
598 void HTMLMediaElement::finishParsingChildren() { 600 void HTMLMediaElement::finishParsingChildren() {
599 HTMLElement::finishParsingChildren(); 601 HTMLElement::finishParsingChildren();
600 602
601 if (Traversal<HTMLTrackElement>::firstChild(*this)) 603 if (Traversal<HTMLTrackElement>::firstChild(*this))
602 scheduleTextTrackResourceLoad(); 604 scheduleTextTrackResourceLoad();
(...skipping 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
4090 4092
4091 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() 4093 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect()
4092 const { 4094 const {
4093 IntRect result; 4095 IntRect result;
4094 if (LayoutObject* object = m_element->layoutObject()) 4096 if (LayoutObject* object = m_element->layoutObject())
4095 result = object->absoluteBoundingBoxRect(); 4097 result = object->absoluteBoundingBoxRect();
4096 return result; 4098 return result;
4097 } 4099 }
4098 4100
4099 } // namespace blink 4101 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698