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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 } | 926 } |
927 void setNeedsPaintPhaseDescendantOutlines() { | 927 void setNeedsPaintPhaseDescendantOutlines() { |
928 DCHECK(isSelfPaintingLayer()); | 928 DCHECK(isSelfPaintingLayer()); |
929 m_needsPaintPhaseDescendantOutlines = true; | 929 m_needsPaintPhaseDescendantOutlines = true; |
930 m_previousPaintPhaseDescendantOutlinesWasEmpty = false; | 930 m_previousPaintPhaseDescendantOutlinesWasEmpty = false; |
931 } | 931 } |
932 void setPreviousPaintPhaseDescendantOutlinesEmpty(bool isEmpty) { | 932 void setPreviousPaintPhaseDescendantOutlinesEmpty(bool isEmpty) { |
933 m_previousPaintPhaseDescendantOutlinesWasEmpty = isEmpty; | 933 m_previousPaintPhaseDescendantOutlinesWasEmpty = isEmpty; |
934 } | 934 } |
935 | 935 |
| 936 void setIsRootScroller(bool isRootScroller) { |
| 937 m_isRootScroller = isRootScroller; |
| 938 } |
| 939 bool isRootScroller() { return m_isRootScroller; } |
| 940 |
936 // Similar to above, but for PaintPhaseFloat. | 941 // Similar to above, but for PaintPhaseFloat. |
937 bool needsPaintPhaseFloat() const { | 942 bool needsPaintPhaseFloat() const { |
938 return m_needsPaintPhaseFloat && !m_previousPaintPhaseFloatWasEmpty; | 943 return m_needsPaintPhaseFloat && !m_previousPaintPhaseFloatWasEmpty; |
939 } | 944 } |
940 void setNeedsPaintPhaseFloat() { | 945 void setNeedsPaintPhaseFloat() { |
941 DCHECK(isSelfPaintingLayer()); | 946 DCHECK(isSelfPaintingLayer()); |
942 m_needsPaintPhaseFloat = true; | 947 m_needsPaintPhaseFloat = true; |
943 m_previousPaintPhaseFloatWasEmpty = false; | 948 m_previousPaintPhaseFloatWasEmpty = false; |
944 } | 949 } |
945 void setPreviousPaintPhaseFloatEmpty(bool isEmpty) { | 950 void setPreviousPaintPhaseFloatEmpty(bool isEmpty) { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 unsigned m_needsRepaint : 1; | 1169 unsigned m_needsRepaint : 1; |
1165 unsigned m_previousPaintResult : 1; // PaintLayerPainter::PaintResult | 1170 unsigned m_previousPaintResult : 1; // PaintLayerPainter::PaintResult |
1166 | 1171 |
1167 unsigned m_needsPaintPhaseDescendantOutlines : 1; | 1172 unsigned m_needsPaintPhaseDescendantOutlines : 1; |
1168 unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1; | 1173 unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1; |
1169 unsigned m_needsPaintPhaseFloat : 1; | 1174 unsigned m_needsPaintPhaseFloat : 1; |
1170 unsigned m_previousPaintPhaseFloatWasEmpty : 1; | 1175 unsigned m_previousPaintPhaseFloatWasEmpty : 1; |
1171 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; | 1176 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; |
1172 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; | 1177 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; |
1173 | 1178 |
| 1179 unsigned m_isRootScroller : 1; |
| 1180 |
1174 // These bitfields are part of ancestor/descendant dependent compositing | 1181 // These bitfields are part of ancestor/descendant dependent compositing |
1175 // inputs. | 1182 // inputs. |
1176 unsigned m_hasDescendantWithClipPath : 1; | 1183 unsigned m_hasDescendantWithClipPath : 1; |
1177 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; | 1184 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; |
1178 unsigned m_hasAncestorWithClipPath : 1; | 1185 unsigned m_hasAncestorWithClipPath : 1; |
1179 unsigned m_hasRootScrollerAsDescendant : 1; | 1186 unsigned m_hasRootScrollerAsDescendant : 1; |
1180 | 1187 |
1181 LayoutBoxModelObject* m_layoutObject; | 1188 LayoutBoxModelObject* m_layoutObject; |
1182 | 1189 |
1183 PaintLayer* m_parent; | 1190 PaintLayer* m_parent; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 | 1228 |
1222 } // namespace blink | 1229 } // namespace blink |
1223 | 1230 |
1224 #ifndef NDEBUG | 1231 #ifndef NDEBUG |
1225 // Outside the WebCore namespace for ease of invocation from gdb. | 1232 // Outside the WebCore namespace for ease of invocation from gdb. |
1226 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1233 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1227 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1234 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1228 #endif | 1235 #endif |
1229 | 1236 |
1230 #endif // Layer_h | 1237 #endif // Layer_h |
OLD | NEW |