Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Issue 1009533005: Update size of RWVH after bookmark bar is hidden

Created:
5 years, 9 months ago by scottmg
Modified:
5 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, ananta
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update size of RWVH after bookmark bar is hidden In the NTP, the bookmark bar is always shown detached. On navigating, the navigation is committed (DidNavigateFrame -> CommitPending) which in turn resizes the WebContentsView[Aura] and RenderWidgetHostView[Aura]. This causes a call to SnapToPhysicalPixelBoundary at the compositor layer in non-integral DPI scales (which saves a fractional offset into the layer to get it to align on a pixel boundary). Later in navigation (DidNavigateMainFramePostCommit) we go back up to chrome BrowserView, which now hides the bookmark bar (assuming it's not shown by user preference) because it's not shown when not on the NTP. This does a bunch of views/UI level layout but doesn't resize the WebContentsView or RenderWidgetHostView. This means the saved 'snap' is out of date. In addition to not getting pixel-snapped (causing blurry fonts) this also makes the "windows legacy hwnd" the wrong size because it also is never resized (which would affect some mousewheel, etc. handling). To resolve this, have the BrowserView resize the RenderWidgetHostView to the size of the contents_container_ (ref: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/views/frame/browser_view.h&l=600 ) when the bookmark bar visibility might have been modified. r=sky@chromium.org BUG=469857

Patch Set 1 #

Patch Set 2 : completely different #

Patch Set 3 : . #

Patch Set 4 : in BrowserView #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 1 chunk +6 lines, -1 line 2 comments Download

Messages

Total messages: 13 (1 generated)
scottmg
5 years, 9 months ago (2015-03-25 18:52:22 UTC) #2
sky
https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc#newcode795 chrome/browser/ui/views/frame/browser_view.cc:795: content::RenderWidgetHostView* rwhv = Won't Layout() end up in ContentsLayoutManager ...
5 years, 9 months ago (2015-03-25 20:45:36 UTC) #3
scottmg
https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc#newcode795 chrome/browser/ui/views/frame/browser_view.cc:795: content::RenderWidgetHostView* rwhv = On 2015/03/25 20:45:36, sky wrote: > ...
5 years, 9 months ago (2015-03-25 22:22:06 UTC) #4
scottmg
On 2015/03/25 22:22:06, scottmg wrote: > https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/1009533005/diff/60001/chrome/browser/ui/views/frame/browser_view.cc#newcode795 > ...
5 years, 9 months ago (2015-03-25 22:36:02 UTC) #5
sky
The ClippingWindow is there for fast resize (see it in action when you toggle the ...
5 years, 9 months ago (2015-03-25 23:28:57 UTC) #6
scottmg
On 2015/03/25 23:28:57, sky wrote: > The ClippingWindow is there for fast resize (see it ...
5 years, 9 months ago (2015-03-26 01:51:56 UTC) #7
sky
On Wed, Mar 25, 2015 at 6:51 PM, <scottmg@chromium.org> wrote: > On 2015/03/25 23:28:57, sky ...
5 years, 9 months ago (2015-03-26 13:47:42 UTC) #8
chromium-reviews
On Thu, Mar 26, 2015 at 6:47 AM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
5 years, 9 months ago (2015-03-26 17:08:03 UTC) #9
chromium-reviews
Ah, I think I know what it is. Before the bookmark bar is actually hidden ...
5 years, 9 months ago (2015-03-26 19:08:16 UTC) #10
scottmg
Hi, do you think my last explanation makes some sense? I kind of like the ...
5 years, 8 months ago (2015-04-01 22:10:27 UTC) #11
scottmg
+ananta who's looking at a bug related to the legacy hwnd
5 years, 8 months ago (2015-04-01 22:10:52 UTC) #12
sky
5 years, 8 months ago (2015-04-01 22:57:38 UTC) #13
If we're saying RWHVA needs to resnap any times it's bounds relative
to the root change then RWHVA should listen to ancestors location
changes and resnap.

  -Scott

On Wed, Apr 1, 2015 at 3:10 PM,  <scottmg@chromium.org> wrote:
> Hi, do you think my last explanation makes some sense?
>
> I kind of like the last patch set because in that it should only affect this
> particular case. But you have any other suggestions I'd be happy to try some
> other way.
>
> https://codereview.chromium.org/1009533005/

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698