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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp

Issue 2942163002: [Refactor] Moved scrollbar creation and deletion to ScrollbarManager (Closed)
Patch Set: change ShouldUseCustomScrollbars Created 3 years, 6 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/PaintInvalidationCapableScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
index 1f51ca229cdd69df76bb2411d7d12a02d0c7cd74..2971b73dc39ade232fa88f9244c95c414f2625a0 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidationCapableScrollableArea.cpp
@@ -280,4 +280,13 @@ void PaintInvalidationCapableScrollableArea::DidScrollWithScrollbar(
UseCounter::Count(GetLayoutBox()->GetDocument(), scrollbar_use_uma);
}
+bool PaintInvalidationCapableScrollableArea::ShouldUseCustomScrollbars(
skobes 2017/06/27 18:48:15 I think this method would make more sense on Layou
+ LayoutObject*& style_source) const {
bokan 2017/06/27 17:48:52 This method shouldn't have an output param. The ca
+ DCHECK(!style_source);
+ style_source = LayoutObjectForScrollbars();
+
+ return style_source && style_source->IsBox() &&
+ style_source->StyleRef().HasPseudoStyle(kPseudoIdScrollbar);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698