LibWeb: Do not paint scrollbar of ViewportPaintable
Scrollbar of viewport is supposed to be painted by chrome.
This commit is contained in:
parent
eb4f36e5a1
commit
d53058421a
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/d53058421a Pull-request: https://github.com/SerenityOS/serenity/pull/24008 Issue: https://github.com/SerenityOS/serenity/issues/23493 Issue: https://github.com/SerenityOS/serenity/issues/23599 Issue: https://github.com/SerenityOS/serenity/issues/23966
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ void PaintableBox::paint(PaintContext& context, PaintPhase phase) const
|
|||
}
|
||||
|
||||
auto scrollbar_width = computed_values().scrollbar_width();
|
||||
if (phase == PaintPhase::Overlay && scrollbar_width != CSS::ScrollbarWidth::None) {
|
||||
if (!layout_box().is_viewport() && phase == PaintPhase::Overlay && scrollbar_width != CSS::ScrollbarWidth::None) {
|
||||
auto color = Color(Color::NamedColor::DarkGray).with_alpha(128);
|
||||
int thumb_corner_radius = static_cast<int>(context.rounded_device_pixels(scrollbar_thumb_thickness / 2));
|
||||
if (auto thumb_rect = scroll_thumb_rect(ScrollDirection::Horizontal); thumb_rect.has_value()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue