OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights 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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 659 |
660 PassRefPtr<MediaControlTextTrackContainerElement> MediaControlTextTrackContainer
Element::create(Document* document) | 660 PassRefPtr<MediaControlTextTrackContainerElement> MediaControlTextTrackContainer
Element::create(Document* document) |
661 { | 661 { |
662 RefPtr<MediaControlTextTrackContainerElement> element = adoptRef(new MediaCo
ntrolTextTrackContainerElement(document)); | 662 RefPtr<MediaControlTextTrackContainerElement> element = adoptRef(new MediaCo
ntrolTextTrackContainerElement(document)); |
663 element->hide(); | 663 element->hide(); |
664 return element.release(); | 664 return element.release(); |
665 } | 665 } |
666 | 666 |
667 RenderObject* MediaControlTextTrackContainerElement::createRenderer(RenderStyle*
) | 667 RenderObject* MediaControlTextTrackContainerElement::createRenderer(RenderStyle*
) |
668 { | 668 { |
669 return new (document()->renderArena()) RenderTextTrackContainerElement(this)
; | 669 return new RenderTextTrackContainerElement(this); |
670 } | 670 } |
671 | 671 |
672 const AtomicString& MediaControlTextTrackContainerElement::textTrackContainerEle
mentShadowPseudoId() | 672 const AtomicString& MediaControlTextTrackContainerElement::textTrackContainerEle
mentShadowPseudoId() |
673 { | 673 { |
674 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-text-track-container",
AtomicString::ConstructFromLiteral)); | 674 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-text-track-container",
AtomicString::ConstructFromLiteral)); |
675 return id; | 675 return id; |
676 } | 676 } |
677 | 677 |
678 const AtomicString& MediaControlTextTrackContainerElement::shadowPseudoId() cons
t | 678 const AtomicString& MediaControlTextTrackContainerElement::shadowPseudoId() cons
t |
679 { | 679 { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 CueList activeCues = mediaElement->currentlyActiveCues(); | 804 CueList activeCues = mediaElement->currentlyActiveCues(); |
805 for (size_t i = 0; i < activeCues.size(); ++i) { | 805 for (size_t i = 0; i < activeCues.size(); ++i) { |
806 TextTrackCue* cue = activeCues[i].data(); | 806 TextTrackCue* cue = activeCues[i].data(); |
807 cue->videoSizeDidChange(m_videoDisplaySize.size()); | 807 cue->videoSizeDidChange(m_videoDisplaySize.size()); |
808 } | 808 } |
809 } | 809 } |
810 | 810 |
811 // ---------------------------- | 811 // ---------------------------- |
812 | 812 |
813 } // namespace WebCore | 813 } // namespace WebCore |
OLD | NEW |