From c5790fed3fbc91cbbf23f99dc4df4efed844d248 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Mon, 4 Mar 2024 14:30:22 +0000 Subject: [PATCH] Bug 1879770 Part 1 - Mark IntrinsicScrollbarGutterSizeAtInlineEdges() const. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D201892 --- layout/generic/nsGfxScrollFrame.cpp | 2 +- layout/generic/nsGfxScrollFrame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 72c92a4c04ea..22bf02c47c0e 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -1172,7 +1172,7 @@ void nsHTMLScrollFrame::PlaceScrollArea(ScrollReflowInput& aState, scrolledArea, ReflowChildFlags::Default); } -nscoord nsHTMLScrollFrame::IntrinsicScrollbarGutterSizeAtInlineEdges() { +nscoord nsHTMLScrollFrame::IntrinsicScrollbarGutterSizeAtInlineEdges() const { const bool isVerticalWM = GetWritingMode().IsVertical(); if (PresContext()->UseOverlayScrollbars()) { return 0; diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index e05a2a077bdd..63f375dfce9e 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -110,7 +110,7 @@ class nsHTMLScrollFrame : public nsContainerFrame, // Return the sum of inline-size of the scrollbar gutters (if any) at the // inline-start and inline-end edges of the scroll frame (for a potential // scrollbar that scrolls in the block axis). - nscoord IntrinsicScrollbarGutterSizeAtInlineEdges(); + nscoord IntrinsicScrollbarGutterSizeAtInlineEdges() const; // Compute stable scrollbar-gutter from scrollbar-width and scrollbar-gutter // properties.