mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Make Document::paintable() return a ViewportPaintable
This commit is contained in:
parent
8bb275f2ea
commit
25375bf1d5
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/awesomekling
Commit: 25375bf1d5
Pull-request: https://github.com/SerenityOS/serenity/pull/20661
10 changed files with 34 additions and 11 deletions
|
@ -835,9 +835,9 @@ RefPtr<StyleValue const> ResolvedCSSStyleDeclaration::style_value_for_property(L
|
|||
return IdentifierStyleValue::create(ValueID::None);
|
||||
|
||||
// The transform matrix is held by the StackingContext, so we need to make sure we have one first.
|
||||
auto const* viewport = layout_node.document().paintable_box();
|
||||
auto const* viewport = layout_node.document().paintable();
|
||||
VERIFY(viewport);
|
||||
const_cast<Painting::ViewportPaintable&>(verify_cast<Painting::ViewportPaintable>(*viewport)).build_stacking_context_tree_if_needed();
|
||||
const_cast<Painting::ViewportPaintable&>(*viewport).build_stacking_context_tree_if_needed();
|
||||
|
||||
VERIFY(layout_node.paintable());
|
||||
auto const& paintable_box = verify_cast<Painting::PaintableBox const>(layout_node.paintable());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue