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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Update WebScrollBoundaryBehavior. Created 3 years, 7 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "platform/graphics/ImageOrientation.h" 43 #include "platform/graphics/ImageOrientation.h"
44 #include "platform/graphics/PaintInvalidationReason.h" 44 #include "platform/graphics/PaintInvalidationReason.h"
45 #include "platform/graphics/paint/DisplayItemClient.h" 45 #include "platform/graphics/paint/DisplayItemClient.h"
46 #include "platform/graphics/paint/PaintController.h" 46 #include "platform/graphics/paint/PaintController.h"
47 #include "platform/heap/Handle.h" 47 #include "platform/heap/Handle.h"
48 #include "platform/transforms/TransformationMatrix.h" 48 #include "platform/transforms/TransformationMatrix.h"
49 #include "platform/wtf/Vector.h" 49 #include "platform/wtf/Vector.h"
50 #include "public/platform/WebContentLayer.h" 50 #include "public/platform/WebContentLayer.h"
51 #include "public/platform/WebImageLayer.h" 51 #include "public/platform/WebImageLayer.h"
52 #include "public/platform/WebLayerStickyPositionConstraint.h" 52 #include "public/platform/WebLayerStickyPositionConstraint.h"
53 #include "public/platform/WebScrollBoundaryBehavior.h"
53 #include "third_party/skia/include/core/SkFilterQuality.h" 54 #include "third_party/skia/include/core/SkFilterQuality.h"
54 #include "third_party/skia/include/core/SkRefCnt.h" 55 #include "third_party/skia/include/core/SkRefCnt.h"
55 56
56 namespace blink { 57 namespace blink {
57 58
58 class CompositorFilterOperations; 59 class CompositorFilterOperations;
59 class Image; 60 class Image;
60 class JSONObject; 61 class JSONObject;
61 class LinkHighlight; 62 class LinkHighlight;
62 class PaintController; 63 class PaintController;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 ContentLayerDelegate* ContentLayerDelegateForTesting() const { 271 ContentLayerDelegate* ContentLayerDelegateForTesting() const {
271 return content_layer_delegate_.get(); 272 return content_layer_delegate_.get();
272 } 273 }
273 274
274 // DisplayItemClient methods 275 // DisplayItemClient methods
275 String DebugName() const final { return client_->DebugName(this); } 276 String DebugName() const final { return client_->DebugName(this); }
276 LayoutRect VisualRect() const override; 277 LayoutRect VisualRect() const override;
277 278
278 void SetHasWillChangeTransformHint(bool); 279 void SetHasWillChangeTransformHint(bool);
279 280
281 void SetScrollBoundaryBehavior(WebScrollBoundaryBehavior);
bokan 2017/05/19 19:35:57 pass by const ref
sunyunjia 2017/05/25 20:07:10 Done.
282
280 protected: 283 protected:
281 String DebugName(cc::Layer*) const; 284 String DebugName(cc::Layer*) const;
282 bool ShouldFlattenTransform() const { return should_flatten_transform_; } 285 bool ShouldFlattenTransform() const { return should_flatten_transform_; }
283 286
284 explicit GraphicsLayer(GraphicsLayerClient*); 287 explicit GraphicsLayer(GraphicsLayerClient*);
285 // for testing 288 // for testing
286 friend class CompositedLayerMappingTest; 289 friend class CompositedLayerMappingTest;
287 friend class PaintControllerPaintTestBase; 290 friend class PaintControllerPaintTestBase;
288 291
289 private: 292 private:
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 }; 398 };
396 399
397 } // namespace blink 400 } // namespace blink
398 401
399 #ifndef NDEBUG 402 #ifndef NDEBUG
400 // Outside the blink namespace for ease of invocation from gdb. 403 // Outside the blink namespace for ease of invocation from gdb.
401 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 404 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
402 #endif 405 #endif
403 406
404 #endif // GraphicsLayer_h 407 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698