OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * 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@gmail.com> | 10 * Christian Biesinger <cbiesinger@gmail.com> |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 bool needsHorizontalScrollbar; | 842 bool needsHorizontalScrollbar; |
843 bool needsVerticalScrollbar; | 843 bool needsVerticalScrollbar; |
844 computeScrollbarExistence(needsHorizontalScrollbar, needsVerticalScrollbar); | 844 computeScrollbarExistence(needsHorizontalScrollbar, needsVerticalScrollbar); |
845 setHasHorizontalScrollbar(needsHorizontalScrollbar); | 845 setHasHorizontalScrollbar(needsHorizontalScrollbar); |
846 setHasVerticalScrollbar(needsVerticalScrollbar); | 846 setHasVerticalScrollbar(needsVerticalScrollbar); |
847 } | 847 } |
848 | 848 |
849 bool PaintLayerScrollableArea::shouldPerformScrollAnchoring() const { | 849 bool PaintLayerScrollableArea::shouldPerformScrollAnchoring() const { |
850 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && | 850 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && |
851 m_scrollAnchor.hasScroller() && | 851 m_scrollAnchor.hasScroller() && |
852 layoutBox()->style()->overflowAnchor() != AnchorNone && | 852 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::None && |
853 !box().document().finishingOrIsPrinting(); | 853 !box().document().finishingOrIsPrinting(); |
854 } | 854 } |
855 | 855 |
856 FloatQuad PaintLayerScrollableArea::localToVisibleContentQuad( | 856 FloatQuad PaintLayerScrollableArea::localToVisibleContentQuad( |
857 const FloatQuad& quad, | 857 const FloatQuad& quad, |
858 const LayoutObject* localObject, | 858 const LayoutObject* localObject, |
859 MapCoordinatesFlags flags) const { | 859 MapCoordinatesFlags flags) const { |
860 LayoutBox* box = layoutBox(); | 860 LayoutBox* box = layoutBox(); |
861 if (!box) | 861 if (!box) |
862 return quad; | 862 return quad; |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 | 2033 |
2034 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2034 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
2035 clampScrollableAreas() { | 2035 clampScrollableAreas() { |
2036 for (auto& scrollableArea : *s_needsClamp) | 2036 for (auto& scrollableArea : *s_needsClamp) |
2037 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2037 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
2038 delete s_needsClamp; | 2038 delete s_needsClamp; |
2039 s_needsClamp = nullptr; | 2039 s_needsClamp = nullptr; |
2040 } | 2040 } |
2041 | 2041 |
2042 } // namespace blink | 2042 } // namespace blink |
OLD | NEW |