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

Issue 1380363005: Find a better place for setting Layout/Paint hook related flags. (Closed)

Created:
5 years, 2 months ago by Alexander Semashko
Modified:
5 years, 1 month ago
CC:
asanka, benjhayden+dwatch_chromium.org, blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Find a better place for setting Layout/Paint hook related flags. These hooks are supposed to be called once after a commit, not after the WebViewImpl's root graphics layer was reset to 0. Setting these flags in didCommitLoad looks much more sane and straightforward. Also this fixes a subtle bug: if you don't create the WebView with a proper size right away, and instead create it with 0x0 size, navigate and then resize, you won't get the hooks called. BUG=529340 Committed: https://crrev.com/deeb788beddc5a4c3027d2bd5eb3c5760cc6a574 Cr-Commit-Position: refs/heads/master@{#356298}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 chunks +9 lines, -6 lines 2 comments Download

Messages

Total messages: 25 (4 generated)
Alexander Semashko
https://codereview.chromium.org/1380363005/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1380363005/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3889 third_party/WebKit/Source/web/WebViewImpl.cpp:3889: m_pageImportanceSignals.onCommitLoad(); As a side question, do these two lines ...
5 years, 2 months ago (2015-10-05 13:11:11 UTC) #2
dglazkov
+esprehn, who's better fit to review this.
5 years, 2 months ago (2015-10-05 16:10:44 UTC) #4
bokan
https://codereview.chromium.org/1380363005/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1380363005/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3889 third_party/WebKit/Source/web/WebViewImpl.cpp:3889: m_pageImportanceSignals.onCommitLoad(); On 2015/10/05 13:11:11, ahest wrote: > As a ...
5 years, 2 months ago (2015-10-05 18:03:30 UTC) #5
Alexander Semashko
Hmm, there is something more. This issue actually manifests itself in startup perftests (and probably ...
5 years, 2 months ago (2015-10-06 17:12:00 UTC) #7
Alexander Semashko
Any thoughts on this?
5 years, 2 months ago (2015-10-09 18:14:07 UTC) #8
nednguyen
On 2015/10/09 18:14:07, ahest wrote: > Any thoughts on this? From the perf monitoring side, ...
5 years, 2 months ago (2015-10-09 18:39:48 UTC) #9
Alexander Semashko
esprehn, PTAL kouhei, what do you say about isNewNavigation and m_pageImportanceSignals.onCommitLoad()?
5 years, 2 months ago (2015-10-09 22:28:12 UTC) #10
kouhei (in TOK)
> kouhei, what do you say about isNewNavigation and > m_pageImportanceSignals.onCommitLoad()? The intent here is ...
5 years, 2 months ago (2015-10-12 12:58:42 UTC) #11
Alexander Semashko
Found and attached a bug about this issue. It seems that this patch should also ...
5 years, 2 months ago (2015-10-15 14:07:19 UTC) #12
Alexander Semashko
On 2015/10/15 14:07:19, ahest wrote: > Found and attached a bug about this issue. > ...
5 years, 2 months ago (2015-10-23 09:50:51 UTC) #13
dglazkov
On 2015/10/23 at 09:50:51, ahest wrote: > On 2015/10/15 14:07:19, ahest wrote: > > Found ...
5 years, 2 months ago (2015-10-23 16:23:49 UTC) #14
Alexander Semashko
On 2015/10/23 16:23:49, dglazkov wrote: > On 2015/10/23 at 09:50:51, ahest wrote: > > On ...
5 years, 2 months ago (2015-10-24 15:26:24 UTC) #15
dglazkov
On 2015/10/24 at 15:26:24, ahest wrote: > On 2015/10/23 16:23:49, dglazkov wrote: > > On ...
5 years, 1 month ago (2015-10-26 16:39:27 UTC) #16
Alexander Semashko
On 2015/10/26 16:39:27, dglazkov wrote: > Ok. I think you do need to rebase the ...
5 years, 1 month ago (2015-10-26 17:13:57 UTC) #17
dglazkov
lgtm
5 years, 1 month ago (2015-10-26 17:16:55 UTC) #18
esprehn
lgtm, w/ a comment, can you explain what an in page nav is? https://codereview.chromium.org/1380363005/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File ...
5 years, 1 month ago (2015-10-26 21:08:54 UTC) #19
Alexander Semashko
https://codereview.chromium.org/1380363005/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1380363005/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3855 third_party/WebKit/Source/web/WebViewImpl.cpp:3855: if (!isNavigationWithinPage) { On 2015/10/26 21:08:54, esprehn wrote: > ...
5 years, 1 month ago (2015-10-26 21:57:50 UTC) #20
Alexander Semashko
Got approval from sullivan for landing.
5 years, 1 month ago (2015-10-27 13:36:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380363005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380363005/20001
5 years, 1 month ago (2015-10-27 13:36:37 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-10-27 15:10:30 UTC) #24
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 15:12:18 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/deeb788beddc5a4c3027d2bd5eb3c5760cc6a574
Cr-Commit-Position: refs/heads/master@{#356298}

Powered by Google App Engine
This is Rietveld 408576698