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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 344 |
345 bool hasCompositedMask() const; | 345 bool hasCompositedMask() const; |
346 bool hasCompositedClippingMask() const; | 346 bool hasCompositedClippingMask() const; |
347 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } | 347 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } |
348 | 348 |
349 bool clipsCompositingDescendantsWithBorderRadius() const; | 349 bool clipsCompositingDescendantsWithBorderRadius() const; |
350 | 350 |
351 RenderLayer* scrollParent() const; | 351 RenderLayer* scrollParent() const; |
352 RenderLayer* clipParent() const; | 352 RenderLayer* clipParent() const; |
353 | 353 |
| 354 // Adjusts the given rect to the coordinate space of the repaint container's
GraphicsLayer backing. |
| 355 void mapRectToRepaintBacking(const RenderLayerModelObject* repaintContainer,
LayoutRect&) const; |
| 356 |
| 357 // Computes the bounding repaint rect for this layer, in the coordinate spac
e of the repaint container's GraphicsLayer backing. |
| 358 LayoutRect computeRepaintRect(const RenderLayerModelObject* repaintContainer
) const; |
| 359 |
354 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const
RenderStyle* newStyle) const; | 360 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const
RenderStyle* newStyle) const; |
355 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; | 361 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; |
356 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co
nst RenderStyle* newStyle) const; | 362 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co
nst RenderStyle* newStyle) const; |
357 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; | 363 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; |
358 | 364 |
359 bool paintsWithTransparency(PaintBehavior paintBehavior) const | 365 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
360 { | 366 { |
361 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); | 367 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); |
362 } | 368 } |
363 | 369 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 755 |
750 } // namespace WebCore | 756 } // namespace WebCore |
751 | 757 |
752 #ifndef NDEBUG | 758 #ifndef NDEBUG |
753 // Outside the WebCore namespace for ease of invocation from gdb. | 759 // Outside the WebCore namespace for ease of invocation from gdb. |
754 void showLayerTree(const WebCore::RenderLayer*); | 760 void showLayerTree(const WebCore::RenderLayer*); |
755 void showLayerTree(const WebCore::RenderObject*); | 761 void showLayerTree(const WebCore::RenderObject*); |
756 #endif | 762 #endif |
757 | 763 |
758 #endif // RenderLayer_h | 764 #endif // RenderLayer_h |
OLD | NEW |