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

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

Issue 41343003: Remove dead code for reflected attributes on <audio>, <video> and <track> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLTrackElement.h » ('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 reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 // The ended attribute must return true if the media element has ended 2053 // The ended attribute must return true if the media element has ended
2054 // playback and the direction of playback is forwards, and false otherwise. 2054 // playback and the direction of playback is forwards, and false otherwise.
2055 return endedPlayback() && m_playbackRate > 0; 2055 return endedPlayback() && m_playbackRate > 0;
2056 } 2056 }
2057 2057
2058 bool HTMLMediaElement::autoplay() const 2058 bool HTMLMediaElement::autoplay() const
2059 { 2059 {
2060 return fastHasAttribute(autoplayAttr); 2060 return fastHasAttribute(autoplayAttr);
2061 } 2061 }
2062 2062
2063 void HTMLMediaElement::setAutoplay(bool b)
2064 {
2065 LOG(Media, "HTMLMediaElement::setAutoplay(%s)", boolString(b));
2066 setBooleanAttribute(autoplayAttr, b);
2067 }
2068
2069 String HTMLMediaElement::preload() const 2063 String HTMLMediaElement::preload() const
2070 { 2064 {
2071 switch (m_preload) { 2065 switch (m_preload) {
2072 case MediaPlayer::None: 2066 case MediaPlayer::None:
2073 return "none"; 2067 return "none";
2074 break; 2068 break;
2075 case MediaPlayer::MetaData: 2069 case MediaPlayer::MetaData:
2076 return "metadata"; 2070 return "metadata";
2077 break; 2071 break;
2078 case MediaPlayer::Auto: 2072 case MediaPlayer::Auto:
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3876 { 3870 {
3877 scheduleLayerUpdate(); 3871 scheduleLayerUpdate();
3878 } 3872 }
3879 3873
3880 bool HTMLMediaElement::isInteractiveContent() const 3874 bool HTMLMediaElement::isInteractiveContent() const
3881 { 3875 {
3882 return fastHasAttribute(controlsAttr); 3876 return fastHasAttribute(controlsAttr);
3883 } 3877 }
3884 3878
3885 } 3879 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLTrackElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698