Skip to content

Commit

Permalink
Bug 1879770 Part 1 - Mark IntrinsicScrollbarGutterSizeAtInlineEdges()…
Browse files Browse the repository at this point in the history
… const. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D201892
  • Loading branch information
aethanyc committed Mar 4, 2024
1 parent 89c06db commit c5790fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/generic/nsGfxScrollFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion layout/generic/nsGfxScrollFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c5790fe

Please sign in to comment.