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

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

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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
Index: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index 2b351acbe876fdb40e1a990f3556dc44d95b4dc3..6b1d625869c7c26fc4a934cbeb41f804a46bed44 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -867,6 +867,13 @@ public:
enum PaintOrderListType {BeforePromote, AfterPromote};
void computePaintOrderList(PaintOrderListType type, Vector<RefPtr<Node> >&);
+ enum ForceNeedsCompositedScrollingMode {
+ DoNotForceCompositedScrolling = 0,
+ CompositedScrollingAlwaysOn = 1,
+ CompositedScrollingAlwaysOff = 2
+ };
+ void setForceNeedsCompositedScrolling(ForceNeedsCompositedScrollingMode);
+
private:
enum CollectLayersBehavior { StopAtStackingContexts, StopAtStackingContainers };
@@ -914,6 +921,7 @@ private:
void updateOutOfFlowPositioned(const RenderStyle* oldStyle);
void updateNeedsCompositedScrolling();
+ void didUpdateNeedsCompositedScrolling();
// Returns true if the position changed.
bool updateLayerPosition();
@@ -1298,6 +1306,8 @@ protected:
CompositingProperties m_compositingProperties;
+ ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling;
+
private:
IntRect m_blockSelectionGapsBounds;
« no previous file with comments | « LayoutTests/compositing/overflow/build-paint-order-lists.html ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698