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

Side by Side Diff: Source/core/html/HTMLMediaElement.cpp

Issue 320103005: Delete RenderLayerCompositor::m_compositingLayersNeedRebuild (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less wrong code Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerStackingNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3195 matching lines...) Expand 10 before | Expand all | Expand 10 after
3206 WTF_LOG(Media, "HTMLMediaElement::exitFullscreen"); 3206 WTF_LOG(Media, "HTMLMediaElement::exitFullscreen");
3207 3207
3208 FullscreenElementStack::from(document()).webkitCancelFullScreen(); 3208 FullscreenElementStack::from(document()).webkitCancelFullScreen();
3209 } 3209 }
3210 3210
3211 void HTMLMediaElement::didBecomeFullscreenElement() 3211 void HTMLMediaElement::didBecomeFullscreenElement()
3212 { 3212 {
3213 if (hasMediaControls()) 3213 if (hasMediaControls())
3214 mediaControls()->enteredFullscreen(); 3214 mediaControls()->enteredFullscreen();
3215 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoEl ement(*this)) 3215 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoEl ement(*this))
3216 document().renderView()->compositor()->setCompositingLayersNeedRebuild() ; 3216 document().renderView()->compositor()->setNeedsCompositingUpdate(Composi tingUpdateRebuildTree);
3217 } 3217 }
3218 3218
3219 void HTMLMediaElement::willStopBeingFullscreenElement() 3219 void HTMLMediaElement::willStopBeingFullscreenElement()
3220 { 3220 {
3221 if (hasMediaControls()) 3221 if (hasMediaControls())
3222 mediaControls()->exitedFullscreen(); 3222 mediaControls()->exitedFullscreen();
3223 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoEl ement(*this)) 3223 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoEl ement(*this))
3224 document().renderView()->compositor()->setCompositingLayersNeedRebuild() ; 3224 document().renderView()->compositor()->setNeedsCompositingUpdate(Composi tingUpdateRebuildTree);
3225 } 3225 }
3226 3226
3227 blink::WebLayer* HTMLMediaElement::platformLayer() const 3227 blink::WebLayer* HTMLMediaElement::platformLayer() const
3228 { 3228 {
3229 return m_webLayer; 3229 return m_webLayer;
3230 } 3230 }
3231 3231
3232 bool HTMLMediaElement::hasClosedCaptions() const 3232 bool HTMLMediaElement::hasClosedCaptions() const
3233 { 3233 {
3234 if (m_textTracks) { 3234 if (m_textTracks) {
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
3654 visitor->trace(m_error); 3654 visitor->trace(m_error);
3655 visitor->trace(m_currentSourceNode); 3655 visitor->trace(m_currentSourceNode);
3656 visitor->trace(m_nextChildNodeToConsider); 3656 visitor->trace(m_nextChildNodeToConsider);
3657 visitor->trace(m_textTracks); 3657 visitor->trace(m_textTracks);
3658 visitor->trace(m_textTracksWhenResourceSelectionBegan); 3658 visitor->trace(m_textTracksWhenResourceSelectionBegan);
3659 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); 3659 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor);
3660 HTMLElement::trace(visitor); 3660 HTMLElement::trace(visitor);
3661 } 3661 }
3662 3662
3663 } 3663 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerStackingNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698