mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
Remove 11 heavy includes from Document.h that were only needed for pointer/reference types (already forward-declared in Forward.h), and extract the nested ViewportClient interface to a standalone header. This reduces Document.h's recompilation cascade from ~1228 files to ~717 files (42% reduction). Headers like BrowsingContext.h that were previously transitively included see even larger improvements (from ~1228 down to ~73 dependents).
19 lines
328 B
C++
19 lines
328 B
C++
/*
|
|
* Copyright (c) 2022-2025, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/PixelUnits.h>
|
|
|
|
namespace Web::DOM {
|
|
|
|
class ViewportClient {
|
|
public:
|
|
virtual ~ViewportClient() = default;
|
|
virtual void did_set_viewport_rect(CSSPixelRect const&) = 0;
|
|
};
|
|
|
|
}
|