1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

Ladybird/AppKit: Port the Inspector to the WebView InspectorClient

This commit is contained in:
Timothy Flynn 2023-11-23 20:01:46 -05:00 committed by Andreas Kling
parent 52b5bcdb6d
commit 84c4eef565
8 changed files with 50 additions and 355 deletions

View file

@ -44,8 +44,6 @@
self.window = [[Inspector alloc] init:self.tab];
[self.window setDelegate:self];
[self.window makeKeyAndOrderFront:sender];
[[self inspector] inspect];
}
#pragma mark - NSWindowDelegate
@ -55,4 +53,16 @@
[self.tab onInspectorClosed];
}
- (void)windowDidResize:(NSNotification*)notification
{
if (![[self window] inLiveResize]) {
[[[self inspector] web_view] handleResize];
}
}
- (void)windowDidChangeBackingProperties:(NSNotification*)notification
{
[[[self inspector] web_view] handleDevicePixelRatioChange];
}
@end