| Index: chrome/browser/devtools/devtools_window.cc
|
| diff --git a/chrome/browser/devtools/devtools_window.cc b/chrome/browser/devtools/devtools_window.cc
|
| index f64a8f213db2db2c11106a15445dd369e2a8c8d5..51589fc165b654e889abaacee8bed5076dcd06fb 100644
|
| --- a/chrome/browser/devtools/devtools_window.cc
|
| +++ b/chrome/browser/devtools/devtools_window.cc
|
| @@ -492,8 +492,9 @@ content::RenderViewHost* DevToolsWindow::GetRenderViewHost() {
|
| return web_contents_->GetRenderViewHost();
|
| }
|
|
|
| -gfx::Insets DevToolsWindow::GetContentsInsets() const {
|
| - return contents_insets_;
|
| +const DevToolsContentsResizingStrategy&
|
| +DevToolsWindow::GetContentsResizingStrategy() const {
|
| + return contents_resizing_strategy_;
|
| }
|
|
|
| gfx::Size DevToolsWindow::GetMinimumSize() const {
|
| @@ -997,14 +998,17 @@ void DevToolsWindow::CloseWindow() {
|
|
|
| void DevToolsWindow::SetContentsInsets(
|
| int top, int left, int bottom, int right) {
|
| - if (contents_insets_.top() == top &&
|
| - contents_insets_.left() == left &&
|
| - contents_insets_.bottom() == bottom &&
|
| - contents_insets_.right() == right) {
|
| + DevToolsContentsResizingStrategy strategy = contents_resizing_strategy_;
|
| + strategy.insets = gfx::Insets(top, left, bottom, right);
|
| + SetContentsResizingStrategy(strategy);
|
| +}
|
| +
|
| +void DevToolsWindow::SetContentsResizingStrategy(
|
| + const DevToolsContentsResizingStrategy& strategy) {
|
| + if (contents_resizing_strategy_ == strategy)
|
| return;
|
| - }
|
|
|
| - contents_insets_ = gfx::Insets(top, left, bottom, right);
|
| + contents_resizing_strategy_ = strategy;
|
| if (is_docked_) {
|
| // Update inspected window.
|
| BrowserWindow* inspected_window = GetInspectedBrowserWindow();
|
|
|