| 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 bool needsHorizontalScrollbar; | 861 bool needsHorizontalScrollbar; |
| 862 bool needsVerticalScrollbar; | 862 bool needsVerticalScrollbar; |
| 863 computeScrollbarExistence(needsHorizontalScrollbar, needsVerticalScrollbar); | 863 computeScrollbarExistence(needsHorizontalScrollbar, needsVerticalScrollbar); |
| 864 setHasHorizontalScrollbar(needsHorizontalScrollbar); | 864 setHasHorizontalScrollbar(needsHorizontalScrollbar); |
| 865 setHasVerticalScrollbar(needsVerticalScrollbar); | 865 setHasVerticalScrollbar(needsVerticalScrollbar); |
| 866 } | 866 } |
| 867 | 867 |
| 868 bool PaintLayerScrollableArea::shouldPerformScrollAnchoring() const { | 868 bool PaintLayerScrollableArea::shouldPerformScrollAnchoring() const { |
| 869 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && | 869 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && |
| 870 m_scrollAnchor.hasScroller() && | 870 m_scrollAnchor.hasScroller() && |
| 871 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::None && | 871 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::kNone && |
| 872 !box().document().finishingOrIsPrinting(); | 872 !box().document().finishingOrIsPrinting(); |
| 873 } | 873 } |
| 874 | 874 |
| 875 FloatQuad PaintLayerScrollableArea::localToVisibleContentQuad( | 875 FloatQuad PaintLayerScrollableArea::localToVisibleContentQuad( |
| 876 const FloatQuad& quad, | 876 const FloatQuad& quad, |
| 877 const LayoutObject* localObject, | 877 const LayoutObject* localObject, |
| 878 MapCoordinatesFlags flags) const { | 878 MapCoordinatesFlags flags) const { |
| 879 LayoutBox* box = layoutBox(); | 879 LayoutBox* box = layoutBox(); |
| 880 if (!box) | 880 if (!box) |
| 881 return quad; | 881 return quad; |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2117 | 2117 |
| 2118 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2118 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
| 2119 clampScrollableAreas() { | 2119 clampScrollableAreas() { |
| 2120 for (auto& scrollableArea : *s_needsClamp) | 2120 for (auto& scrollableArea : *s_needsClamp) |
| 2121 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2121 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
| 2122 delete s_needsClamp; | 2122 delete s_needsClamp; |
| 2123 s_needsClamp = nullptr; | 2123 s_needsClamp = nullptr; |
| 2124 } | 2124 } |
| 2125 | 2125 |
| 2126 } // namespace blink | 2126 } // namespace blink |
| OLD | NEW |