mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibWeb: Clip descendants of boxes with overflow:hidden
This is a very limited implementation of overflow:hidden, but since it's easy to cover this common scenario, let's do it.
This commit is contained in:
parent
df3cd2fd56
commit
ec49c8fefd
2 changed files with 21 additions and 0 deletions
|
@ -150,6 +150,9 @@ public:
|
|||
|
||||
void clear_overflow_data() { m_overflow_data = nullptr; }
|
||||
|
||||
virtual void before_children_paint(PaintContext&, PaintPhase);
|
||||
virtual void after_children_paint(PaintContext&, PaintPhase);
|
||||
|
||||
protected:
|
||||
Box(DOM::Document& document, DOM::Node* node, NonnullRefPtr<CSS::StyleProperties> style)
|
||||
: NodeWithStyleAndBoxModelMetrics(document, node, move(style))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue