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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 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 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 kApplyToBackgroundLayer = (1 << 3), 2028 kApplyToBackgroundLayer = (1 << 3),
2029 kApplyToMaskLayers = (1 << 4), 2029 kApplyToMaskLayers = (1 << 4),
2030 kApplyToContentLayers = (1 << 5), 2030 kApplyToContentLayers = (1 << 5),
2031 kApplyToChildContainingLayers = 2031 kApplyToChildContainingLayers =
2032 (1 << 6), // layers between m_graphicsLayer and children 2032 (1 << 6), // layers between m_graphicsLayer and children
2033 kApplyToNonScrollingContentLayers = (1 << 7), 2033 kApplyToNonScrollingContentLayers = (1 << 7),
2034 kApplyToScrollingContentLayers = (1 << 8), 2034 kApplyToScrollingContentLayers = (1 << 8),
2035 kApplyToDecorationOutlineLayer = (1 << 9), 2035 kApplyToDecorationOutlineLayer = (1 << 9),
2036 kApplyToAllGraphicsLayers = 2036 kApplyToAllGraphicsLayers =
2037 (kApplyToSquashingLayer | kApplyToScrollbarLayers | 2037 (kApplyToSquashingLayer | kApplyToScrollbarLayers |
2038 kApplyToBackgroundLayer | 2038 kApplyToBackgroundLayer | kApplyToMaskLayers |
2039 kApplyToMaskLayers | 2039 kApplyToLayersAffectedByPreserve3D | kApplyToContentLayers |
2040 kApplyToLayersAffectedByPreserve3D | 2040 kApplyToScrollingContentLayers | kApplyToDecorationOutlineLayer)
2041 kApplyToContentLayers |
2042 kApplyToScrollingContentLayers |
2043 kApplyToDecorationOutlineLayer)
2044 }; 2041 };
2045 typedef unsigned ApplyToGraphicsLayersMode; 2042 typedef unsigned ApplyToGraphicsLayersMode;
2046 2043
2047 template <typename Func> 2044 template <typename Func>
2048 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping, 2045 static void ApplyToGraphicsLayers(const CompositedLayerMapping* mapping,
2049 const Func& f, 2046 const Func& f,
2050 ApplyToGraphicsLayersMode mode) { 2047 ApplyToGraphicsLayersMode mode) {
2051 DCHECK(mode); 2048 DCHECK(mode);
2052 2049
2053 if ((mode & kApplyToLayersAffectedByPreserve3D) && 2050 if ((mode & kApplyToLayersAffectedByPreserve3D) &&
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 } else if (graphics_layer == decoration_outline_layer_.get()) { 3644 } else if (graphics_layer == decoration_outline_layer_.get()) {
3648 name = "Decoration Layer"; 3645 name = "Decoration Layer";
3649 } else { 3646 } else {
3650 NOTREACHED(); 3647 NOTREACHED();
3651 } 3648 }
3652 3649
3653 return name; 3650 return name;
3654 } 3651 }
3655 3652
3656 } // namespace blink 3653 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698