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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2658953004: Rename EOverflowAnchor values with k prefix. (Closed)
Patch Set: Created 3 years, 10 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ScrollAnchor.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698