### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

v19.0.0

### What operating system are you using?

Windows

### Operating System Version

Windows 10

### What arch are you using?

x64

### Last Known Working Electron version

N/A

### Expected Behavior

BrowserView should repaint when bounds are changed.

### Actual Behavior

BrowserView does not consistently repaint when bounds are changed.

### Testcase Gist URL

https://gist.github.com/de7bb5f18826338729e03441da70e102

### Additional Information

_No response_
shell/browser/native_browser_view_views.cc
InspectableWebContents* inspectable_web_contents)
    : NativeBrowserView(inspectable_web_contents) {}
NativeBrowserViewViews::~NativeBrowserViewViews() = default;
void NativeBrowserViewViews::SetAutoResizeFlags(uint8_t flags) {
  auto_resize_flags_ = flags;
  ResetAutoResizeProportions();
}
void NativeBrowserViewViews::UpdateDraggableRegions(
    const std::vector<mojom::DraggableRegionPtr>& regions) {
  if (&draggable_regions_ != &regions)
    draggable_regions_ = mojo::Clone(regions);
  
  
  
  
  
  
  
  auto const offset = GetBounds().OffsetFromOrigin();
  for (auto& snapped_region : draggable_regions_) {
    snapped_region->bounds.Offset(offset);
  }
  draggable_region_ = DraggableRegionsToSkRegion(draggable_regions_);
}
void NativeBrowserViewViews::SetAutoResizeProportions(