| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 | 689 |
| 690 PaintTiming* paintTiming(); | 690 PaintTiming* paintTiming(); |
| 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.reset(); } |
| 700 | 700 |
| 701 void dirty3DTransformedDescendantStatus(); | 701 void dirty3DTransformedDescendantStatus(); |
| 702 // Both updates the status, and returns true if descendants of this have 3d. | 702 // Both updates the status, and returns true if descendants of this have 3d. |
| 703 bool update3DTransformedDescendantStatus(); | 703 bool update3DTransformedDescendantStatus(); |
| 704 bool has3DTransformedDescendant() const { DCHECK(!m_3DTransformedDescendantS
tatusDirty); return m_has3DTransformedDescendant; } | 704 bool has3DTransformedDescendant() const { DCHECK(!m_3DTransformedDescendantS
tatusDirty); return m_has3DTransformedDescendant; } |
| 705 | 705 |
| 706 private: | 706 private: |
| 707 // Bounding box in the coordinates of this layer. | 707 // Bounding box in the coordinates of this layer. |
| 708 LayoutRect logicalBoundingBox() const; | 708 LayoutRect logicalBoundingBox() const; |
| 709 | 709 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 | 892 |
| 893 } // namespace blink | 893 } // namespace blink |
| 894 | 894 |
| 895 #ifndef NDEBUG | 895 #ifndef NDEBUG |
| 896 // Outside the WebCore namespace for ease of invocation from gdb. | 896 // Outside the WebCore namespace for ease of invocation from gdb. |
| 897 void showLayerTree(const blink::PaintLayer*); | 897 void showLayerTree(const blink::PaintLayer*); |
| 898 void showLayerTree(const blink::LayoutObject*); | 898 void showLayerTree(const blink::LayoutObject*); |
| 899 #endif | 899 #endif |
| 900 | 900 |
| 901 #endif // Layer_h | 901 #endif // Layer_h |
| OLD | NEW |