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:
parent
52b5bcdb6d
commit
84c4eef565
8 changed files with 50 additions and 355 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue