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

Issue 2391923002: Call checkCompleted() synchronously in HTMLLinkElement::dispatchPendingEvent() (Closed)

Created:
4 years, 2 months ago by hiroshige
Modified:
3 years, 11 months ago
Reviewers:
Nate Chapin, yhirano
CC:
chromium-reviews, Yoav Weiss, blink-reviews-html_chromium.org, gavinp+prerender_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call checkCompleted() synchronously in HTMLLinkElement::dispatchPendingEvent() Previously, there was an asynchronous hop from <link>'s load event to document's load event, because HTMLLinkElement::dispatchPendingEvent() scheduled checkCompleted() asynchronously via IncrementLoadEventDelayCount. This CL makes HTMLLinkElement::dispatchPendingEvent() to call checkCompleted() synchronously, by using IncrementLoadEventDelayCount::clearAndCheckLoadEvent(). Because checkCompleted() is called at the end of asynchronously called HTMLLinkElement::dispatchPendingEvent(), this CL doesn't increase synchronous timing dependencies around Document load events. This CL fixes the performance regression of smoothness.top_25_smooth on Mac 10.10 caused by https://codereview.chromium.org/2275493002/. BUG=648887, 624697 Review-Url: https://codereview.chromium.org/2391923002 Cr-Commit-Position: refs/heads/master@{#444965} Committed: https://chromium.googlesource.com/chromium/src/+/46649a2f0bf126330d95f47b6c8773823451d23f

Patch Set 1 #

Patch Set 2 : CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s) #

Patch Set 3 : CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s) #

Patch Set 4 : CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s) #

Patch Set 5 : Add comments, make private #

Patch Set 6 : COmment #

Patch Set 7 : Check Document onload synchronously in HTMLLinkElement::dispatchPendingEvent() #

Patch Set 8 : Rebase. #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 63 (41 generated)
hiroshige
CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s)
4 years, 2 months ago (2016-10-04 05:48:39 UTC) #1
hiroshige
CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s)
4 years, 2 months ago (2016-10-04 05:57:13 UTC) #2
hiroshige
CL for src perf tryjob to run smoothness.top_25_smooth benchmark on mac-10-10 platform(s)
4 years, 2 months ago (2016-10-04 10:04:33 UTC) #7
hiroshige
WDYT?
4 years, 2 months ago (2016-10-04 10:33:05 UTC) #12
yhirano
On 2016/10/04 10:33:05, hiroshige wrote: > WDYT? The code looks correct but I don't have ...
4 years, 2 months ago (2016-10-06 01:44:06 UTC) #17
hiroshige
On 2016/10/06 01:44:06, yhirano wrote: > On 2016/10/04 10:33:05, hiroshige wrote: > > WDYT? > ...
4 years, 2 months ago (2016-10-06 03:08:02 UTC) #19
hiroshige
On 2016/10/06 03:08:02, hiroshige (OOO) wrote: > On 2016/10/06 01:44:06, yhirano wrote: > > On ...
4 years, 2 months ago (2016-10-16 09:59:04 UTC) #20
hiroshige
Hi Hirano-san, I reopened this issue because calling checkCompleted() sync also resolves the performance regression ...
3 years, 11 months ago (2016-12-29 22:07:22 UTC) #30
yhirano
lgtm
3 years, 11 months ago (2017-01-06 13:40:04 UTC) #37
hiroshige
japhet@, could you also take a look as a core/ OWNER? Thanks!
3 years, 11 months ago (2017-01-13 18:43:45 UTC) #38
Nate Chapin
lgtm
3 years, 11 months ago (2017-01-18 22:07:25 UTC) #39
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/2391923002/160001
3 years, 11 months ago (2017-01-19 21:56:05 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/367303)
3 years, 11 months ago (2017-01-19 23:30:44 UTC) #43
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/2391923002/160001
3 years, 11 months ago (2017-01-19 23:33:46 UTC) #45
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/html/HTMLLinkElement.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-20 01:22:25 UTC) #47
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/2391923002/160001
3 years, 11 months ago (2017-01-20 01:26:54 UTC) #49
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/html/HTMLLinkElement.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-20 01:34:40 UTC) #51
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/2391923002/160001
3 years, 11 months ago (2017-01-20 01:38:35 UTC) #53
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/html/HTMLLinkElement.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-20 01:45:44 UTC) #55
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/2391923002/160001
3 years, 11 months ago (2017-01-20 01:49:06 UTC) #57
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/2391923002/180001
3 years, 11 months ago (2017-01-20 01:50:23 UTC) #60
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 03:19:07 UTC) #63
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/46649a2f0bf126330d95f47b6c87...

Powered by Google App Engine
This is Rietveld 408576698