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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2145823002: Implement the overflow-anchor CSS property as an opt-out for ScrollAnchoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put opt-out behind RuntimeEnabledFeature and update tests Created 4 years, 5 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Returns the widget associated with this ScrollableArea. 272 // Returns the widget associated with this ScrollableArea.
273 virtual Widget* getWidget() { return nullptr; } 273 virtual Widget* getWidget() { return nullptr; }
274 274
275 virtual LayoutBox* layoutBox() const { return nullptr; } 275 virtual LayoutBox* layoutBox() const { return nullptr; }
276 276
277 virtual bool isFrameView() const { return false; } 277 virtual bool isFrameView() const { return false; }
278 virtual bool isPaintLayerScrollableArea() const { return false; } 278 virtual bool isPaintLayerScrollableArea() const { return false; }
279 virtual bool isRootFrameViewport() const { return false; } 279 virtual bool isRootFrameViewport() const { return false; }
280 280
281 // Returns true if the scroller adjusts the scroll position to compensate
282 // for layout movements (bit.ly/scroll-anchoring).
283 virtual bool shouldPerformScrollAnchoring() const { return false; }
284
281 // Need to promptly let go of owned animator objects. 285 // Need to promptly let go of owned animator objects.
282 EAGERLY_FINALIZE(); 286 EAGERLY_FINALIZE();
283 DECLARE_VIRTUAL_TRACE(); 287 DECLARE_VIRTUAL_TRACE();
284 288
285 virtual void clearScrollAnimators(); 289 virtual void clearScrollAnimators();
286 290
287 protected: 291 protected:
288 ScrollableArea(); 292 ScrollableArea();
289 293
290 ScrollbarOrientation scrollbarOrientationFromDirection(ScrollDirectionPhysic al) const; 294 ScrollbarOrientation scrollbarOrientationFromDirection(ScrollDirectionPhysic al) const;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // vertical-lr / ltr NO NO 342 // vertical-lr / ltr NO NO
339 // vertical-lr / rtl NO YES 343 // vertical-lr / rtl NO YES
340 // vertical-rl / ltr YES NO 344 // vertical-rl / ltr YES NO
341 // vertical-rl / rtl YES YES 345 // vertical-rl / rtl YES YES
342 IntPoint m_scrollOrigin; 346 IntPoint m_scrollOrigin;
343 }; 347 };
344 348
345 } // namespace blink 349 } // namespace blink
346 350
347 #endif // ScrollableArea_h 351 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698