Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1681)

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 177653010: Increase width of viewportConstrainedNotCompositingReasons (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index b0e5ffbd6c6cbd34717db55785cace48550097dc..f608430adec6436ab5e71ff3fe26cfc120281242 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -431,7 +431,12 @@ public:
NotCompositedForUnscrollableAncestors,
};
- void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotCompositedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReason = reason; }
+ void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotCompositedReason reason)
+ {
+ m_compositingProperties.viewportConstrainedNotCompositedReason = reason;
+ ASSERT(viewportConstrainedNotCompositedReason() == reason);
enne (OOO) 2014/02/28 20:47:07 Not sure this makes any sense either anymore.
+ }
+
ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReason() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_compositingProperties.viewportConstrainedNotCompositedReason); }
bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRenderFlowThread(); }
@@ -731,7 +736,7 @@ protected:
bool lostGroupedMapping : 1;
// The reason, if any exists, that a fixed-position layer is chosen not to be composited.
- unsigned viewportConstrainedNotCompositedReason : 2;
+ ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReason;
// Once computed, indicates all that a layer needs to become composited using the CompositingReasons enum bitfield.
CompositingReasons compositingReasons;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698