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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 bool needsCompositingInputsUpdate() const { | 702 bool needsCompositingInputsUpdate() const { |
703 return m_needsAncestorDependentCompositingInputsUpdate; | 703 return m_needsAncestorDependentCompositingInputsUpdate; |
704 } | 704 } |
705 | 705 |
706 void updateAncestorOverflowLayer(const PaintLayer* ancestorOverflowLayer) { | 706 void updateAncestorOverflowLayer(const PaintLayer* ancestorOverflowLayer) { |
707 m_ancestorOverflowLayer = ancestorOverflowLayer; | 707 m_ancestorOverflowLayer = ancestorOverflowLayer; |
708 } | 708 } |
709 void updateAncestorDependentCompositingInputs( | 709 void updateAncestorDependentCompositingInputs( |
710 const AncestorDependentCompositingInputs&, | 710 const AncestorDependentCompositingInputs&, |
711 bool hasAncestorWithClipPath); | 711 bool hasAncestorWithClipPath); |
712 void updateDescendantDependentCompositingInputs( | |
713 bool hasDescendantWithClipPath, | |
714 bool hasNonIsolatedDescendantWithBlendMode, | |
715 bool hasRootScrollerAsDescendant); | |
716 void didUpdateCompositingInputs(); | 712 void didUpdateCompositingInputs(); |
717 | 713 |
718 const IntRect& clippedAbsoluteBoundingBox() const { | 714 const IntRect& clippedAbsoluteBoundingBox() const { |
719 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); | 715 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); |
720 return m_ancestorDependentCompositingInputs->clippedAbsoluteBoundingBox; | 716 return m_ancestorDependentCompositingInputs->clippedAbsoluteBoundingBox; |
721 } | 717 } |
722 const IntRect& unclippedAbsoluteBoundingBox() const { | 718 const IntRect& unclippedAbsoluteBoundingBox() const { |
723 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); | 719 DCHECK(!m_needsAncestorDependentCompositingInputsUpdate); |
724 return m_ancestorDependentCompositingInputs->unclippedAbsoluteBoundingBox; | 720 return m_ancestorDependentCompositingInputs->unclippedAbsoluteBoundingBox; |
725 } | 721 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 779 |
784 // Returns true if there is a descendant with blend-mode that is | 780 // Returns true if there is a descendant with blend-mode that is |
785 // not contained within another enclosing stacking context other | 781 // not contained within another enclosing stacking context other |
786 // than the stacking context blend-mode creates, or the stacking | 782 // than the stacking context blend-mode creates, or the stacking |
787 // context this PaintLayer might create. This is needed because | 783 // context this PaintLayer might create. This is needed because |
788 // blend-mode content needs to blend with the containing stacking | 784 // blend-mode content needs to blend with the containing stacking |
789 // context's painted output, but not the content in any grandparent | 785 // context's painted output, but not the content in any grandparent |
790 // stacking contexts. | 786 // stacking contexts. |
791 bool hasNonIsolatedDescendantWithBlendMode() const; | 787 bool hasNonIsolatedDescendantWithBlendMode() const; |
792 | 788 |
793 bool hasRootScrollerAsDescendant() const { | |
794 DCHECK(!m_needsDescendantDependentFlagsUpdate); | |
795 return m_hasRootScrollerAsDescendant; | |
796 } | |
797 | |
798 bool lostGroupedMapping() const { | 789 bool lostGroupedMapping() const { |
799 DCHECK(isAllowedToQueryCompositingState()); | 790 DCHECK(isAllowedToQueryCompositingState()); |
800 return m_lostGroupedMapping; | 791 return m_lostGroupedMapping; |
801 } | 792 } |
802 void setLostGroupedMapping(bool b) { m_lostGroupedMapping = b; } | 793 void setLostGroupedMapping(bool b) { m_lostGroupedMapping = b; } |
803 | 794 |
804 CompositingReasons getCompositingReasons() const { | 795 CompositingReasons getCompositingReasons() const { |
805 DCHECK(isAllowedToQueryCompositingState()); | 796 DCHECK(isAllowedToQueryCompositingState()); |
806 return m_rareData ? m_rareData->compositingReasons : CompositingReasonNone; | 797 return m_rareData ? m_rareData->compositingReasons : CompositingReasonNone; |
807 } | 798 } |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 unsigned m_needsPaintPhaseFloat : 1; | 1190 unsigned m_needsPaintPhaseFloat : 1; |
1200 unsigned m_previousPaintPhaseFloatWasEmpty : 1; | 1191 unsigned m_previousPaintPhaseFloatWasEmpty : 1; |
1201 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; | 1192 unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1; |
1202 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; | 1193 unsigned m_previousPaintPhaseDescendantBlockBackgroundsWasEmpty : 1; |
1203 | 1194 |
1204 // These bitfields are part of ancestor/descendant dependent compositing | 1195 // These bitfields are part of ancestor/descendant dependent compositing |
1205 // inputs. | 1196 // inputs. |
1206 unsigned m_hasDescendantWithClipPath : 1; | 1197 unsigned m_hasDescendantWithClipPath : 1; |
1207 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; | 1198 unsigned m_hasNonIsolatedDescendantWithBlendMode : 1; |
1208 unsigned m_hasAncestorWithClipPath : 1; | 1199 unsigned m_hasAncestorWithClipPath : 1; |
1209 unsigned m_hasRootScrollerAsDescendant : 1; | |
1210 | 1200 |
1211 unsigned m_selfPaintingStatusChanged : 1; | 1201 unsigned m_selfPaintingStatusChanged : 1; |
1212 | 1202 |
1213 LayoutBoxModelObject& m_layoutObject; | 1203 LayoutBoxModelObject& m_layoutObject; |
1214 | 1204 |
1215 PaintLayer* m_parent; | 1205 PaintLayer* m_parent; |
1216 PaintLayer* m_previous; | 1206 PaintLayer* m_previous; |
1217 PaintLayer* m_next; | 1207 PaintLayer* m_next; |
1218 PaintLayer* m_first; | 1208 PaintLayer* m_first; |
1219 PaintLayer* m_last; | 1209 PaintLayer* m_last; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 | 1246 |
1257 } // namespace blink | 1247 } // namespace blink |
1258 | 1248 |
1259 #ifndef NDEBUG | 1249 #ifndef NDEBUG |
1260 // Outside the WebCore namespace for ease of invocation from gdb. | 1250 // Outside the WebCore namespace for ease of invocation from gdb. |
1261 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1251 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1262 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1252 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1263 #endif | 1253 #endif |
1264 | 1254 |
1265 #endif // Layer_h | 1255 #endif // Layer_h |
OLD | NEW |