Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: Source/core/html/shadow/MediaControlElements.cpp

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/shadow/DetailsMarkerControl.cpp ('k') | Source/core/html/shadow/MeterShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698