From 7eb042d985acc32c9e7c80ae46fa20dfcfa06c24 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Mon, 9 Feb 2026 19:53:01 +0100 Subject: [PATCH] fixed: missing dom protection --- AppKit/CPTableView.j | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 8576b4550..75b9ce0f8 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -630,6 +630,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; - (void)_updateSelectedColumnBackgrounds { +#if PLATFORM(DOM) // 1. Remove existing column background views [_selectedColumnBackgroundViews makeObjectsPerformSelector:@selector(removeFromSuperview)]; [_selectedColumnBackgroundViews removeAllObjects]; @@ -667,6 +668,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; if (_visibleRowViews.hasOwnProperty(rowIndex)) [self addSubview:_visibleRowViews[rowIndex] positioned:CPWindowBelow relativeTo:nil]; } +#endif } /*! @@ -5557,12 +5559,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad // Ensure the text turns white [self _updateDataViewsFocusState]; -#if PLATFORM(DOM) // for symmetry with _notifyViewDidResignFirstResponder setTimeout(function() { [self _updateSelectedColumnBackgrounds]; }, 0); -#endif } - (void)_notifyViewDidResignFirstResponder @@ -5572,12 +5572,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad // Ensure the text turns black [self _updateDataViewsFocusState]; -#if PLATFORM(DOM) // needed because _isFocussed still returns true in this iteration of the run loop setTimeout(function() { [self _updateSelectedColumnBackgrounds]; }, 0); -#endif } @end