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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 | 436 |
437 bool hasCompositedMask() const; | 437 bool hasCompositedMask() const; |
438 bool hasCompositedClippingMask() const; | 438 bool hasCompositedClippingMask() const; |
439 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } | 439 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla
bleArea->needsCompositedScrolling(); } |
440 | 440 |
441 // Computes the position of the given layout object in the space of |paintIn
validationContainer|. | 441 // Computes the position of the given layout object in the space of |paintIn
validationContainer|. |
442 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. | 442 // FIXME: invert the logic to have paint invalidation containers take care o
f painting objects into them, rather than the reverse. |
443 // This will allow us to clean up this static method messiness. | 443 // This will allow us to clean up this static method messiness. |
444 static LayoutPoint positionFromPaintInvalidationBacking(const LayoutObject*,
const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidation
State* = 0); | 444 static LayoutPoint positionFromPaintInvalidationBacking(const LayoutObject*,
const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidation
State* = 0); |
445 | 445 |
446 static void mapPointToPaintBackingCoordinates(const LayoutBoxModelObject* pa
intInvalidationContainer, FloatPoint&); | 446 static void mapPointInPaintInvalidationContainerToBacking(const LayoutBoxMod
elObject* paintInvalidationContainer, FloatPoint&); |
447 static void mapRectToPaintBackingCoordinates(const LayoutBoxModelObject* pai
ntInvalidationContainer, LayoutRect&); | 447 static void mapRectInPaintInvalidationContainerToBacking(const LayoutBoxMode
lObject* paintInvalidationContainer, LayoutRect&); |
448 | 448 |
449 // Adjusts the given rect (in the coordinate space of the LayoutObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 449 // Adjusts the given rect (in the coordinate space of the LayoutObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
450 static void mapRectToPaintInvalidationBacking(const LayoutObject*, const Lay
outBoxModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidat
ionState* = 0); | 450 static void mapRectToPaintInvalidationBacking(const LayoutObject*, const Lay
outBoxModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidat
ionState* = 0); |
451 | 451 |
452 // Computes the bounding paint invalidation rect for |layoutObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 452 // Computes the bounding paint invalidation rect for |layoutObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
453 // TODO(jchaffraix): |paintInvalidationContainer| should be a reference. | 453 // TODO(jchaffraix): |paintInvalidationContainer| should be a reference. |
454 static LayoutRect computePaintInvalidationRect(const LayoutObject&, const Pa
intLayer* paintInvalidationContainer, const PaintInvalidationState* = 0); | 454 static LayoutRect computePaintInvalidationRect(const LayoutObject&, const Pa
intLayer* paintInvalidationContainer, const PaintInvalidationState* = 0); |
455 | 455 |
456 bool paintsWithTransparency(GlobalPaintFlags globalPaintFlags) const | 456 bool paintsWithTransparency(GlobalPaintFlags globalPaintFlags) const |
457 { | 457 { |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 | 874 |
875 } // namespace blink | 875 } // namespace blink |
876 | 876 |
877 #ifndef NDEBUG | 877 #ifndef NDEBUG |
878 // Outside the WebCore namespace for ease of invocation from gdb. | 878 // Outside the WebCore namespace for ease of invocation from gdb. |
879 void showLayerTree(const blink::PaintLayer*); | 879 void showLayerTree(const blink::PaintLayer*); |
880 void showLayerTree(const blink::LayoutObject*); | 880 void showLayerTree(const blink::LayoutObject*); |
881 #endif | 881 #endif |
882 | 882 |
883 #endif // Layer_h | 883 #endif // Layer_h |
OLD | NEW |