| 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 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2346 | 2346 |
| 2347 void HTMLMediaElement::exitFullscreen() | 2347 void HTMLMediaElement::exitFullscreen() |
| 2348 { | 2348 { |
| 2349 } | 2349 } |
| 2350 | 2350 |
| 2351 blink::WebLayer* HTMLMediaElement::platformLayer() const | 2351 blink::WebLayer* HTMLMediaElement::platformLayer() const |
| 2352 { | 2352 { |
| 2353 return m_webLayer; | 2353 return m_webLayer; |
| 2354 } | 2354 } |
| 2355 | 2355 |
| 2356 unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const | |
| 2357 { | |
| 2358 if (!webMediaPlayer()) | |
| 2359 return 0; | |
| 2360 return webMediaPlayer()->audioDecodedByteCount(); | |
| 2361 } | |
| 2362 | |
| 2363 unsigned HTMLMediaElement::webkitVideoDecodedByteCount() const | |
| 2364 { | |
| 2365 if (!webMediaPlayer()) | |
| 2366 return 0; | |
| 2367 return webMediaPlayer()->videoDecodedByteCount(); | |
| 2368 } | |
| 2369 | |
| 2370 bool HTMLMediaElement::isURLAttribute(const Attribute& attribute) const | 2356 bool HTMLMediaElement::isURLAttribute(const Attribute& attribute) const |
| 2371 { | 2357 { |
| 2372 return attribute.name() == HTMLNames::srcAttr || HTMLElement::isURLAttribute
(attribute); | 2358 return attribute.name() == HTMLNames::srcAttr || HTMLElement::isURLAttribute
(attribute); |
| 2373 } | 2359 } |
| 2374 | 2360 |
| 2375 void HTMLMediaElement::setShouldDelayLoadEvent(bool shouldDelay) | 2361 void HTMLMediaElement::setShouldDelayLoadEvent(bool shouldDelay) |
| 2376 { | 2362 { |
| 2377 if (m_shouldDelayLoadEvent == shouldDelay) | 2363 if (m_shouldDelayLoadEvent == shouldDelay) |
| 2378 return; | 2364 return; |
| 2379 | 2365 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 visitor->trace(m_error); | 2565 visitor->trace(m_error); |
| 2580 visitor->trace(m_currentSourceNode); | 2566 visitor->trace(m_currentSourceNode); |
| 2581 visitor->trace(m_nextChildNodeToConsider); | 2567 visitor->trace(m_nextChildNodeToConsider); |
| 2582 visitor->trace(m_mediaSource); | 2568 visitor->trace(m_mediaSource); |
| 2583 visitor->trace(m_mediaController); | 2569 visitor->trace(m_mediaController); |
| 2584 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); | 2570 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); |
| 2585 HTMLElement::trace(visitor); | 2571 HTMLElement::trace(visitor); |
| 2586 } | 2572 } |
| 2587 | 2573 |
| 2588 } | 2574 } |
| OLD | NEW |