| 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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 | 691 |
| 692 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } | 692 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } |
| 693 ClipRectsCache& ensureClipRectsCache() const | 693 ClipRectsCache& ensureClipRectsCache() const |
| 694 { | 694 { |
| 695 if (!m_clipRectsCache) | 695 if (!m_clipRectsCache) |
| 696 m_clipRectsCache = adoptPtr(new ClipRectsCache); | 696 m_clipRectsCache = adoptPtr(new ClipRectsCache); |
| 697 return *m_clipRectsCache; | 697 return *m_clipRectsCache; |
| 698 } | 698 } |
| 699 void clearClipRectsCache() const { m_clipRectsCache.clear(); } | 699 void clearClipRectsCache() const { m_clipRectsCache.clear(); } |
| 700 | 700 |
| 701 bool has3DTransformedDescendant() const { DCHECK(!m_3DTransformedDescendantS
tatusDirty); return m_has3DTransformedDescendant; } |
| 702 |
| 701 private: | 703 private: |
| 702 // Bounding box in the coordinates of this layer. | 704 // Bounding box in the coordinates of this layer. |
| 703 LayoutRect logicalBoundingBox() const; | 705 LayoutRect logicalBoundingBox() const; |
| 704 | 706 |
| 705 bool hasOverflowControls() const; | 707 bool hasOverflowControls() const; |
| 706 | 708 |
| 707 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); | 709 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); |
| 708 | 710 |
| 709 void updateLayerPositionRecursive(); | 711 void updateLayerPositionRecursive(); |
| 710 void updateLayerPositionsAfterScrollRecursive(const DoubleSize& scrollDelta,
bool paintInvalidationContainerWasScrolled); | 712 void updateLayerPositionsAfterScrollRecursive(const DoubleSize& scrollDelta,
bool paintInvalidationContainerWasScrolled); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 891 |
| 890 } // namespace blink | 892 } // namespace blink |
| 891 | 893 |
| 892 #ifndef NDEBUG | 894 #ifndef NDEBUG |
| 893 // Outside the WebCore namespace for ease of invocation from gdb. | 895 // Outside the WebCore namespace for ease of invocation from gdb. |
| 894 void showLayerTree(const blink::PaintLayer*); | 896 void showLayerTree(const blink::PaintLayer*); |
| 895 void showLayerTree(const blink::LayoutObject*); | 897 void showLayerTree(const blink::LayoutObject*); |
| 896 #endif | 898 #endif |
| 897 | 899 |
| 898 #endif // Layer_h | 900 #endif // Layer_h |
| OLD | NEW |