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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 static void mapRectToPaintBackingCoordinates(const LayoutBoxModelObject* pai
ntInvalidationContainer, LayoutRect&); | 335 static void mapRectToPaintBackingCoordinates(const LayoutBoxModelObject* pai
ntInvalidationContainer, LayoutRect&); |
336 | 336 |
337 // Adjusts the given rect (in the coordinate space of the LayoutObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 337 // Adjusts the given rect (in the coordinate space of the LayoutObject) to t
he coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
338 static void mapRectToPaintInvalidationBacking(const LayoutObject*, const Lay
outBoxModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidat
ionState* = 0); | 338 static void mapRectToPaintInvalidationBacking(const LayoutObject*, const Lay
outBoxModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidat
ionState* = 0); |
339 | 339 |
340 // Computes the bounding paint invalidation rect for |layoutObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. | 340 // Computes the bounding paint invalidation rect for |layoutObject|, in the
coordinate space of |paintInvalidationContainer|'s GraphicsLayer backing. |
341 static LayoutRect computePaintInvalidationRect(const LayoutObject*, const De
precatedPaintLayer* paintInvalidationContainer, const PaintInvalidationState* =
0); | 341 static LayoutRect computePaintInvalidationRect(const LayoutObject*, const De
precatedPaintLayer* paintInvalidationContainer, const PaintInvalidationState* =
0); |
342 | 342 |
343 bool paintsWithTransparency(PaintBehavior paintBehavior) const | 343 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
344 { | 344 { |
345 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || compositingState() != PaintsIntoOwnBacking); | 345 return isTransparent() && ((gGlobalPaintFlags & GlobalPaintFlattenCompos
itingLayers) || compositingState() != PaintsIntoOwnBacking); |
346 } | 346 } |
347 | 347 |
348 bool paintsWithTransform(PaintBehavior) const; | 348 bool paintsWithTransform(PaintBehavior) const; |
349 | 349 |
350 // Returns true if background phase is painted opaque in the given rect. | 350 // Returns true if background phase is painted opaque in the given rect. |
351 // The query rect is given in local coordinates. | 351 // The query rect is given in local coordinates. |
352 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 352 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
353 | 353 |
354 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS
crollbars; } | 354 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS
crollbars; } |
355 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir
tyOverlayScrollbars = dirtyScrollbars; } | 355 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir
tyOverlayScrollbars = dirtyScrollbars; } |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 | 717 |
718 } // namespace blink | 718 } // namespace blink |
719 | 719 |
720 #ifndef NDEBUG | 720 #ifndef NDEBUG |
721 // Outside the WebCore namespace for ease of invocation from gdb. | 721 // Outside the WebCore namespace for ease of invocation from gdb. |
722 void showLayerTree(const blink::DeprecatedPaintLayer*); | 722 void showLayerTree(const blink::DeprecatedPaintLayer*); |
723 void showLayerTree(const blink::LayoutObject*); | 723 void showLayerTree(const blink::LayoutObject*); |
724 #endif | 724 #endif |
725 | 725 |
726 #endif // Layer_h | 726 #endif // Layer_h |
OLD | NEW |