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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 476763004: Rename FullscreenElementStack to just Fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/testing/Internals.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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 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 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "core/rendering/compositing/RenderLayerCompositor.h" 28 #include "core/rendering/compositing/RenderLayerCompositor.h"
29 29
30 #include "core/animation/DocumentAnimations.h" 30 #include "core/animation/DocumentAnimations.h"
31 #include "core/dom/FullscreenElementStack.h" 31 #include "core/dom/Fullscreen.h"
32 #include "core/frame/FrameView.h" 32 #include "core/frame/FrameView.h"
33 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
34 #include "core/frame/Settings.h" 34 #include "core/frame/Settings.h"
35 #include "core/html/HTMLIFrameElement.h" 35 #include "core/html/HTMLIFrameElement.h"
36 #include "core/inspector/InspectorInstrumentation.h" 36 #include "core/inspector/InspectorInstrumentation.h"
37 #include "core/inspector/InspectorNodeIds.h" 37 #include "core/inspector/InspectorNodeIds.h"
38 #include "core/page/Chrome.h" 38 #include "core/page/Chrome.h"
39 #include "core/page/ChromeClient.h" 39 #include "core/page/ChromeClient.h"
40 #include "core/page/Page.h" 40 #include "core/page/Page.h"
41 #include "core/page/scrolling/ScrollingCoordinator.h" 41 #include "core/page/scrolling/ScrollingCoordinator.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 bool RenderLayerCompositor::acceleratedCompositingForOverflowScrollEnabled() con st 161 bool RenderLayerCompositor::acceleratedCompositingForOverflowScrollEnabled() con st
162 { 162 {
163 return m_compositingReasonFinder.hasOverflowScrollTrigger(); 163 return m_compositingReasonFinder.hasOverflowScrollTrigger();
164 } 164 }
165 165
166 static RenderVideo* findFullscreenVideoRenderer(Document& document) 166 static RenderVideo* findFullscreenVideoRenderer(Document& document)
167 { 167 {
168 // Recursively find the document that is in fullscreen. 168 // Recursively find the document that is in fullscreen.
169 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d ocument); 169 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document);
170 Document* contentDocument = &document; 170 Document* contentDocument = &document;
171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { 171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) {
172 contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->contentDoc ument(); 172 contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->contentDoc ument();
173 if (!contentDocument) 173 if (!contentDocument)
174 return 0; 174 return 0;
175 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte ntDocument); 175 fullscreenElement = Fullscreen::fullscreenElementFrom(*contentDocument);
176 } 176 }
177 // Get the current fullscreen element from the document. 177 // Get the current fullscreen element from the document.
178 fullscreenElement = FullscreenElementStack::currentFullScreenElementFrom(*co ntentDocument); 178 fullscreenElement = Fullscreen::currentFullScreenElementFrom(*contentDocumen t);
179 if (!isHTMLVideoElement(fullscreenElement)) 179 if (!isHTMLVideoElement(fullscreenElement))
180 return 0; 180 return 0;
181 RenderObject* renderer = fullscreenElement->renderer(); 181 RenderObject* renderer = fullscreenElement->renderer();
182 if (!renderer) 182 if (!renderer)
183 return 0; 183 return 0;
184 return toRenderVideo(renderer); 184 return toRenderVideo(renderer);
185 } 185 }
186 186
187 void RenderLayerCompositor::updateIfNeededRecursive() 187 void RenderLayerCompositor::updateIfNeededRecursive()
188 { 188 {
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 } else if (graphicsLayer == m_scrollLayer.get()) { 1166 } else if (graphicsLayer == m_scrollLayer.get()) {
1167 name = "LocalFrame Scrolling Layer"; 1167 name = "LocalFrame Scrolling Layer";
1168 } else { 1168 } else {
1169 ASSERT_NOT_REACHED(); 1169 ASSERT_NOT_REACHED();
1170 } 1170 }
1171 1171
1172 return name; 1172 return name;
1173 } 1173 }
1174 1174
1175 } // namespace blink 1175 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698