mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibWeb: Make tiled backgrounds scroll with content
Previously the page background was always draw relative to the viewport instead of following with the content. This should eventually become an opt-in mode (via CSS "background-attachment") but for now let's have the default behavior be that backgrounds scroll with content. Also take this opportunity to move the background painting code from the two web views to a shared location in InitialContainingBlockBox.
This commit is contained in:
parent
6c087480cf
commit
7f9f916470
4 changed files with 21 additions and 15 deletions
|
@ -41,6 +41,8 @@ public:
|
|||
void paint_all_phases(PaintContext&);
|
||||
virtual void paint(PaintContext&, PaintPhase) override;
|
||||
|
||||
void paint_document_background(PaintContext&);
|
||||
|
||||
virtual HitTestResult hit_test(const Gfx::IntPoint&, HitTestType) const override;
|
||||
|
||||
const LayoutRange& selection() const { return m_selection; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue