Index: Source/core/rendering/RenderLayer.h |
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h |
index b0e5ffbd6c6cbd34717db55785cace48550097dc..de37e9a4b4dc5cfa6c79e9046ec7aed67962b07f 100644 |
--- a/Source/core/rendering/RenderLayer.h |
+++ b/Source/core/rendering/RenderLayer.h |
@@ -424,11 +424,17 @@ public: |
bool isInTopLayerSubtree() const; |
enum ViewportConstrainedNotCompositedReason { |
- NoNotCompositedReason, |
+ NoNotCompositedReason = 0, |
NotCompositedForBoundsOutOfView, |
NotCompositedForNonViewContainer, |
NotCompositedForNoVisibleContent, |
NotCompositedForUnscrollableAncestors, |
+ NumNotCompositedReasons, |
+ |
+ // This is the number of bits used to store the viewport constrained not composited |
+ // reasons. We define this constant since sizeof won't return the number of bits, and we |
+ // shouldn't duplicate the constant. |
+ ViewportConstrainedNotCompositedReasonBits = 3 |
}; |
void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotCompositedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReason = reason; } |
@@ -731,7 +737,7 @@ protected: |
bool lostGroupedMapping : 1; |
// The reason, if any exists, that a fixed-position layer is chosen not to be composited. |
- unsigned viewportConstrainedNotCompositedReason : 2; |
+ unsigned viewportConstrainedNotCompositedReason : ViewportConstrainedNotCompositedReasonBits; |
// Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield. |
CompositingReasons compositingReasons; |