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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2716583005: Do not promote position sticky or fixed elements unless they move with scroll. (Closed)
Patch Set: Create a stacking context for sticky. Created 3 years, 9 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: third_party/WebKit/Source/core/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 722352becf6fc58e6e514082a7718b0e50d9d824..c5e304154247292aef688326c840a8346aafe341 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -617,7 +617,8 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
bool isInTopLayer() const;
- bool sticksToViewport() const;
+ bool sticksToScroller() const;
chrishtr 2017/03/16 00:24:04 Please add comments documenting these.
flackr 2017/03/20 21:04:59 Done.
+ bool fixedToViewport() const;
bool scrollsWithRespectTo(const PaintLayer*) const;
void addLayerHitTestRects(LayerHitTestRects&) const;

Powered by Google App Engine
This is Rietveld 408576698