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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2776563003: Only automatically promote sticky position elements which move with scroll. (Closed)
Patch Set: Merge with master Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 void updateFilters(const ComputedStyle* oldStyle, 615 void updateFilters(const ComputedStyle* oldStyle,
616 const ComputedStyle& newStyle); 616 const ComputedStyle& newStyle);
617 void updateClipPath(const ComputedStyle* oldStyle, 617 void updateClipPath(const ComputedStyle* oldStyle,
618 const ComputedStyle& newStyle); 618 const ComputedStyle& newStyle);
619 619
620 Node* enclosingNode() const; 620 Node* enclosingNode() const;
621 621
622 bool isInTopLayer() const; 622 bool isInTopLayer() const;
623 623
624 bool sticksToViewport() const; 624 // Returns true if the layer is sticky position and may stick to its
625 // ancestor overflow layer.
626 bool sticksToScroller() const;
627
628 // Returns true if the layer is fixed position and will not move with
629 // scrolling.
630 bool fixedToViewport() const;
625 bool scrollsWithRespectTo(const PaintLayer*) const; 631 bool scrollsWithRespectTo(const PaintLayer*) const;
626 632
627 void addLayerHitTestRects(LayerHitTestRects&) const; 633 void addLayerHitTestRects(LayerHitTestRects&) const;
628 634
629 // Compute rects only for this layer 635 // Compute rects only for this layer
630 void computeSelfHitTestRects(LayerHitTestRects&) const; 636 void computeSelfHitTestRects(LayerHitTestRects&) const;
631 637
632 // FIXME: This should probably return a ScrollableArea but a lot of internal 638 // FIXME: This should probably return a ScrollableArea but a lot of internal
633 // methods are mistakenly exposed. 639 // methods are mistakenly exposed.
634 PaintLayerScrollableArea* getScrollableArea() const { 640 PaintLayerScrollableArea* getScrollableArea() const {
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1258
1253 } // namespace blink 1259 } // namespace blink
1254 1260
1255 #ifndef NDEBUG 1261 #ifndef NDEBUG
1256 // Outside the WebCore namespace for ease of invocation from gdb. 1262 // Outside the WebCore namespace for ease of invocation from gdb.
1257 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1263 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1258 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1264 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1259 #endif 1265 #endif
1260 1266
1261 #endif // Layer_h 1267 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698