| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 TemporaryChange<CompositingQueryMode> m_disabler; | 88 TemporaryChange<CompositingQueryMode> m_disabler; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 // DeprecatedPaintLayer is an old object that handles lots of unrelated operatio
ns. | 91 // DeprecatedPaintLayer is an old object that handles lots of unrelated operatio
ns. |
| 92 // We want it to die at some point and be replaced by more focused objects. Remo
ving | 92 // We want it to die at some point and be replaced by more focused objects. Remo
ving |
| 93 // a lot of unneeded complexity. | 93 // a lot of unneeded complexity. |
| 94 // Complex painting operations (opacity, clipping, filters, reflections, ...), | 94 // Complex painting operations (opacity, clipping, filters, reflections, ...), |
| 95 // hardware acceleration (through DeprecatedPaintLayerCompositor), | 95 // hardware acceleration (through DeprecatedPaintLayerCompositor), |
| 96 // scrolling (through DeprecatedPaintLayerScrollableArea) | 96 // scrolling (through DeprecatedPaintLayerScrollableArea) |
| 97 // along with some optimizations are all handled by DeprecatedPaintLayer. | 97 // along with some optimizations are all handled by DeprecatedPaintLayer. |
| 98 // |
| 99 // The class is DEPRECATED, which means that we would like to remove it. The |
| 100 // reason for removal is that it has been a dumping ground for features for too |
| 101 // long and is the wrong level of abstraction, bearing no correspondence to any |
| 102 // CSS concept. Its associated objects and some of its feature need to be |
| 103 // migrated to LayoutObject (or the appropriate sub-class). |
| 98 class CORE_EXPORT DeprecatedPaintLayer { | 104 class CORE_EXPORT DeprecatedPaintLayer { |
| 99 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayer); | 105 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayer); |
| 100 public: | 106 public: |
| 101 DeprecatedPaintLayer(LayoutBoxModelObject*, DeprecatedPaintLayerType); | 107 DeprecatedPaintLayer(LayoutBoxModelObject*, DeprecatedPaintLayerType); |
| 102 ~DeprecatedPaintLayer(); | 108 ~DeprecatedPaintLayer(); |
| 103 | 109 |
| 104 String debugName() const; | 110 String debugName() const; |
| 105 | 111 |
| 106 LayoutBoxModelObject* layoutObject() const { return m_layoutObject; } | 112 LayoutBoxModelObject* layoutObject() const { return m_layoutObject; } |
| 107 LayoutBox* layoutBox() const { return m_layoutObject && m_layoutObject->isBo
x() ? toLayoutBox(m_layoutObject) : 0; } | 113 LayoutBox* layoutBox() const { return m_layoutObject && m_layoutObject->isBo
x() ? toLayoutBox(m_layoutObject) : 0; } |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 | 746 |
| 741 } // namespace blink | 747 } // namespace blink |
| 742 | 748 |
| 743 #ifndef NDEBUG | 749 #ifndef NDEBUG |
| 744 // Outside the WebCore namespace for ease of invocation from gdb. | 750 // Outside the WebCore namespace for ease of invocation from gdb. |
| 745 void showLayerTree(const blink::DeprecatedPaintLayer*); | 751 void showLayerTree(const blink::DeprecatedPaintLayer*); |
| 746 void showLayerTree(const blink::LayoutObject*); | 752 void showLayerTree(const blink::LayoutObject*); |
| 747 #endif | 753 #endif |
| 748 | 754 |
| 749 #endif // Layer_h | 755 #endif // Layer_h |
| OLD | NEW |