mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibWeb: Make painting order more spec-compliant
Now our painting order inside stacking contexts is closer to the algorithm specified by CSS 2.1 (see section 9.9 and Appendix E)
This commit is contained in:
parent
33af7075e7
commit
d2b6148787
8 changed files with 89 additions and 43 deletions
|
@ -18,7 +18,15 @@ public:
|
|||
StackingContext* parent() { return m_parent; }
|
||||
const StackingContext* parent() const { return m_parent; }
|
||||
|
||||
void paint(PaintContext&, PaintPhase);
|
||||
enum class StackingContextPaintPhase {
|
||||
BackgroundAndBorders,
|
||||
Floats,
|
||||
Foreground,
|
||||
FocusAndOverlay,
|
||||
};
|
||||
|
||||
void paint_descendants(PaintContext&, Node&, StackingContextPaintPhase);
|
||||
void paint(PaintContext&);
|
||||
HitTestResult hit_test(const Gfx::IntPoint&, HitTestType) const;
|
||||
|
||||
void dump(int indent = 0) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue