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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 } | 528 } |
529 | 529 |
530 bool HTMLMediaElement::isMouseFocusable() const | 530 bool HTMLMediaElement::isMouseFocusable() const |
531 { | 531 { |
532 return false; | 532 return false; |
533 } | 533 } |
534 | 534 |
535 void HTMLMediaElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) | 535 void HTMLMediaElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& oldValue, const AtomicString& value) |
536 { | 536 { |
537 if (name == srcAttr) { | 537 if (name == srcAttr) { |
538 WTF_LOG(Media, "HTMLMediaElement::parseAttribute(%p, srcAttr, old=%s, ne
w=%s)", this, oldValue.utf8().data(), value.utf8().data()); | 538 DVLOG(MEDIA_LOG_LEVEL) << "parseAttribute(" << (void*)this << ", srcAttr
, old=" << oldValue << ", new=" << value << ")"; |
539 // Trigger a reload, as long as the 'src' attribute is present. | 539 // Trigger a reload, as long as the 'src' attribute is present. |
540 if (!value.isNull()) { | 540 if (!value.isNull()) { |
541 m_ignorePreloadNone = false; | 541 m_ignorePreloadNone = false; |
542 invokeLoadAlgorithm(); | 542 invokeLoadAlgorithm(); |
543 } | 543 } |
544 } else if (name == controlsAttr) { | 544 } else if (name == controlsAttr) { |
545 UseCounter::count(document(), UseCounter::HTMLMediaElementControlsAttrib
ute); | 545 UseCounter::count(document(), UseCounter::HTMLMediaElementControlsAttrib
ute); |
546 configureMediaControls(); | 546 configureMediaControls(); |
547 } else if (name == preloadAttr) { | 547 } else if (name == preloadAttr) { |
548 setPlayerPreload(); | 548 setPlayerPreload(); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 return m_error; | 668 return m_error; |
669 } | 669 } |
670 | 670 |
671 void HTMLMediaElement::setSrc(const AtomicString& url) | 671 void HTMLMediaElement::setSrc(const AtomicString& url) |
672 { | 672 { |
673 setAttribute(srcAttr, url); | 673 setAttribute(srcAttr, url); |
674 } | 674 } |
675 | 675 |
676 void HTMLMediaElement::setSrcObject(MediaStreamDescriptor* srcObject) | 676 void HTMLMediaElement::setSrcObject(MediaStreamDescriptor* srcObject) |
677 { | 677 { |
678 WTF_LOG(Media, "HTMLMediaElement::setSrcObject(%p)", this); | 678 DVLOG(MEDIA_LOG_LEVEL) << "setSrcObject(" << (void*)this << ")"; |
679 m_srcObject = srcObject; | 679 m_srcObject = srcObject; |
680 invokeLoadAlgorithm(); | 680 invokeLoadAlgorithm(); |
681 } | 681 } |
682 | 682 |
683 HTMLMediaElement::NetworkState HTMLMediaElement::getNetworkState() const | 683 HTMLMediaElement::NetworkState HTMLMediaElement::getNetworkState() const |
684 { | 684 { |
685 return m_networkState; | 685 return m_networkState; |
686 } | 686 } |
687 | 687 |
688 String HTMLMediaElement::canPlayType(const String& mimeType) const | 688 String HTMLMediaElement::canPlayType(const String& mimeType) const |
(...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3881 | 3881 |
3882 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst | 3882 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst |
3883 { | 3883 { |
3884 IntRect result; | 3884 IntRect result; |
3885 if (LayoutObject* object = m_element->layoutObject()) | 3885 if (LayoutObject* object = m_element->layoutObject()) |
3886 result = object->absoluteBoundingBoxRect(); | 3886 result = object->absoluteBoundingBoxRect(); |
3887 return result; | 3887 return result; |
3888 } | 3888 } |
3889 | 3889 |
3890 } // namespace blink | 3890 } // namespace blink |
OLD | NEW |