| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo;
} | 417 void setHasFilterInfo(bool hasFilterInfo) { m_hasFilterInfo = hasFilterInfo;
} |
| 418 | 418 |
| 419 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle)
; | 419 void updateFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle)
; |
| 420 | 420 |
| 421 Node* enclosingElement() const; | 421 Node* enclosingElement() const; |
| 422 | 422 |
| 423 bool isInTopLayer() const; | 423 bool isInTopLayer() const; |
| 424 bool isInTopLayerSubtree() const; | 424 bool isInTopLayerSubtree() const; |
| 425 | 425 |
| 426 enum ViewportConstrainedNotCompositedReason { | 426 enum ViewportConstrainedNotCompositedReason { |
| 427 NoNotCompositedReason, | 427 NoNotCompositedReason = 0, |
| 428 NotCompositedForBoundsOutOfView, | 428 NotCompositedForBoundsOutOfView, |
| 429 NotCompositedForNonViewContainer, | 429 NotCompositedForNonViewContainer, |
| 430 NotCompositedForNoVisibleContent, | 430 NotCompositedForNoVisibleContent, |
| 431 NotCompositedForUnscrollableAncestors, | 431 NotCompositedForUnscrollableAncestors, |
| 432 NumNotCompositedReasons |
| 432 }; | 433 }; |
| 433 | 434 |
| 434 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi
tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas
on = reason; } | 435 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi
tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas
on = reason; } |
| 435 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso
n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi
tingProperties.viewportConstrainedNotCompositedReason); } | 436 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso
n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi
tingProperties.viewportConstrainedNotCompositedReason); } |
| 436 | 437 |
| 437 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen
derFlowThread(); } | 438 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen
derFlowThread(); } |
| 438 | 439 |
| 439 bool scrollsWithRespectTo(const RenderLayer*) const; | 440 bool scrollsWithRespectTo(const RenderLayer*) const; |
| 440 | 441 |
| 441 void addLayerHitTestRects(LayerHitTestRects&) const; | 442 void addLayerHitTestRects(LayerHitTestRects&) const; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 bool hasNonCompositedChild : 1; | 725 bool hasNonCompositedChild : 1; |
| 725 | 726 |
| 726 // Should be for stacking contexts having unisolated blending descendant
s. | 727 // Should be for stacking contexts having unisolated blending descendant
s. |
| 727 bool shouldIsolateCompositedDescendants : 1; | 728 bool shouldIsolateCompositedDescendants : 1; |
| 728 | 729 |
| 729 // True if this render layer just lost its grouped mapping due to the Co
mpositedLayerMapping being destroyed, | 730 // True if this render layer just lost its grouped mapping due to the Co
mpositedLayerMapping being destroyed, |
| 730 // and we don't yet know to what graphics layer this RenderLayer will be
assigned. | 731 // and we don't yet know to what graphics layer this RenderLayer will be
assigned. |
| 731 bool lostGroupedMapping : 1; | 732 bool lostGroupedMapping : 1; |
| 732 | 733 |
| 733 // The reason, if any exists, that a fixed-position layer is chosen not
to be composited. | 734 // The reason, if any exists, that a fixed-position layer is chosen not
to be composited. |
| 734 unsigned viewportConstrainedNotCompositedReason : 2; | 735 unsigned viewportConstrainedNotCompositedReason : 3; |
| 735 | 736 |
| 736 // Once computed, indicates all that a layer needs to become composited
using the CompositingReasons enum bitfield. | 737 // Once computed, indicates all that a layer needs to become composited
using the CompositingReasons enum bitfield. |
| 737 CompositingReasons compositingReasons; | 738 CompositingReasons compositingReasons; |
| 738 | 739 |
| 739 // Used for invalidating this layer's contents on the squashing Graphics
Layer. | 740 // Used for invalidating this layer's contents on the squashing Graphics
Layer. |
| 740 IntSize offsetFromSquashingLayerOrigin; | 741 IntSize offsetFromSquashingLayerOrigin; |
| 741 }; | 742 }; |
| 742 | 743 |
| 743 CompositingProperties m_compositingProperties; | 744 CompositingProperties m_compositingProperties; |
| 744 | 745 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 759 | 760 |
| 760 } // namespace WebCore | 761 } // namespace WebCore |
| 761 | 762 |
| 762 #ifndef NDEBUG | 763 #ifndef NDEBUG |
| 763 // Outside the WebCore namespace for ease of invocation from gdb. | 764 // Outside the WebCore namespace for ease of invocation from gdb. |
| 764 void showLayerTree(const WebCore::RenderLayer*); | 765 void showLayerTree(const WebCore::RenderLayer*); |
| 765 void showLayerTree(const WebCore::RenderObject*); | 766 void showLayerTree(const WebCore::RenderObject*); |
| 766 #endif | 767 #endif |
| 767 | 768 |
| 768 #endif // RenderLayer_h | 769 #endif // RenderLayer_h |
| OLD | NEW |