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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 332 |
333 bool hasCompositedMask() const; | 333 bool hasCompositedMask() const; |
334 bool hasCompositedClippingMask() const; | 334 bool hasCompositedClippingMask() const; |
335 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } | 335 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } |
336 | 336 |
337 bool clipsCompositingDescendantsWithBorderRadius() const; | 337 bool clipsCompositingDescendantsWithBorderRadius() const; |
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 (in the coordinate space of the RenderObject) to t
he coordinate space of |repaintContainer|'s GraphicsLayer backing. |
343 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer,
LayoutRect&) const; | 343 static void mapRectToRepaintBacking(const RenderObject*, const RenderLayerMo
delObject* repaintContainer, LayoutRect&); |
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 paintsWithTransparency(PaintBehavior paintBehavior) const | 348 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
349 { | 349 { |
350 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); | 350 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); |
351 } | 351 } |
352 | 352 |
353 bool paintsWithTransform(PaintBehavior) const; | 353 bool paintsWithTransform(PaintBehavior) const; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 725 |
726 } // namespace WebCore | 726 } // namespace WebCore |
727 | 727 |
728 #ifndef NDEBUG | 728 #ifndef NDEBUG |
729 // Outside the WebCore namespace for ease of invocation from gdb. | 729 // Outside the WebCore namespace for ease of invocation from gdb. |
730 void showLayerTree(const WebCore::RenderLayer*); | 730 void showLayerTree(const WebCore::RenderLayer*); |
731 void showLayerTree(const WebCore::RenderObject*); | 731 void showLayerTree(const WebCore::RenderObject*); |
732 #endif | 732 #endif |
733 | 733 |
734 #endif // RenderLayer_h | 734 #endif // RenderLayer_h |
OLD | NEW |