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

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

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix style errors and remaining layout tests. Created 5 years, 3 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 "config.h" 5 #include "config.h"
6 #include "platform/graphics/CompositingReasons.h" 6 #include "platform/graphics/CompositingReasons.h"
7 7
8 #include "wtf/StdLibExtras.h" 8 #include "wtf/StdLibExtras.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 22 matching lines...) Expand all
33 "Has backface-visibility: hidden" }, 33 "Has backface-visibility: hidden" },
34 { CompositingReasonActiveAnimation, 34 { CompositingReasonActiveAnimation,
35 "activeAnimation", 35 "activeAnimation",
36 "Has an active accelerated animation or transition" }, 36 "Has an active accelerated animation or transition" },
37 { CompositingReasonTransitionProperty, 37 { CompositingReasonTransitionProperty,
38 "transitionProperty", 38 "transitionProperty",
39 "Has an acceleratable transition property (active or inactive)" }, 39 "Has an acceleratable transition property (active or inactive)" },
40 { CompositingReasonPositionFixed, 40 { CompositingReasonPositionFixed,
41 "positionFixed", 41 "positionFixed",
42 "Is fixed position" }, 42 "Is fixed position" },
43 { CompositingReasonPositionSticky,
44 "positionSticky",
45 "Is sticky position" },
43 { CompositingReasonOverflowScrollingTouch, 46 { CompositingReasonOverflowScrollingTouch,
44 "overflowScrollingTouch", 47 "overflowScrollingTouch",
45 "Is a scrollable overflow element" }, 48 "Is a scrollable overflow element" },
46 { CompositingReasonOverflowScrollingParent, 49 { CompositingReasonOverflowScrollingParent,
47 "overflowScrollingParent", 50 "overflowScrollingParent",
48 "Scroll parent is not an ancestor" }, 51 "Scroll parent is not an ancestor" },
49 { CompositingReasonOutOfFlowClipping, 52 { CompositingReasonOutOfFlowClipping,
50 "outOfFlowClipping", 53 "outOfFlowClipping",
51 "Has clipping ancestor" }, 54 "Has clipping ancestor" },
52 { CompositingReasonVideoOverlay, 55 { CompositingReasonVideoOverlay,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 "layerForScrollingBlockSelection", 200 "layerForScrollingBlockSelection",
198 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" }, 201 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" },
199 { CompositingReasonInlineTransform, 202 { CompositingReasonInlineTransform,
200 "inlineTransform", 203 "inlineTransform",
201 "Has an inline transform, which causes subsequent layers to assume overl ap" }, 204 "Has an inline transform, which causes subsequent layers to assume overl ap" },
202 }; 205 };
203 206
204 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p); 207 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p);
205 208
206 } // namespace blink 209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698