| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 const LayoutObject&, | 552 const LayoutObject&, |
| 553 const LayoutBoxModelObject& paintInvalidationContainer, | 553 const LayoutBoxModelObject& paintInvalidationContainer, |
| 554 LayoutRect&); | 554 LayoutRect&); |
| 555 | 555 |
| 556 bool paintsWithTransparency(GlobalPaintFlags globalPaintFlags) const { | 556 bool paintsWithTransparency(GlobalPaintFlags globalPaintFlags) const { |
| 557 return isTransparent() && | 557 return isTransparent() && |
| 558 ((globalPaintFlags & GlobalPaintFlattenCompositingLayers) || | 558 ((globalPaintFlags & GlobalPaintFlattenCompositingLayers) || |
| 559 compositingState() != PaintsIntoOwnBacking); | 559 compositingState() != PaintsIntoOwnBacking); |
| 560 } | 560 } |
| 561 | 561 |
| 562 // Returns true if the element or any ancestor is transformed. |
| 563 bool compositesWithTransform() const; |
| 564 |
| 565 // Returns true if the element or any ancestor has non 1 opacity. |
| 566 bool compositesWithOpacity() const; |
| 567 |
| 562 bool paintsWithTransform(GlobalPaintFlags) const; | 568 bool paintsWithTransform(GlobalPaintFlags) const; |
| 563 | 569 |
| 564 // Returns true if background phase is painted opaque in the given rect. | 570 // Returns true if background phase is painted opaque in the given rect. |
| 565 // The query rect is given in local coordinates. | 571 // The query rect is given in local coordinates. |
| 566 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 572 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
| 567 | 573 |
| 568 bool containsDirtyOverlayScrollbars() const { | 574 bool containsDirtyOverlayScrollbars() const { |
| 569 return m_containsDirtyOverlayScrollbars; | 575 return m_containsDirtyOverlayScrollbars; |
| 570 } | 576 } |
| 571 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { | 577 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 | 1243 |
| 1238 } // namespace blink | 1244 } // namespace blink |
| 1239 | 1245 |
| 1240 #ifndef NDEBUG | 1246 #ifndef NDEBUG |
| 1241 // Outside the WebCore namespace for ease of invocation from gdb. | 1247 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1242 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1248 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
| 1243 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1249 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
| 1244 #endif | 1250 #endif |
| 1245 | 1251 |
| 1246 #endif // Layer_h | 1252 #endif // Layer_h |
| OLD | NEW |