You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the window is resized after navigation, the view is not adapted to the window. After a debug session, the issue is caused by the ReleaseResizeHold method not being called due following condition here.
// Release the resize hold when we reach the desired size.if (hold_resize_) {
DCHECK_GT(cached_scale_factor_, 0);
gfx::Size expected_size =
gfx::ScaleToCeiledSize(GetViewBounds().size(), cached_scale_factor_);
if (pixel_size == expected_size) {
ReleaseResizeHold();
}
}
Indeed, The culprit of all this unexpected behavior is the GetViewBounds() method defined here, which returns an invalid width.
As proof, here are the traces we've collected:
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 1 inMyClientHandler::Resize()
[DEBUG] i_height is 1 inMyClientHandler::Resize()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 633 inMyClientHandler::Resize()
[DEBUG] i_height is 409 inMyClientHandler::Resize()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 409 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 409 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 409 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 409 in MyRenderHandler::GetViewRect
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] damage_rect (0, 0, 633, 409) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] rect_in_pixels (0, 0, 633, 409) => (x, y, width, height) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to rect_in_pixels.Intersect(damage_rect) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to MyRenderHandler::OnPaint
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 633 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 633 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties succeeded inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 737 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] call to SetRootLayerSize(false /*force*/) inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] cached_scale_factor_ has been set to GetDeviceScaleFactor() inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returntrue
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] resized is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to AllocateLocalSurfaceId() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] damage_rect (0, 0, 633, 737) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] rect_in_pixels (0, 0, 633, 737) => (x, y, width, height) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to rect_in_pixels.Intersect(damage_rect) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to MyRenderHandler::OnPaint
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] cached_scale_factor_ is 1 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] GetViewBounds().size().width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] GetViewBounds().size().height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size == expected_size
[DEBUG] call to ReleaseResizeHold() inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to CefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] hold_resize_ has been set to falseinCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] cached_scale_factor_ has been set to -1 inCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] CEF_POST_TASK WasResized() in CEF_UIT through CefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties succeeded inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 737 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 643 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 643 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties succeeded inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 643 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 643 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 737 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 643 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] call to SetRootLayerSize(false /*force*/) inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] cached_scale_factor_ has been set to GetDeviceScaleFactor() inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returntrue
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] resized is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to AllocateLocalSurfaceId() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 648 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 648 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 654 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 654 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] damage_rect (0, 0, 633, 737) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] rect_in_pixels (0, 0, 633, 737) => (x, y, width, height) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to rect_in_pixels.Intersect(damage_rect) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to MyRenderHandler::OnPaint
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] cached_scale_factor_ is 1 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] GetViewBounds().size().width() is 643 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] GetViewBounds().size().height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.width() is 643 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size != expected_size
[DEBUG] abort call to ReleaseResizeHold() inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 664 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 664 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 667 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 667 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 670 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 670 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 672 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 672 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 673 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 673 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 675 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 675 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 676 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 676 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 678 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 678 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 679 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 679 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 682 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 682 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 684 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 684 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 685 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 685 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 686 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 686 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 688 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 688 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 689 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 689 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 690 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 690 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 691 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 691 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 692 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 692 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 693 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 693 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 694 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 694 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 695 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 695 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 696 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 696 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 697 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 697 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
Note that the first time, the right values are taken into account:
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 633 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 737 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 633 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] call to SetRootLayerSize(false /*force*/) inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] cached_scale_factor_ has been set to GetDeviceScaleFactor() inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returntrue
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] resized is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to AllocateLocalSurfaceId() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] damage_rect (0, 0, 633, 737) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] rect_in_pixels (0, 0, 633, 737) => (x, y, width, height) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to rect_in_pixels.Intersect(damage_rect) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to MyRenderHandler::OnPaint
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] cached_scale_factor_ is 1 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] GetViewBounds().size().width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] GetViewBounds().size().height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size == expected_size
[DEBUG] call to ReleaseResizeHold() inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to CefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] hold_resize_ has been set to falseinCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] cached_scale_factor_ has been set to -1 inCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] CEF_POST_TASK WasResized() in CEF_UIT through CefRenderWidgetHostViewOSR::ReleaseResizeHold()
[DEBUG] ====== RACE CONDITION =======
We then change the width of the window, and this is what we see:
[DEBUG] i_width is 643 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 643 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties succeeded inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 643 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] CefScreenInfo.CefRect.x is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.y is 0 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.width is 643 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.CefRect.height is 737 in MyRenderHandler::GetScreenInfo
[DEBUG] CefScreenInfo.device_scale_factor is 1 in MyRenderHandler::GetScreenInfo
[DEBUG] call to MyRenderHandler::GetViewRect
[DEBUG] i_width is 643 in MyRenderHandler::GetViewRect
[DEBUG] i_height is 737 in MyRenderHandler::GetViewRect
[DEBUG] call to SetRootLayerSize(false /*force*/) inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] hold_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] cached_scale_factor_ has been set to GetDeviceScaleFactor() inCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returntrue
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] resized is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to AllocateLocalSurfaceId() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to SetFrameRate inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ is falseinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] pending_resize_ has been set to trueinCefRenderWidgetHostViewOSR::ResizeRootLayer()
[DEBUG] call to CefRenderWidgetHostViewOSR::ResizeRootLayer() returnfalse
[DEBUG] resized has been set to ResizeRootLayer() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] child_local_surface_id is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to UpdateFromChild() inCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] surface_id_updated is trueinCefRenderWidgetHostViewOSR::SynchronizeVisualProperties()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 648 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 648 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to MyClientHandler::Resize()
[DEBUG] i_width is 654 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] i_width is 654 inMyClientHandler::Resize()
[DEBUG] i_height is 737 inMyClientHandler::Resize()
[DEBUG] call to WasResize() inMyClientHandler::Resize()
[DEBUG] call to CefRenderWidgetHostViewOSR::WasResized()
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to SynchronizeVisualProperties aborted inCefRenderWidgetHostViewOSR::WasResized()
[DEBUG] call to CefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] damage_rect (0, 0, 633, 737) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] rect_in_pixels (0, 0, 633, 737) => (x, y, width, height) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to rect_in_pixels.Intersect(damage_rect) inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] call to MyRenderHandler::OnPaint
[DEBUG] hold_resize_ is trueinCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] cached_scale_factor_ is 1 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
[DEBUG] GetViewBounds().size().width() is 643 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] GetViewBounds().size().height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.width() is 643 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] expected_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.width() is 633 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size.height() is 737 inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] pixel_size != expected_size
[DEBUG] abort call to ReleaseResizeHold() inCefRenderWidgetHostViewOSR::OnPaint()
[DEBUG] ====== RACE CONDITION =======
the current_view_bounds_ variable is stuck on the first value.
Screenshot:
Workaround:
The workaround we've been forced to use is to call the Invalidate method just after WasResized. However, it's not perfect.
Expected behavior:
That the GetViewBounds().size() method returns the correct values and no longer points to past values.
Impacted Versions:
OS: Windows11 24H2 / Linux
CEF Version : from 126 to current (actually 132.2.2+gfd43a8b+chromium-132.0.6834.32)
Questions
What could explain GetViewBounds() returning incorrect values when we're passing the right values?
The text was updated successfully, but these errors were encountered:
Describe the bug
When the window is resized after navigation, the view is not adapted to the window. After a debug session, the issue is caused by the ReleaseResizeHold method not being called due following condition here.
Indeed, The culprit of all this unexpected behavior is the GetViewBounds() method defined here, which returns an invalid width.
As proof, here are the traces we've collected:
Note that the first time, the right values are taken into account:
We then change the width of the window, and this is what we see:
the current_view_bounds_ variable is stuck on the first value.
Screenshot:
Workaround:
The workaround we've been forced to use is to call the Invalidate method just after WasResized. However, it's not perfect.
Expected behavior:
That the GetViewBounds().size() method returns the correct values and no longer points to past values.
Impacted Versions:
Questions
The text was updated successfully, but these errors were encountered: