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

Issue 2575343004: Invalidate LayoutView when the URL bar is hidden on short pages. (Closed)

Created:
4 years ago by bokan
Modified:
3 years, 12 months ago
Reviewers:
skobes
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate LayoutView when the URL bar is hidden on short pages. On a pages with no scrolling, hiding the top controls exposes a region beyond the document rect. We need to invalidate this region so that we paint the background into it. This isn't a problem on scrollable pages because we simply reveal more of the content layer. Short pages are revealing a region of nothingness. In addition, I caught a mistake I made in a previous patch, in https://codereview.chromium.org/2461463004. The width|heightChanged arguments passed into setShouldDoFullPaintInvalidationOnResizeIfNeeded in LayoutView::layout should compare against the layoutSize rather than the visibleContentSize so I fixed the mistake. BUG=670853 Committed: https://crrev.com/f9f732d6fc99d6ddbff14333f17c0b5978e22322 Cr-Commit-Position: refs/heads/master@{#440527}

Patch Set 1 #

Patch Set 2 : NA #

Patch Set 3 : Invalidate only for main frame and if URL bar exists #

Patch Set 4 : Fixed mistake from an older patch #

Patch Set 5 : Nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -21 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 3 chunks +30 lines, -19 lines 1 comment Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 1 chunk +2 lines, -2 lines 1 comment Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
bokan
4 years ago (2016-12-16 19:24:48 UTC) #2
skobes
lgtm
4 years ago (2016-12-17 00:24:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575343004/20001
4 years ago (2016-12-18 21:19:32 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/358817)
4 years ago (2016-12-18 22:44:07 UTC) #7
bokan
Steve, ptal? I made the condition for invalidation more strict so that we don't overinvalidate. ...
4 years ago (2016-12-22 00:45:49 UTC) #20
bokan
Just noticed you're OOO for the next few days. I'm going to land now, the ...
3 years, 12 months ago (2016-12-22 22:28:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2575343004/80001
3 years, 12 months ago (2016-12-22 22:28:34 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 12 months ago (2016-12-22 22:35:04 UTC) #27
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/f9f732d6fc99d6ddbff14333f17c0b5978e22322 Cr-Commit-Position: refs/heads/master@{#440527}
3 years, 12 months ago (2016-12-22 22:37:11 UTC) #29
skobes
3 years, 12 months ago (2016-12-27 18:14:09 UTC) #30
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698