Skip to content

Commit e44e68f

Browse files
committed
Move Session, Page and Renderer into their own respective files
1 parent eff1341 commit e44e68f

File tree

15 files changed

+917
-847
lines changed

15 files changed

+917
-847
lines changed

src/browser/browser.zig

Lines changed: 2 additions & 829 deletions
Large diffs are not rendered by default.

src/browser/dom/document_fragment.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
// You should have received a copy of the GNU Affero General Public License
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

19-
const std = @import("std");
20-
2119
const parser = @import("../netsurf.zig");
2220
const SessionState = @import("../env.zig").SessionState;
2321

src/browser/dom/intersection_observer.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

1919
const std = @import("std");
20-
const Allocator = std.mem.Allocator;
2120

2221
const parser = @import("../netsurf.zig");
2322
const SessionState = @import("../env.zig").SessionState;
2423

2524
const Env = @import("../env.zig").Env;
2625
const Element = @import("element.zig").Element;
27-
const Document = @import("document.zig").Document;
2826

2927
pub const Interfaces = .{
3028
IntersectionObserver,

src/browser/dom/namednodemap.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
// You should have received a copy of the GNU Affero General Public License
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

19-
const std = @import("std");
20-
2119
const parser = @import("../netsurf.zig");
2220

2321
const DOMException = @import("exceptions.zig").DOMException;

src/browser/env.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const URL = @import("../url.zig").URL;
55
const js = @import("../runtime/js.zig");
66
const storage = @import("storage/storage.zig");
77
const generate = @import("../runtime/generate.zig");
8+
const Renderer = @import("renderer.zig").Renderer;
89
const Loop = @import("../runtime/loop.zig").Loop;
910
const HttpClient = @import("../http/client.zig").Client;
10-
const Renderer = @import("browser.zig").Renderer;
1111

1212
const WebApis = struct {
1313
// Wrapped like this for debug ergonomics.

0 commit comments

Comments
 (0)