mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12657
This commit is contained in:
parent
6291e4e398
commit
c263a77d36
@ -146,8 +146,6 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
|
||||
{
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
current_redraw_browser = browser;
|
||||
|
||||
struct redraw_context ctx = {
|
||||
.interactive = true,
|
||||
.plot = &cocoa_plotters
|
||||
@ -167,7 +165,6 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
|
||||
|
||||
browser_window_redraw(browser, 0, 0, &clip, &ctx);
|
||||
}
|
||||
current_redraw_browser = NULL;
|
||||
|
||||
NSRect caretRect = cocoa_get_caret_rect( self );
|
||||
if (hasCaret && caretVisible && [self needsToDrawRect: caretRect]) {
|
||||
|
Loading…
Reference in New Issue
Block a user