| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 , m_shouldIsolateCompositedDescendants(false) | 154 , m_shouldIsolateCompositedDescendants(false) |
| 155 , m_lostGroupedMapping(false) | 155 , m_lostGroupedMapping(false) |
| 156 , m_needsRepaint(false) | 156 , m_needsRepaint(false) |
| 157 , m_previousPaintResult(PaintLayerPainter::FullyPainted) | 157 , m_previousPaintResult(PaintLayerPainter::FullyPainted) |
| 158 , m_needsPaintPhaseDescendantOutlines(false) | 158 , m_needsPaintPhaseDescendantOutlines(false) |
| 159 , m_needsPaintPhaseFloat(false) | 159 , m_needsPaintPhaseFloat(false) |
| 160 , m_needsPaintPhaseDescendantBlockBackgrounds(false) | 160 , m_needsPaintPhaseDescendantBlockBackgrounds(false) |
| 161 , m_hasDescendantWithClipPath(false) | 161 , m_hasDescendantWithClipPath(false) |
| 162 , m_hasNonIsolatedDescendantWithBlendMode(false) | 162 , m_hasNonIsolatedDescendantWithBlendMode(false) |
| 163 , m_hasAncestorWithClipPath(false) | 163 , m_hasAncestorWithClipPath(false) |
| 164 , m_hasRootScrollerAsDescendant(false) |
| 164 , m_layoutObject(layoutObject) | 165 , m_layoutObject(layoutObject) |
| 165 , m_parent(0) | 166 , m_parent(0) |
| 166 , m_previous(0) | 167 , m_previous(0) |
| 167 , m_next(0) | 168 , m_next(0) |
| 168 , m_first(0) | 169 , m_first(0) |
| 169 , m_last(0) | 170 , m_last(0) |
| 170 , m_staticInlinePosition(0) | 171 , m_staticInlinePosition(0) |
| 171 , m_staticBlockPosition(0) | 172 , m_staticBlockPosition(0) |
| 172 , m_ancestorOverflowLayer(nullptr) | 173 , m_ancestorOverflowLayer(nullptr) |
| 173 { | 174 { |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 { | 971 { |
| 971 m_ancestorDependentCompositingInputs = compositingInputs; | 972 m_ancestorDependentCompositingInputs = compositingInputs; |
| 972 if (rareCompositingInputs.isDefault()) | 973 if (rareCompositingInputs.isDefault()) |
| 973 m_rareAncestorDependentCompositingInputs.reset(); | 974 m_rareAncestorDependentCompositingInputs.reset(); |
| 974 else | 975 else |
| 975 m_rareAncestorDependentCompositingInputs = wrapUnique(new RareAncestorDe
pendentCompositingInputs(rareCompositingInputs)); | 976 m_rareAncestorDependentCompositingInputs = wrapUnique(new RareAncestorDe
pendentCompositingInputs(rareCompositingInputs)); |
| 976 m_hasAncestorWithClipPath = hasAncestorWithClipPath; | 977 m_hasAncestorWithClipPath = hasAncestorWithClipPath; |
| 977 m_needsAncestorDependentCompositingInputsUpdate = false; | 978 m_needsAncestorDependentCompositingInputsUpdate = false; |
| 978 } | 979 } |
| 979 | 980 |
| 980 void PaintLayer::updateDescendantDependentCompositingInputs(bool hasDescendantWi
thClipPath, bool hasNonIsolatedDescendantWithBlendMode) | 981 void PaintLayer::updateDescendantDependentCompositingInputs(bool hasDescendantWi
thClipPath, bool hasNonIsolatedDescendantWithBlendMode, bool hasRootScrollerAsDe
scendant) |
| 981 { | 982 { |
| 982 m_hasDescendantWithClipPath = hasDescendantWithClipPath; | 983 m_hasDescendantWithClipPath = hasDescendantWithClipPath; |
| 983 m_hasNonIsolatedDescendantWithBlendMode = hasNonIsolatedDescendantWithBlendM
ode; | 984 m_hasNonIsolatedDescendantWithBlendMode = hasNonIsolatedDescendantWithBlendM
ode; |
| 985 m_hasRootScrollerAsDescendant = hasRootScrollerAsDescendant; |
| 984 m_needsDescendantDependentCompositingInputsUpdate = false; | 986 m_needsDescendantDependentCompositingInputsUpdate = false; |
| 985 } | 987 } |
| 986 | 988 |
| 987 void PaintLayer::didUpdateCompositingInputs() | 989 void PaintLayer::didUpdateCompositingInputs() |
| 988 { | 990 { |
| 989 ASSERT(!needsCompositingInputsUpdate()); | 991 ASSERT(!needsCompositingInputsUpdate()); |
| 990 m_childNeedsCompositingInputsUpdate = false; | 992 m_childNeedsCompositingInputsUpdate = false; |
| 991 if (m_scrollableArea) | 993 if (m_scrollableArea) |
| 992 m_scrollableArea->updateNeedsCompositedScrolling(); | 994 m_scrollableArea->updateNeedsCompositedScrolling(); |
| 993 } | 995 } |
| (...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2948 | 2950 |
| 2949 void showLayerTree(const blink::LayoutObject* layoutObject) | 2951 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2950 { | 2952 { |
| 2951 if (!layoutObject) { | 2953 if (!layoutObject) { |
| 2952 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2954 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2953 return; | 2955 return; |
| 2954 } | 2956 } |
| 2955 showLayerTree(layoutObject->enclosingLayer()); | 2957 showLayerTree(layoutObject->enclosingLayer()); |
| 2956 } | 2958 } |
| 2957 #endif | 2959 #endif |
| OLD | NEW |