| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 675 |
| 676 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } | 676 ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); } |
| 677 ClipRectsCache& ensureClipRectsCache() const | 677 ClipRectsCache& ensureClipRectsCache() const |
| 678 { | 678 { |
| 679 if (!m_clipRectsCache) | 679 if (!m_clipRectsCache) |
| 680 m_clipRectsCache = adoptPtr(new ClipRectsCache); | 680 m_clipRectsCache = adoptPtr(new ClipRectsCache); |
| 681 return *m_clipRectsCache; | 681 return *m_clipRectsCache; |
| 682 } | 682 } |
| 683 void clearClipRectsCache() const { m_clipRectsCache.clear(); } | 683 void clearClipRectsCache() const { m_clipRectsCache.clear(); } |
| 684 | 684 |
| 685 void dirty3DTransformedDescendantStatus(); |
| 686 // Both updates the status, and returns true if descendants of this have 3d. |
| 687 bool update3DTransformedDescendantStatus(); |
| 688 bool has3DTransformedDescendant() const { DCHECK(!m_3DTransformedDescendantS
tatusDirty); return m_has3DTransformedDescendant; } |
| 689 |
| 685 private: | 690 private: |
| 686 // Bounding box in the coordinates of this layer. | 691 // Bounding box in the coordinates of this layer. |
| 687 LayoutRect logicalBoundingBox() const; | 692 LayoutRect logicalBoundingBox() const; |
| 688 | 693 |
| 689 bool hasOverflowControls() const; | 694 bool hasOverflowControls() const; |
| 690 | 695 |
| 691 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); | 696 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); |
| 692 | 697 |
| 693 // Returns true if the position changed. | 698 // Returns true if the position changed. |
| 694 bool updateLayerPosition(); | 699 bool updateLayerPosition(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 // FIXME: We could lazily allocate our ScrollableArea based on style propert
ies ('overflow', ...) | 743 // FIXME: We could lazily allocate our ScrollableArea based on style propert
ies ('overflow', ...) |
| 739 // but for now, we are always allocating it for LayoutBox as it's safer. crb
ug.com/467721. | 744 // but for now, we are always allocating it for LayoutBox as it's safer. crb
ug.com/467721. |
| 740 bool requiresScrollableArea() const { return layoutBox(); } | 745 bool requiresScrollableArea() const { return layoutBox(); } |
| 741 void updateScrollableArea(); | 746 void updateScrollableArea(); |
| 742 | 747 |
| 743 void dirtyAncestorChainVisibleDescendantStatus(); | 748 void dirtyAncestorChainVisibleDescendantStatus(); |
| 744 | 749 |
| 745 bool attemptDirectCompositingUpdate(StyleDifference, const ComputedStyle* ol
dStyle); | 750 bool attemptDirectCompositingUpdate(StyleDifference, const ComputedStyle* ol
dStyle); |
| 746 void updateTransform(const ComputedStyle* oldStyle, const ComputedStyle& new
Style); | 751 void updateTransform(const ComputedStyle* oldStyle, const ComputedStyle& new
Style); |
| 747 | 752 |
| 748 void dirty3DTransformedDescendantStatus(); | |
| 749 // Both updates the status, and returns true if descendants of this have 3d. | |
| 750 bool update3DTransformedDescendantStatus(); | |
| 751 | |
| 752 void updateOrRemoveFilterClients(); | 753 void updateOrRemoveFilterClients(); |
| 753 | 754 |
| 754 void updatePaginationRecursive(bool needsPaginationUpdate = false); | 755 void updatePaginationRecursive(bool needsPaginationUpdate = false); |
| 755 void clearPaginationRecursive(); | 756 void clearPaginationRecursive(); |
| 756 | 757 |
| 757 void markCompositingContainerChainForNeedsRepaint(); | 758 void markCompositingContainerChainForNeedsRepaint(); |
| 758 | 759 |
| 759 PaintLayerRareData& ensureRareData() | 760 PaintLayerRareData& ensureRareData() |
| 760 { | 761 { |
| 761 if (!m_rareData) | 762 if (!m_rareData) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 | 872 |
| 872 } // namespace blink | 873 } // namespace blink |
| 873 | 874 |
| 874 #ifndef NDEBUG | 875 #ifndef NDEBUG |
| 875 // Outside the WebCore namespace for ease of invocation from gdb. | 876 // Outside the WebCore namespace for ease of invocation from gdb. |
| 876 void showLayerTree(const blink::PaintLayer*); | 877 void showLayerTree(const blink::PaintLayer*); |
| 877 void showLayerTree(const blink::LayoutObject*); | 878 void showLayerTree(const blink::LayoutObject*); |
| 878 #endif | 879 #endif |
| 879 | 880 |
| 880 #endif // Layer_h | 881 #endif // Layer_h |
| OLD | NEW |