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

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

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Bug fix 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 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 float Opacity() const { return opacity_; } 176 float Opacity() const { return opacity_; }
177 void SetOpacity(float); 177 void SetOpacity(float);
178 178
179 void SetBlendMode(WebBlendMode); 179 void SetBlendMode(WebBlendMode);
180 void SetIsRootForIsolatedGroup(bool); 180 void SetIsRootForIsolatedGroup(bool);
181 181
182 void SetFilters(CompositorFilterOperations); 182 void SetFilters(CompositorFilterOperations);
183 void SetBackdropFilters(CompositorFilterOperations); 183 void SetBackdropFilters(CompositorFilterOperations);
184 184
185 void SetStickyPositionConstraint(const WebLayerStickyPositionConstraint&); 185 void SetStickyPositionConstraint(const WebLayerStickyPositionConstraint&);
186 void SetOffsetForStickyPosition(const WebSize&);
186 187
187 void SetFilterQuality(SkFilterQuality); 188 void SetFilterQuality(SkFilterQuality);
188 189
189 // Some GraphicsLayers paint only the foreground or the background content 190 // Some GraphicsLayers paint only the foreground or the background content
190 GraphicsLayerPaintingPhase PaintingPhase() const { return painting_phase_; } 191 GraphicsLayerPaintingPhase PaintingPhase() const { return painting_phase_; }
191 void SetPaintingPhase(GraphicsLayerPaintingPhase); 192 void SetPaintingPhase(GraphicsLayerPaintingPhase);
192 193
193 void SetNeedsDisplay(); 194 void SetNeedsDisplay();
194 // Mark the given rect (in layer coords) as needing display. Never goes deep. 195 // Mark the given rect (in layer coords) as needing display. Never goes deep.
195 void SetNeedsDisplayInRect(const IntRect&, 196 void SetNeedsDisplayInRect(const IntRect&,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 397
397 } // namespace blink 398 } // namespace blink
398 399
399 #ifndef NDEBUG 400 #ifndef NDEBUG
400 // Outside the blink namespace for ease of invocation from gdb. 401 // Outside the blink namespace for ease of invocation from gdb.
401 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 402 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
402 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*); 403 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*);
403 #endif 404 #endif
404 405
405 #endif // GraphicsLayer_h 406 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698