OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 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 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 RenderLayer* scrollParent() const; | 339 RenderLayer* scrollParent() const; |
340 RenderLayer* clipParent() const; | 340 RenderLayer* clipParent() const; |
341 | 341 |
342 // Adjusts the given rect to the coordinate space of the repaint container's
GraphicsLayer backing. | 342 // Adjusts the given rect to the coordinate space of the repaint container's
GraphicsLayer backing. |
343 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer,
LayoutRect&) const; | 343 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer,
LayoutRect&) const; |
344 | 344 |
345 // Computes the bounding repaint rect for |renderObject|, in the coordinate
space of |repaintContainer|'s GraphicsLayer backing. | 345 // Computes the bounding repaint rect for |renderObject|, in the coordinate
space of |repaintContainer|'s GraphicsLayer backing. |
346 static LayoutRect computeRepaintRect(const RenderObject*, const RenderLayer*
repaintContainer); | 346 static LayoutRect computeRepaintRect(const RenderObject*, const RenderLayer*
repaintContainer); |
347 | 347 |
348 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const
RenderStyle* newStyle) const; | |
349 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; | |
350 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co
nst RenderStyle* newStyle) const; | |
351 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; | |
352 | |
353 bool paintsWithTransparency(PaintBehavior paintBehavior) const | 348 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
354 { | 349 { |
355 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); | 350 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); |
356 } | 351 } |
357 | 352 |
358 bool paintsWithTransform(PaintBehavior) const; | 353 bool paintsWithTransform(PaintBehavior) const; |
359 | 354 |
360 // Returns true if background phase is painted opaque in the given rect. | 355 // Returns true if background phase is painted opaque in the given rect. |
361 // The query rect is given in local coordinates. | 356 // The query rect is given in local coordinates. |
362 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 357 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 | 725 |
731 } // namespace WebCore | 726 } // namespace WebCore |
732 | 727 |
733 #ifndef NDEBUG | 728 #ifndef NDEBUG |
734 // Outside the WebCore namespace for ease of invocation from gdb. | 729 // Outside the WebCore namespace for ease of invocation from gdb. |
735 void showLayerTree(const WebCore::RenderLayer*); | 730 void showLayerTree(const WebCore::RenderLayer*); |
736 void showLayerTree(const WebCore::RenderObject*); | 731 void showLayerTree(const WebCore::RenderObject*); |
737 #endif | 732 #endif |
738 | 733 |
739 #endif // RenderLayer_h | 734 #endif // RenderLayer_h |
OLD | NEW |