| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 bool hasCompositedClippingMask() const; | 317 bool hasCompositedClippingMask() const; |
| 318 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } | 318 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } |
| 319 | 319 |
| 320 bool clipsCompositingDescendantsWithBorderRadius() const; | 320 bool clipsCompositingDescendantsWithBorderRadius() const; |
| 321 | 321 |
| 322 // Computes the position of the given render object in the space of |paintIn
validationContainer|. | 322 // Computes the position of the given render object in the space of |paintIn
validationContainer|. |
| 323 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. | 323 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. |
| 324 // This will allow us to clean up this static method messiness. | 324 // This will allow us to clean up this static method messiness. |
| 325 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject
*, const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalida
tionState* = 0); | 325 static LayoutPoint positionFromPaintInvalidationContainer(const RenderObject
*, const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalida
tionState* = 0); |
| 326 | 326 |
| 327 static void mapPointToPaintBackingCoordinates(const RenderLayerModelObject*
paintInvalidationContainer, FloatPoint&); |
| 327 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p
aintInvalidationContainer, LayoutRect&); | 328 static void mapRectToPaintBackingCoordinates(const RenderLayerModelObject* p
aintInvalidationContainer, LayoutRect&); |
| 328 | 329 |
| 329 // Adjusts the given rect (in the coordinate space of the RenderObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 330 // Adjusts the given rect (in the coordinate space of the RenderObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
| 330 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren
derLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalid
ationState* = 0); | 331 static void mapRectToPaintInvalidationBacking(const RenderObject*, const Ren
derLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalid
ationState* = 0); |
| 331 | 332 |
| 332 // Computes the bounding paint invalidation rect for |renderObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 333 // Computes the bounding paint invalidation rect for |renderObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
| 333 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re
nderLayer* paintInvalidationContainer, const PaintInvalidationState* = 0); | 334 static LayoutRect computePaintInvalidationRect(const RenderObject*, const Re
nderLayer* paintInvalidationContainer, const PaintInvalidationState* = 0); |
| 334 | 335 |
| 335 bool paintsWithTransparency(PaintBehavior paintBehavior) const | 336 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
| 336 { | 337 { |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 } // namespace blink | 746 } // namespace blink |
| 746 | 747 |
| 747 #ifndef NDEBUG | 748 #ifndef NDEBUG |
| 748 // Outside the WebCore namespace for ease of invocation from gdb. | 749 // Outside the WebCore namespace for ease of invocation from gdb. |
| 749 void showLayerTree(const blink::RenderLayer*); | 750 void showLayerTree(const blink::RenderLayer*); |
| 750 void showLayerTree(const blink::RenderObject*); | 751 void showLayerTree(const blink::RenderObject*); |
| 751 #endif | 752 #endif |
| 752 | 753 |
| 753 #endif // RenderLayer_h | 754 #endif // RenderLayer_h |
| OLD | NEW |