mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibWeb: Make StackingContext functions static
where possible
These don't need to be member functions, and this will make it easier to use these to paint <mask> elements (into an off-screen mask bitmap).
This commit is contained in:
parent
dc58b5f418
commit
b340a85523
2 changed files with 8 additions and 8 deletions
|
@ -29,8 +29,8 @@ public:
|
|||
FocusAndOverlay,
|
||||
};
|
||||
|
||||
void paint_node_as_stacking_context(Paintable const&, PaintContext&) const;
|
||||
void paint_descendants(PaintContext&, Paintable const&, StackingContextPaintPhase) const;
|
||||
static void paint_node_as_stacking_context(Paintable const&, PaintContext&);
|
||||
static void paint_descendants(PaintContext&, Paintable const&, StackingContextPaintPhase);
|
||||
void paint(PaintContext&) const;
|
||||
Optional<HitTestResult> hit_test(CSSPixelPoint, HitTestType) const;
|
||||
|
||||
|
@ -49,7 +49,7 @@ private:
|
|||
Vector<StackingContext*> m_children;
|
||||
size_t m_index_in_tree_order { 0 };
|
||||
|
||||
void paint_child(PaintContext&, StackingContext const&) const;
|
||||
static void paint_child(PaintContext&, StackingContext const&);
|
||||
void paint_internal(PaintContext&) const;
|
||||
Gfx::FloatMatrix4x4 get_transformation_matrix(CSS::Transformation const& transformation) const;
|
||||
Gfx::FloatMatrix4x4 combine_transformations(Vector<CSS::Transformation> const& transformations) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue