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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 2417303002: Refactor PLSA scrollbar existence calculation. (Closed)
Patch Set: Sync + rebaseline invalidation tests. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 3dbebffcc004b8b14126ffbf7d94bd82c6775ae7..38a974378f6b2f6a371837748ee07b4318ceca84 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -510,6 +510,12 @@ class CORE_EXPORT PaintLayerScrollableArea final
int horizontalScrollbarStart(int minX) const;
IntSize scrollbarOffset(const Scrollbar&) const;
+ enum ComputeScrollbarExistenceOption { Default, ForbidAddingAutoBars };
+ void computeScrollbarExistence(
+ bool& needsHorizontalScrollbar,
+ bool& needsVerticalScrollbar,
+ ComputeScrollbarExistenceOption = Default) const;
+
void setHasHorizontalScrollbar(bool hasScrollbar);
void setHasVerticalScrollbar(bool hasScrollbar);

Powered by Google App Engine
This is Rietveld 408576698