| OLD | NEW |
| 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 3837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3848 void HTMLMediaElement::applyMediaFragmentURI() | 3848 void HTMLMediaElement::applyMediaFragmentURI() |
| 3849 { | 3849 { |
| 3850 if (m_fragmentStartTime != MediaPlayer::invalidTime()) { | 3850 if (m_fragmentStartTime != MediaPlayer::invalidTime()) { |
| 3851 m_sentEndEvent = false; | 3851 m_sentEndEvent = false; |
| 3852 seek(m_fragmentStartTime, IGNORE_EXCEPTION); | 3852 seek(m_fragmentStartTime, IGNORE_EXCEPTION); |
| 3853 } | 3853 } |
| 3854 } | 3854 } |
| 3855 | 3855 |
| 3856 MediaPlayerClient::CORSMode HTMLMediaElement::mediaPlayerCORSMode() const | 3856 MediaPlayerClient::CORSMode HTMLMediaElement::mediaPlayerCORSMode() const |
| 3857 { | 3857 { |
| 3858 if (!fastHasAttribute(HTMLNames::crossoriginAttr)) | 3858 if (!fastHasAttribute(crossoriginAttr)) |
| 3859 return Unspecified; | 3859 return Unspecified; |
| 3860 if (equalIgnoringCase(fastGetAttribute(HTMLNames::crossoriginAttr), "use-cre
dentials")) | 3860 if (equalIgnoringCase(fastGetAttribute(crossoriginAttr), "use-credentials")) |
| 3861 return UseCredentials; | 3861 return UseCredentials; |
| 3862 return Anonymous; | 3862 return Anonymous; |
| 3863 } | 3863 } |
| 3864 | 3864 |
| 3865 void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture() | 3865 void HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture() |
| 3866 { | 3866 { |
| 3867 m_restrictions = NoRestrictions; | 3867 m_restrictions = NoRestrictions; |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 void HTMLMediaElement::mediaPlayerScheduleLayerUpdate() | 3870 void HTMLMediaElement::mediaPlayerScheduleLayerUpdate() |
| 3871 { | 3871 { |
| 3872 scheduleLayerUpdate(); | 3872 scheduleLayerUpdate(); |
| 3873 } | 3873 } |
| 3874 | 3874 |
| 3875 bool HTMLMediaElement::isInteractiveContent() const | 3875 bool HTMLMediaElement::isInteractiveContent() const |
| 3876 { | 3876 { |
| 3877 return fastHasAttribute(controlsAttr); | 3877 return fastHasAttribute(controlsAttr); |
| 3878 } | 3878 } |
| 3879 | 3879 |
| 3880 } | 3880 } |
| OLD | NEW |