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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 Color layoutObjectBackgroundColor() const; 293 Color layoutObjectBackgroundColor() const;
294 void updateBackgroundColor(); 294 void updateBackgroundColor();
295 void updateContentsRect(); 295 void updateContentsRect();
296 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro mCompositedAncestor, const IntPoint& graphicsLayerParentLocation); 296 void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFro mCompositedAncestor, const IntPoint& graphicsLayerParentLocation);
297 void updateAfterPartResize(); 297 void updateAfterPartResize();
298 void updateCompositingReasons(); 298 void updateCompositingReasons();
299 299
300 static bool hasVisibleNonCompositingDescendant(PaintLayer* parent); 300 static bool hasVisibleNonCompositingDescendant(PaintLayer* parent);
301 301
302 void doPaintTask(const GraphicsLayerPaintInfo&, const GraphicsLayer&, const PaintLayerFlags&, GraphicsContext*, const IntRect& clip) const; 302 void doPaintTask(const GraphicsLayerPaintInfo&, const GraphicsLayer&, const PaintLayerFlags&, GraphicsContext&, const IntRect& clip) const;
303 303
304 // Computes the background clip rect for the given squashed layer, up to any containing layer that is squashed into the 304 // Computes the background clip rect for the given squashed layer, up to any containing layer that is squashed into the
305 // same squashing layer and contains this squashed layer's clipping ancestor . 305 // same squashing layer and contains this squashed layer's clipping ancestor .
306 // The clip rect is returned in the coordinate space of the given squashed l ayer. 306 // The clip rect is returned in the coordinate space of the given squashed l ayer.
307 // If there is no such containing layer, returns the infinite rect. 307 // If there is no such containing layer, returns the infinite rect.
308 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer . They are doing very similar things. 308 // FIXME: unify this code with the code that sets up m_ancestorClippingLayer . They are doing very similar things.
309 static IntRect localClipRectForSquashedLayer(const PaintLayer& referenceLaye r, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers) ; 309 static IntRect localClipRectForSquashedLayer(const PaintLayer& referenceLaye r, const GraphicsLayerPaintInfo&, const Vector<GraphicsLayerPaintInfo>& layers) ;
310 310
311 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant (inclusive) of the 311 // Return true if |m_owningLayer|'s compositing ancestor is not a descendant (inclusive) of the
312 // clipping container for |m_owningLayer|. 312 // clipping container for |m_owningLayer|.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 442 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
443 unsigned m_scrollingContentsAreEmpty : 1; 443 unsigned m_scrollingContentsAreEmpty : 1;
444 444
445 friend class CompositedLayerMappingTest; 445 friend class CompositedLayerMappingTest;
446 }; 446 };
447 447
448 } // namespace blink 448 } // namespace blink
449 449
450 #endif // CompositedLayerMapping_h 450 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698