Bug 1879770 Part 1 - Mark IntrinsicScrollbarGutterSizeAtInlineEdges() const. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D201892
This commit is contained in:
Ting-Yu Lin 2024-03-04 14:30:22 +00:00
parent 89c06db655
commit c5790fed3f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.