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

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

Issue 311263009: Cleanup: Remove unused include headers and forward declarations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/rendering/compositing/GraphicsLayerUpdater.h" 28 #include "core/rendering/compositing/GraphicsLayerUpdater.h"
29 29
30 #include "core/html/HTMLMediaElement.h" 30 #include "core/html/HTMLMediaElement.h"
31 #include "core/rendering/RenderLayer.h" 31 #include "core/rendering/RenderLayer.h"
32 #include "core/rendering/RenderLayerReflectionInfo.h" 32 #include "core/rendering/RenderLayerReflectionInfo.h"
33 #include "core/rendering/RenderPart.h" 33 #include "core/rendering/RenderPart.h"
34 #include "core/rendering/RenderView.h"
35 #include "core/rendering/compositing/CompositedLayerMapping.h" 34 #include "core/rendering/compositing/CompositedLayerMapping.h"
36 #include "core/rendering/compositing/RenderLayerCompositor.h" 35 #include "core/rendering/compositing/RenderLayerCompositor.h"
37 #include "public/platform/Platform.h"
38 36
39 namespace WebCore { 37 namespace WebCore {
40 38
41 static bool shouldAppendLayer(const RenderLayer& layer) 39 static bool shouldAppendLayer(const RenderLayer& layer)
42 { 40 {
43 if (!RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) 41 if (!RuntimeEnabledFeatures::overlayFullscreenVideoEnabled())
44 return true; 42 return true;
45 Node* node = layer.renderer()->node(); 43 Node* node = layer.renderer()->node();
46 if (node && isHTMLMediaElement(*node) && toHTMLMediaElement(node)->isFullscr een()) 44 if (node && isHTMLMediaElement(*node) && toHTMLMediaElement(node)->isFullscr een())
47 return false; 45 return false;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (layer.hasCompositedLayerMapping()) 184 if (layer.hasCompositedLayerMapping())
187 layer.compositedLayerMapping()->assertNeedsToUpdateGraphicsLayerBitsClea red(); 185 layer.compositedLayerMapping()->assertNeedsToUpdateGraphicsLayerBitsClea red();
188 186
189 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing()) 187 for (RenderLayer* child = layer.firstChild(); child; child = child->nextSibl ing())
190 assertNeedsToUpdateGraphicsLayerBitsCleared(*child); 188 assertNeedsToUpdateGraphicsLayerBitsCleared(*child);
191 } 189 }
192 190
193 #endif 191 #endif
194 192
195 } // namespace WebCore 193 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/GraphicsLayerUpdater.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698