1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00
serenity/Userland/Libraries/LibWeb/Painting
Andreas Kling 6a4247bee9 LibWeb: Use more precise font metrics when doing inline layout
We now position inline-level boxes based on ascent and descent metrics
from the font in use. This makes our basic text layouts look a lot more
like those produced by other browsers. :^)

I've tried to match the terminology used by the CSS Inline Layout spec.

This will regress Acid2 a little bit, and probably various other sites,
but on the whole it's the direction we should be heading, so let's go.
2022-03-30 01:12:44 +02:00
..
BackgroundPainting.cpp LibWeb: Don't round numbers too early when painting backgrounds 2022-03-29 18:53:27 +02:00
BackgroundPainting.h LibWeb: Use rounding instead of enclosing_int_rect() when painting 2022-03-29 16:35:46 +02:00
BorderPainting.cpp LibWeb: Use rounding instead of enclosing_int_rect() when painting 2022-03-29 16:35:46 +02:00
BorderPainting.h LibWeb: Convert border-radii from Length to LengthPercentage :^) 2022-01-20 00:04:10 +01:00
ButtonPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ButtonPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
CanvasPaintable.cpp LibGfx: Implement Rect::to_rounded<U>() 2022-03-23 11:53:34 +01:00
CanvasPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
CheckBoxPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
CheckBoxPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ImagePaintable.cpp LibGfx: Implement Rect::to_rounded<U>() 2022-03-23 11:53:34 +01:00
ImagePaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
InlinePaintable.cpp LibWeb: Use rounding instead of enclosing_int_rect() when painting 2022-03-29 16:35:46 +02:00
InlinePaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
LabelablePaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
LabelablePaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
MarkerPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
MarkerPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
NestedBrowsingContextPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
NestedBrowsingContextPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
Paintable.cpp LibWeb: Make hit testing functions return Optional<HitTestResult> 2022-03-21 13:03:33 +01:00
Paintable.h LibWeb: Add Paintable::dom_node() convenience accessor 2022-03-21 13:03:33 +01:00
PaintableBox.cpp LibWeb: Use more precise font metrics when doing inline layout 2022-03-30 01:12:44 +02:00
PaintableBox.h LibWeb: Treate SVG paintable coordinates as relative to <svg> element 2022-03-24 18:14:01 +01:00
PaintContext.cpp LibWeb: Don't crash on content with SVG elements outside of <svg> 2022-02-28 14:17:44 +01:00
PaintContext.h LibWeb: Preserve paint state when painting stacking contexts indirectly 2022-03-26 17:31:01 +01:00
ProgressPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
ProgressPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
RadioButtonPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
RadioButtonPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ShadowPainting.cpp LibWeb: Use the new Gfx::Painter::draw_text_run() API for drawing text 2022-03-30 00:57:15 +02:00
ShadowPainting.h LibWeb: Implement text-shadow painting 2022-03-24 18:08:34 +01:00
StackingContext.cpp LibWeb: Preserve paint state when painting stacking contexts indirectly 2022-03-26 17:31:01 +01:00
StackingContext.h LibWeb: Apply the CSS transform-origin property 2022-03-22 02:06:21 +01:00
SVGGeometryPaintable.cpp LibWeb: Keep SVG elliptical arc shape when applying viewbox 2022-03-12 15:38:55 +01:00
SVGGeometryPaintable.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGGraphicsPaintable.cpp LibWeb: Split Paintable into Paintable and PaintableBox 2022-03-11 00:21:49 +01:00
SVGGraphicsPaintable.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGPaintable.cpp LibWeb: Treate SVG paintable coordinates as relative to <svg> element 2022-03-24 18:14:01 +01:00
SVGPaintable.h LibWeb: Treate SVG paintable coordinates as relative to <svg> element 2022-03-24 18:14:01 +01:00
SVGSVGPaintable.cpp LibWeb: Make SVG <svg> elements behave as CSS replaced elements 2022-03-19 12:42:10 +01:00
SVGSVGPaintable.h LibWeb: Make SVG <svg> elements behave as CSS replaced elements 2022-03-19 12:42:10 +01:00
TextPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
TextPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00