| 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 { | 665 { |
| 666 } | 666 } |
| 667 | 667 |
| 668 PassRefPtr<MediaControlTextTrackContainerElement> MediaControlTextTrackContainer
Element::create(Document* document) | 668 PassRefPtr<MediaControlTextTrackContainerElement> MediaControlTextTrackContainer
Element::create(Document* document) |
| 669 { | 669 { |
| 670 RefPtr<MediaControlTextTrackContainerElement> element = adoptRef(new MediaCo
ntrolTextTrackContainerElement(document)); | 670 RefPtr<MediaControlTextTrackContainerElement> element = adoptRef(new MediaCo
ntrolTextTrackContainerElement(document)); |
| 671 element->hide(); | 671 element->hide(); |
| 672 return element.release(); | 672 return element.release(); |
| 673 } | 673 } |
| 674 | 674 |
| 675 RenderObject* MediaControlTextTrackContainerElement::createRenderer(RenderArena*
arena, RenderStyle*) | 675 RenderObject* MediaControlTextTrackContainerElement::createRenderer(RenderStyle*
) |
| 676 { | 676 { |
| 677 return new (arena) RenderTextTrackContainerElement(this); | 677 return new RenderTextTrackContainerElement(this); |
| 678 } | 678 } |
| 679 | 679 |
| 680 const AtomicString& MediaControlTextTrackContainerElement::textTrackContainerEle
mentShadowPseudoId() | 680 const AtomicString& MediaControlTextTrackContainerElement::textTrackContainerEle
mentShadowPseudoId() |
| 681 { | 681 { |
| 682 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-text-track-container",
AtomicString::ConstructFromLiteral)); | 682 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-text-track-container",
AtomicString::ConstructFromLiteral)); |
| 683 return id; | 683 return id; |
| 684 } | 684 } |
| 685 | 685 |
| 686 const AtomicString& MediaControlTextTrackContainerElement::shadowPseudoId() cons
t | 686 const AtomicString& MediaControlTextTrackContainerElement::shadowPseudoId() cons
t |
| 687 { | 687 { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 CueList activeCues = mediaElement->currentlyActiveCues(); | 812 CueList activeCues = mediaElement->currentlyActiveCues(); |
| 813 for (size_t i = 0; i < activeCues.size(); ++i) { | 813 for (size_t i = 0; i < activeCues.size(); ++i) { |
| 814 TextTrackCue* cue = activeCues[i].data(); | 814 TextTrackCue* cue = activeCues[i].data(); |
| 815 cue->videoSizeDidChange(m_videoDisplaySize.size()); | 815 cue->videoSizeDidChange(m_videoDisplaySize.size()); |
| 816 } | 816 } |
| 817 } | 817 } |
| 818 | 818 |
| 819 // ---------------------------- | 819 // ---------------------------- |
| 820 | 820 |
| 821 } // namespace WebCore | 821 } // namespace WebCore |
| OLD | NEW |