OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 , m_previousPaintResult(PaintLayerPainter::FullyPainted) | 160 , m_previousPaintResult(PaintLayerPainter::FullyPainted) |
161 , m_needsPaintPhaseDescendantOutlines(false) | 161 , m_needsPaintPhaseDescendantOutlines(false) |
162 , m_previousPaintPhaseDescendantOutlinesWasEmpty(false) | 162 , m_previousPaintPhaseDescendantOutlinesWasEmpty(false) |
163 , m_needsPaintPhaseFloat(false) | 163 , m_needsPaintPhaseFloat(false) |
164 , m_previousPaintPhaseFloatWasEmpty(false) | 164 , m_previousPaintPhaseFloatWasEmpty(false) |
165 , m_needsPaintPhaseDescendantBlockBackgrounds(false) | 165 , m_needsPaintPhaseDescendantBlockBackgrounds(false) |
166 , m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty(false) | 166 , m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty(false) |
167 , m_hasDescendantWithClipPath(false) | 167 , m_hasDescendantWithClipPath(false) |
168 , m_hasNonIsolatedDescendantWithBlendMode(false) | 168 , m_hasNonIsolatedDescendantWithBlendMode(false) |
169 , m_hasAncestorWithClipPath(false) | 169 , m_hasAncestorWithClipPath(false) |
| 170 , m_hasRootScrollerAsDescendant(false) |
170 , m_layoutObject(layoutObject) | 171 , m_layoutObject(layoutObject) |
171 , m_parent(0) | 172 , m_parent(0) |
172 , m_previous(0) | 173 , m_previous(0) |
173 , m_next(0) | 174 , m_next(0) |
174 , m_first(0) | 175 , m_first(0) |
175 , m_last(0) | 176 , m_last(0) |
176 , m_staticInlinePosition(0) | 177 , m_staticInlinePosition(0) |
177 , m_staticBlockPosition(0) | 178 , m_staticBlockPosition(0) |
178 , m_ancestorOverflowLayer(nullptr) | 179 , m_ancestorOverflowLayer(nullptr) |
179 { | 180 { |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 { | 977 { |
977 m_ancestorDependentCompositingInputs = compositingInputs; | 978 m_ancestorDependentCompositingInputs = compositingInputs; |
978 if (rareCompositingInputs.isDefault()) | 979 if (rareCompositingInputs.isDefault()) |
979 m_rareAncestorDependentCompositingInputs.reset(); | 980 m_rareAncestorDependentCompositingInputs.reset(); |
980 else | 981 else |
981 m_rareAncestorDependentCompositingInputs = wrapUnique(new RareAncestorDe
pendentCompositingInputs(rareCompositingInputs)); | 982 m_rareAncestorDependentCompositingInputs = wrapUnique(new RareAncestorDe
pendentCompositingInputs(rareCompositingInputs)); |
982 m_hasAncestorWithClipPath = hasAncestorWithClipPath; | 983 m_hasAncestorWithClipPath = hasAncestorWithClipPath; |
983 m_needsAncestorDependentCompositingInputsUpdate = false; | 984 m_needsAncestorDependentCompositingInputsUpdate = false; |
984 } | 985 } |
985 | 986 |
986 void PaintLayer::updateDescendantDependentCompositingInputs(bool hasDescendantWi
thClipPath, bool hasNonIsolatedDescendantWithBlendMode) | 987 void PaintLayer::updateDescendantDependentCompositingInputs(bool hasDescendantWi
thClipPath, bool hasNonIsolatedDescendantWithBlendMode, bool hasRootScrollerAsDe
scendant) |
987 { | 988 { |
988 m_hasDescendantWithClipPath = hasDescendantWithClipPath; | 989 m_hasDescendantWithClipPath = hasDescendantWithClipPath; |
989 m_hasNonIsolatedDescendantWithBlendMode = hasNonIsolatedDescendantWithBlendM
ode; | 990 m_hasNonIsolatedDescendantWithBlendMode = hasNonIsolatedDescendantWithBlendM
ode; |
| 991 m_hasRootScrollerAsDescendant = hasRootScrollerAsDescendant; |
990 m_needsDescendantDependentCompositingInputsUpdate = false; | 992 m_needsDescendantDependentCompositingInputsUpdate = false; |
991 } | 993 } |
992 | 994 |
993 void PaintLayer::didUpdateCompositingInputs() | 995 void PaintLayer::didUpdateCompositingInputs() |
994 { | 996 { |
995 ASSERT(!needsCompositingInputsUpdate()); | 997 ASSERT(!needsCompositingInputsUpdate()); |
996 m_childNeedsCompositingInputsUpdate = false; | 998 m_childNeedsCompositingInputsUpdate = false; |
997 if (m_scrollableArea) | 999 if (m_scrollableArea) |
998 m_scrollableArea->updateNeedsCompositedScrolling(); | 1000 m_scrollableArea->updateNeedsCompositedScrolling(); |
999 } | 1001 } |
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2980 | 2982 |
2981 void showLayerTree(const blink::LayoutObject* layoutObject) | 2983 void showLayerTree(const blink::LayoutObject* layoutObject) |
2982 { | 2984 { |
2983 if (!layoutObject) { | 2985 if (!layoutObject) { |
2984 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2986 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2985 return; | 2987 return; |
2986 } | 2988 } |
2987 showLayerTree(layoutObject->enclosingLayer()); | 2989 showLayerTree(layoutObject->enclosingLayer()); |
2988 } | 2990 } |
2989 #endif | 2991 #endif |
OLD | NEW |