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

Issue 1596573002: Remove extra calls of didMeaningfulLayout() during the same navigation (Closed)

Created:
4 years, 11 months ago by wychen
Modified:
4 years, 11 months ago
Reviewers:
mdjones, esprehn, dglazkov
CC:
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

Remove extra calls of didMeaningfulLayout() during the same navigation didMeaningfulLayout() should be called once per WebMeaningfulLayout per "visit". If the user initiates a navigation, refresh the current page, or the page automatically navigates, or redirected, then it counts as another "visit". BUG=577968 Committed: https://crrev.com/2502755a32d31fb66c749e25cdee072dda868234 Cr-Commit-Position: refs/heads/master@{#371025}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments #

Patch Set 3 : add Sim tests #

Patch Set 4 : fix tests #

Patch Set 5 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -39 lines) Patch
M chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc View 3 chunks +17 lines, -2 lines 0 comments Download
A + chrome/test/data/dom_distiller/simple_article_iframe.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp View 1 2 3 4 8 chunks +40 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimWebViewClient.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (13 generated)
wychen
PTAL
4 years, 11 months ago (2016-01-15 17:43:10 UTC) #2
dglazkov
https://codereview.chromium.org/1596573002/diff/1/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right): https://codereview.chromium.org/1596573002/diff/1/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc#newcode34 chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:34: const char* kAllPaths[] = { We need to test ...
4 years, 11 months ago (2016-01-15 19:41:48 UTC) #3
esprehn
https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode483 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:483: m_webFrame->viewImpl()->didCommitLoad(commitType, false); On 2016/01/15 at 19:41:48, dglazkov wrote: > ...
4 years, 11 months ago (2016-01-15 22:15:31 UTC) #5
wychen
https://codereview.chromium.org/1596573002/diff/1/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc File chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc (right): https://codereview.chromium.org/1596573002/diff/1/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc#newcode34 chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc:34: const char* kAllPaths[] = { On 2016/01/15 19:41:47, dglazkov ...
4 years, 11 months ago (2016-01-15 22:31:02 UTC) #7
dglazkov
https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode4306 third_party/WebKit/Source/web/WebViewImpl.cpp:4306: m_shouldDispatchFirstVisuallyNonEmptyLayout = true; On 2016/01/15 at 22:31:02, wychen wrote: ...
4 years, 11 months ago (2016-01-15 22:36:43 UTC) #8
wychen
I've added Sim tests. It's indeed pretty trivial. https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1596573002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode4306 third_party/WebKit/Source/web/WebViewImpl.cpp:4306: m_shouldDispatchFirstVisuallyNonEmptyLayout ...
4 years, 11 months ago (2016-01-21 01:47:52 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1596573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1596573002/60001
4 years, 11 months ago (2016-01-21 02:16:02 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/11412)
4 years, 11 months ago (2016-01-21 03:05:07 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1596573002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1596573002/80001
4 years, 11 months ago (2016-01-21 04:15:16 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/162283)
4 years, 11 months ago (2016-01-21 05:26:47 UTC) #17
dglazkov
lgtm
4 years, 11 months ago (2016-01-21 05:35:13 UTC) #18
wychen
4 years, 11 months ago (2016-01-21 20:00:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1596573002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1596573002/100001
4 years, 11 months ago (2016-01-22 18:55:39 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/138208)
4 years, 11 months ago (2016-01-22 19:06:18 UTC) #25
mdjones
lgtm
4 years, 11 months ago (2016-01-22 19:07:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1596573002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1596573002/100001
4 years, 11 months ago (2016-01-22 19:53:02 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 11 months ago (2016-01-22 20:28:29 UTC) #29
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 20:29:51 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2502755a32d31fb66c749e25cdee072dda868234
Cr-Commit-Position: refs/heads/master@{#371025}

Powered by Google App Engine
This is Rietveld 408576698