6771055: [SxS] Move devtools to ContentsContainerView supporting side-by-side.

https://chromium-review.googlesource.com/c/chromium/src/+/6771055

There may be some simplification possible here (set_x, Rect position, ...), but this change is satisfactory to maintain the current behavior.
This commit is contained in:
clavin
2025-08-07 15:04:00 -06:00
parent 873d30149d
commit e1f649a5e0

View File

@@ -221,11 +221,11 @@ void InspectableWebContentsView::Layout(PassKey) {
return;
}
gfx::Size container_size(width(), height());
gfx::Rect container_bounds(width(), height());
gfx::Rect new_devtools_bounds;
gfx::Rect new_contents_bounds;
ApplyDevToolsContentsResizingStrategy(
strategy_, container_size, &new_devtools_bounds, &new_contents_bounds);
strategy_, container_bounds, &new_devtools_bounds, &new_contents_bounds);
// DevTools cares about the specific position, so we have to compensate RTL
// layout here.