Commit 5d41d7b5 authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Only update layout from WebViewImpl::ContentsPreferredMinimumSize

WebViewImpl::ContentsPreferredMinimumSize only needs layout information
for MinPreferredLogicalWidth and ScrollHeight. This patch updates the
lifecycle update call to only do a layout lifecycle update, (similar to
OffsetWidth).

Bug: 868983

Change-Id: Id31b6fb884b2c182b541eab5e8baf61b17579158
Reviewed-on: https://chromium-review.googlesource.com/1153979Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579415}
parent 2e1e4f1b
...@@ -2667,7 +2667,7 @@ WebSize WebViewImpl::ContentsPreferredMinimumSize() { ...@@ -2667,7 +2667,7 @@ WebSize WebViewImpl::ContentsPreferredMinimumSize() {
MainFrameImpl() MainFrameImpl()
->GetFrame() ->GetFrame()
->View() ->View()
->UpdateLifecycleToCompositingCleanPlusScrolling(); ->UpdateLifecycleToLayoutClean();
} }
Document* document = page_->MainFrame()->IsLocalFrame() Document* document = page_->MainFrame()->IsLocalFrame()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment