Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 944510f440466ebcb886926141ba8c7c65ec0c56
      
https://github.com/WebKit/WebKit/commit/944510f440466ebcb886926141ba8c7c65ec0c56
  Author: Nikolaos Mouchtaris <[email protected]>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    A 
LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-width-dynamic-expected.html
    A LayoutTests/fast/scrolling/mac/scrollbars/scrollbar-width-dynamic.html
    M Source/WebCore/rendering/RenderBlock.cpp
    M Source/WebCore/rendering/RenderBlock.h
    M Source/WebCore/rendering/RenderBox.h

  Log Message:
  -----------
  scrollbar-width update doesn't correctly relayout
https://bugs.webkit.org/show_bug.cgi?id=278820
rdar://134894732

Reviewed by Simon Fraser.

Prevent RenderBlock::styleDidChange from overwriting the needs layout bit set 
via
RenderLayerScrollableArea::availableContentSizeChanged by taking into account 
if the scrollbar width
changed. This progressed some test cases in 
css-scrollbars/scrollbar-width-paint* but didn't lead to
any new passes. This needs a follow up to fix going from scrollbar-width:none 
to auto/thin.

* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::scrollbarWidthDidChange):
(WebCore::RenderBlock::borderOrPaddingLogicalWidthChanged):
(WebCore::borderOrPaddingLogicalWidthChanged): Deleted.
* Source/WebCore/rendering/RenderBlock.h:
* Source/WebCore/rendering/RenderBox.h:

Canonical link: https://commits.webkit.org/286042@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to