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 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
927 } | 927 } |
928 void setNeedsPaintPhaseDescendantOutlines() { | 928 void setNeedsPaintPhaseDescendantOutlines() { |
929 DCHECK(isSelfPaintingLayer()); | 929 DCHECK(isSelfPaintingLayer()); |
930 m_needsPaintPhaseDescendantOutlines = true; | 930 m_needsPaintPhaseDescendantOutlines = true; |
931 m_previousPaintPhaseDescendantOutlinesWasEmpty = false; | 931 m_previousPaintPhaseDescendantOutlinesWasEmpty = false; |
932 } | 932 } |
933 void setPreviousPaintPhaseDescendantOutlinesEmpty(bool isEmpty) { | 933 void setPreviousPaintPhaseDescendantOutlinesEmpty(bool isEmpty) { |
934 m_previousPaintPhaseDescendantOutlinesWasEmpty = isEmpty; | 934 m_previousPaintPhaseDescendantOutlinesWasEmpty = isEmpty; |
935 } | 935 } |
936 | 936 |
937 void setIsGlobalRootScroller(bool isGlobalRootScroller) { | |
chrishtr
2016/11/18 00:37:09
Why set these here? Why not just change all call s
bokan
2016/11/18 22:30:35
Yah, that's probably better. Fixed.
| |
938 m_isGlobalRootScroller = isGlobalRootScroller; | |
939 } | |
940 bool isGlobalRootScroller() { return m_isGlobalRootScroller; } | |
941 | |
937 // Similar to above, but for PaintPhaseFloat. | 942 // Similar to above, but for PaintPhaseFloat. |
938 bool needsPaintPhaseFloat() const { | 943 bool needsPaintPhaseFloat() const { |
939 return m_needsPaintPhaseFloat && !m_previousPaintPhaseFloatWasEmpty; | 944 return m_needsPaintPhaseFloat && !m_previousPaintPhaseFloatWasEmpty; |
940 } | 945 } |
941 void setNeedsPaintPhaseFloat() { | 946 void setNeedsPaintPhaseFloat() { |
942 DCHECK(isSelfPaintingLayer()); | 947 DCHECK(isSelfPaintingLayer()); |
943 m_needsPaintPhaseFloat = true; | 948 m_needsPaintPhaseFloat = true; |
944 m_previousPaintPhaseFloatWasEmpty = false; | 949 m_previousPaintPhaseFloatWasEmpty = false; |
945 } | 950 } |
946 void setPreviousPaintPhaseFloatEmpty(bool isEmpty) { | 951 void setPreviousPaintPhaseFloatEmpty(bool isEmpty) { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1167 static_assert(MaxPaintResult <= 2, | 1172 static_assert(MaxPaintResult <= 2, |
1168 "Should update number of bits of m_previousPaintResult"); | 1173 "Should update number of bits of m_previousPaintResult"); |
1169 | 1174 |
1170 unsigned m_needsPaintPhaseDescendantOutlines : 1; | 1175 unsigned m_needsPaintPhaseDescendantOutlines : 1; |
1171 unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1; | 1176 unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1; |
1172 unsigned m_needsPaintPhaseFloat : 1; | 1177 unsigned m_needsPaintPhaseFloat : 1; |
1173 unsigned m_previousPaintPhaseFloatWasEmpty : 1; | 1178 unsigned m_previousPaintPhaseFloatWasEmpty : 1; |
1174 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; | 1179 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; |
1175 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; | 1180 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; |
1176 | 1181 |
1182 unsigned m_isGlobalRootScroller : 1; | |
1183 | |
1177 // These bitfields are part of ancestor/descendant dependent compositing | 1184 // These bitfields are part of ancestor/descendant dependent compositing |
1178 // inputs. | 1185 // inputs. |
1179 unsigned m_hasDescendantWithClipPath : 1; | 1186 unsigned m_hasDescendantWithClipPath : 1; |
1180 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; | 1187 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; |
1181 unsigned m_hasAncestorWithClipPath : 1; | 1188 unsigned m_hasAncestorWithClipPath : 1; |
1182 unsigned m_hasRootScrollerAsDescendant : 1; | 1189 unsigned m_hasRootScrollerAsDescendant : 1; |
1183 | 1190 |
1184 LayoutBoxModelObject* m_layoutObject; | 1191 LayoutBoxModelObject* m_layoutObject; |
1185 | 1192 |
1186 PaintLayer* m_parent; | 1193 PaintLayer* m_parent; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1224 | 1231 |
1225 } // namespace blink | 1232 } // namespace blink |
1226 | 1233 |
1227 #ifndef NDEBUG | 1234 #ifndef NDEBUG |
1228 // Outside the WebCore namespace for ease of invocation from gdb. | 1235 // Outside the WebCore namespace for ease of invocation from gdb. |
1229 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1236 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1230 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1237 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1231 #endif | 1238 #endif |
1232 | 1239 |
1233 #endif // Layer_h | 1240 #endif // Layer_h |
OLD | NEW |