1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00
serenity/Userland/Libraries/LibWeb/Painting
Aliaksandr Kalenik 08f217526a LibWeb: Use rect of containing block instead of parent to clip overflow
Move overflow clipping from `before_children_paint` into separate
method and call this method on containing block instead of parent.

Example that got fixed:
```html
<!DOCTYPE html><html><head><style>
    * {
      border: 2px solid black;
    }
    body {
      overflow: hidden;
    }
    .inner {
      position: absolute;
      width: 100px;
      height: 100px;
      background: lime;
    }
</style></head><body><div class=inner></div>
```
2023-01-25 10:44:58 +01:00
..
BackgroundPainting.cpp LibWeb: Convert AbstractImageStyleValue to new pixel units 2023-01-05 17:42:31 +01:00
BackgroundPainting.h LibWeb: Convert background painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderPainting.cpp LibWeb: Convert border painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderPainting.h LibWeb: Convert border painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderRadiusCornerClipper.cpp LibWeb: Convert border painting to new pixel units 2022-12-14 16:47:57 +00:00
BorderRadiusCornerClipper.h LibWeb: Convert border painting to new pixel units 2022-12-14 16:47:57 +00:00
ButtonPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
ButtonPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CanvasPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CanvasPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CheckBoxPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
CheckBoxPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
FilterPainting.cpp LibWeb: Convert backdrop-filter painting to new pixel units 2022-12-14 16:47:57 +00:00
FilterPainting.h LibWeb: Convert backdrop-filter painting to new pixel units 2022-12-14 16:47:57 +00:00
GradientPainting.cpp LibWeb+LibGfx: Migrate (most of) the CSS gradient painting to LibGfx 2023-01-10 10:25:58 +01:00
GradientPainting.h LibWeb+LibGfx: Migrate (most of) the CSS gradient painting to LibGfx 2023-01-10 10:25:58 +01:00
ImagePaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
ImagePaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
InlinePaintable.cpp LibWeb: Make Layout::Node::containing_block() return a Layout::Box 2023-01-24 11:44:03 +01:00
InlinePaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
LabelablePaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
LabelablePaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
MarkerPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
MarkerPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
NestedBrowsingContextPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
NestedBrowsingContextPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
Paintable.cpp LibWeb: Move scroll state from Layout::BlockContainer to Layout::Box 2023-01-24 11:44:03 +01:00
Paintable.h LibWeb: Use rect of containing block instead of parent to clip overflow 2023-01-25 10:44:58 +01:00
PaintableBox.cpp LibWeb: Use rect of containing block instead of parent to clip overflow 2023-01-25 10:44:58 +01:00
PaintableBox.h LibWeb: Use rect of containing block instead of parent to clip overflow 2023-01-25 10:44:58 +01:00
PaintContext.cpp LibWeb: Split PaintContext::viewport_rect() into device/css variants 2022-12-14 16:47:57 +00:00
PaintContext.h LibWeb: Split PaintContext::viewport_rect() into device/css variants 2022-12-14 16:47:57 +00:00
ProgressPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
ProgressPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
RadioButtonPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
RadioButtonPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
ShadowPainting.cpp LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
ShadowPainting.h LibWeb: Convert shadow painting to new pixel units 2022-12-14 16:47:57 +00:00
StackingContext.cpp LibWeb: Use rect of containing block instead of parent to clip overflow 2023-01-25 10:44:58 +01:00
StackingContext.h LibWeb+WebContent+headless-browser: Use CSSPixels for PageClient events 2022-12-10 12:03:19 +00:00
SVGGeometryPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
SVGGeometryPaintable.h LibWeb: Make a handful of paintable leaf classes final 2023-01-11 14:03:25 +01:00
SVGGraphicsPaintable.cpp LibWeb: Clip hidden overflow by absolute rect of containing block 2022-11-15 22:53:47 +01:00
SVGGraphicsPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
SVGPaintable.cpp LibWeb: Convert Paintable coordinates to new pixel units 2022-12-14 16:47:57 +00:00
SVGPaintable.h LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
SVGSVGPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
SVGSVGPaintable.h LibWeb: Make a handful of paintable leaf classes final 2023-01-11 14:03:25 +01:00
TextPaintable.cpp LibWeb: Make the paint tree GC-allocated 2023-01-11 12:55:00 +01:00
TextPaintable.h LibWeb: Make a handful of paintable leaf classes final 2023-01-11 14:03:25 +01:00