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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp

Issue 2754983002: Composite sticky-positioned elements when they have composited descendants (Closed)
Patch Set: Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/CompositingReasons.h" 5 #include "platform/graphics/CompositingReasons.h"
6 6
7 #include "wtf/StdLibExtras.h" 7 #include "wtf/StdLibExtras.h"
8 #include "wtf/text/StringBuilder.h" 8 #include "wtf/text/StringBuilder.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 "of 3d descendants"}, 81 "of 3d descendants"},
82 {CompositingReasonPreserve3DWith3DDescendants, 82 {CompositingReasonPreserve3DWith3DDescendants,
83 "preserve3DWith3DDescendants", 83 "preserve3DWith3DDescendants",
84 "Has a preserves-3d property that needs to be known by compositor because " 84 "Has a preserves-3d property that needs to be known by compositor because "
85 "of 3d descendants"}, 85 "of 3d descendants"},
86 {CompositingReasonReflectionOfCompositedParent, 86 {CompositingReasonReflectionOfCompositedParent,
87 "reflectionOfCompositedParent", "Is a reflection of a composited layer"}, 87 "reflectionOfCompositedParent", "Is a reflection of a composited layer"},
88 {CompositingReasonIsolateCompositedDescendants, 88 {CompositingReasonIsolateCompositedDescendants,
89 "isolateCompositedDescendants", 89 "isolateCompositedDescendants",
90 "Should isolate descendants to apply a blend effect"}, 90 "Should isolate descendants to apply a blend effect"},
91 {CompositingReasonPositionFixedWithCompositedDescendants, 91 {CompositingReasonPositionFixedOrStickyWithCompositedDescendants,
92 "positionFixedWithCompositedDescendants" 92 "positionFixedOrStickyWithCompositedDescendants"
93 "Is a position:fixed element with composited descendants"}, 93 "Is a position:fixed or position:sticky element with composited "
94 "descendants"},
94 {CompositingReasonRoot, "root", "Is the root layer"}, 95 {CompositingReasonRoot, "root", "Is the root layer"},
95 {CompositingReasonLayerForAncestorClip, "layerForAncestorClip", 96 {CompositingReasonLayerForAncestorClip, "layerForAncestorClip",
96 "Secondary layer, applies a clip due to a sibling in the compositing " 97 "Secondary layer, applies a clip due to a sibling in the compositing "
97 "tree"}, 98 "tree"},
98 {CompositingReasonLayerForDescendantClip, "layerForDescendantClip", 99 {CompositingReasonLayerForDescendantClip, "layerForDescendantClip",
99 "Secondary layer, to clip descendants of the owning layer"}, 100 "Secondary layer, to clip descendants of the owning layer"},
100 {CompositingReasonLayerForPerspective, "layerForPerspective", 101 {CompositingReasonLayerForPerspective, "layerForPerspective",
101 "Secondary layer, to house the perspective transform for all descendants"}, 102 "Secondary layer, to house the perspective transform for all descendants"},
102 {CompositingReasonLayerForHorizontalScrollbar, 103 {CompositingReasonLayerForHorizontalScrollbar,
103 "layerForHorizontalScrollbar", 104 "layerForHorizontalScrollbar",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 if (reasons & kCompositingReasonStringMap[i].reason) { 156 if (reasons & kCompositingReasonStringMap[i].reason) {
156 if (builder.length()) 157 if (builder.length())
157 builder.append(','); 158 builder.append(',');
158 builder.append(kCompositingReasonStringMap[i].shortName); 159 builder.append(kCompositingReasonStringMap[i].shortName);
159 } 160 }
160 } 161 }
161 return builder.toString(); 162 return builder.toString();
162 } 163 }
163 164
164 } // namespace blink 165 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698