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

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

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index d5748a61a533ed93610300bda459836bfcd96972..bb34c1446e6cd6fbc3af65c2f53a24a3e49fe832 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -238,7 +238,7 @@ GraphicsLayer* PaintLayerScrollableArea::layerForScrollCorner() const {
bool PaintLayerScrollableArea::shouldUseIntegerScrollOffset() const {
Frame* frame = box().frame();
if (frame->settings() &&
- !frame->settings()->preferCompositingToLCDTextEnabled())
+ !frame->settings()->getPreferCompositingToLCDTextEnabled())
return true;
return ScrollableArea::shouldUseIntegerScrollOffset();
@@ -553,7 +553,7 @@ IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const {
bool PaintLayerScrollableArea::scrollAnimatorEnabled() const {
if (Settings* settings = box().frame()->settings())
- return settings->scrollAnimatorEnabled();
+ return settings->getScrollAnimatorEnabled();
return false;
}
@@ -835,7 +835,7 @@ void PaintLayerScrollableArea::didChangeGlobalRootScroller() {
// that can cause layout but this should only ever apply with overlay
// scrollbars.
if (!box().frame()->settings() ||
- !box().frame()->settings()->viewportEnabled())
+ !box().frame()->settings()->getViewportEnabled())
return;
bool needsHorizontalScrollbar;
@@ -1086,7 +1086,7 @@ static inline const LayoutObject& layoutObjectForScrollbar(
if (layoutObject.isLayoutView()) {
Document& doc = node->document();
if (Settings* settings = doc.settings()) {
- if (!settings->allowCustomScrollbarInMainFrame() &&
+ if (!settings->getAllowCustomScrollbarInMainFrame() &&
layoutObject.frame() && layoutObject.frame()->isMainFrame())
return layoutObject;
}
@@ -1153,7 +1153,7 @@ void PaintLayerScrollableArea::computeScrollbarExistence(
// Scrollbars may be hidden or provided by visual viewport or frame instead.
DCHECK(box().frame()->settings());
if (visualViewportSuppliesScrollbars() || !canHaveOverflowScrollbars(box()) ||
- box().frame()->settings()->hideScrollbars()) {
+ box().frame()->settings()->getHideScrollbars()) {
needsHorizontalScrollbar = false;
needsVerticalScrollbar = false;
return;
@@ -1837,7 +1837,7 @@ bool PaintLayerScrollableArea::visualViewportSuppliesScrollbars() const {
return false;
// On desktop, we always use the layout viewport's scrollbars.
- if (!frame->settings()->viewportEnabled())
+ if (!frame->settings()->getViewportEnabled())
return false;
const TopDocumentRootScrollerController& controller =
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698