Andreas Kling
b634918ff6
LibWeb: Remove Font::width() overloads for UTF-8
...
This is prep work for getting rid of UTF-8 text shaping.
2025-09-21 13:22:38 +02:00
Jelle Raaijmakers
c31eff6a47
Everywhere: Use Optional<T>::ensure() where useful
...
No functional changes.
2025-09-17 12:01:18 -04:00
Tim Ledbetter
aadd563592
LibWeb: Replace usages of dynamic_cast
with as
and as_if
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
2025-08-22 20:26:09 +02:00
Andreas Kling
77abe2a84d
LibWeb: Allow ImageProvider subclasses to visit additional GC edges
...
More prep work for CSS content:image.
2025-07-28 22:46:27 +02:00
Andreas Kling
9603aa0745
LibWeb: Allow Layout::ImageBox to be anonymous
...
This is prep work for CSS content:image, which means pseudo-elements can
be used to generate images without a corresponding DOM node.
2025-07-28 22:46:27 +02:00
Timothy Flynn
85b424464a
AK+Everywhere: Rename verify_cast
to as
...
Follow-up to fc20e61e72
.
2025-01-21 11:34:06 -05:00
Aliaksandr Kalenik
0b8b690f92
LibWeb+LibWebView: Allow to specify default font size in FontPlugin
...
Instead of always assuming 12pt size for default font, explicitly pass
it as a parameter.
2025-01-02 10:47:21 +01:00
Andreas Kling
74469a0c1f
LibWeb: Make CSS::ComputedProperties GC-allocated
2024-12-22 10:12:49 +01:00
Andreas Kling
c1cad8fa0e
LibWeb: Rename CSS::StyleProperties => CSS::ComputedProperties
...
Now that StyleProperties is only used to hold computed properties, let's
name it ComputedProperties.
2024-12-22 10:12:49 +01:00
Shannon Booth
f87041bf3a
LibGC+Everywhere: Factor out a LibGC from LibJS
...
Resulting in a massive rename across almost everywhere! Alongside the
namespace change, we now have the following names:
* JS::NonnullGCPtr -> GC::Ref
* JS::GCPtr -> GC::Ptr
* JS::HeapFunction -> GC::Function
* JS::CellImpl -> GC::Cell
* JS::Handle -> GC::Root
2024-11-15 14:49:20 +01:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00
Andreas Kling
5721b2a3da
LibWeb: Rename LayoutStyle => CSS::ComputedValues
...
This object represents the CSS "computed values" so let's call it that.
2021-01-06 14:58:48 +01:00
Stephan Unverwerth
b4d1390714
LibGFX: Move default_xxx_font() methods from Font to FontDatabase
...
When we have an abstract font class it makes no sense to keep
these methods in the Font class.
2020-12-30 20:40:30 +01:00
Andreas Kling
72bd672da0
LibWeb: Remove use of specified_style() in Layout::ImageBox
2020-12-15 20:50:58 +01:00
Andreas Kling
5aeab9878e
LibWeb: Rename LayoutNode classes and move them into Layout namespace
...
Bring the names of various boxes closer to spec language. This should
hopefully make things easier to understand and hack on. :^)
Some notable changes:
- LayoutNode -> Layout::Node
- LayoutBox -> Layout::Box
- LayoutBlock -> Layout::BlockBox
- LayoutReplaced -> Layout::ReplacedBox
- LayoutDocument -> Layout::InitialContainingBlockBox
- LayoutText -> Layout::TextNode
- LayoutInline -> Layout::InlineNode
Note that this is not strictly a "box tree" as we also hang inline/text
nodes in the same tree, and they don't generate boxes. (Instead, they
contribute line box fragments to their containing block!)
2020-11-22 15:56:27 +01:00