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

Issue 2605173002: Call checkCompleted() synchronously in HTMLStyleElement::dispatchPendingEvent() (Closed)

Created:
3 years, 11 months ago by hiroshige
Modified:
3 years, 11 months ago
Reviewers:
Nate Chapin, yhirano
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, blink-reviews-style_chromium.org, blink-reviews-events_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, blink-reviews-html_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call checkCompleted() synchronously in HTMLStyleElement::dispatchPendingEvent() Previously, there was an asynchronous hop from <style>'s load event to document's load event, because HTMLStyleElement::dispatchPendingEvent() scheduled checkCompleted() asynchronously via IncrementLoadEventDelayCount. This CL makes HTMLStyleElement::dispatchPendingEvent() to call checkCompleted() synchronously, by using IncrementLoadEventDelayCount::clearAndCheckLoadEvent(). Because checkCompleted() is called at the end of asynchronously called HTMLStyleElement::dispatchPendingEvent(), this CL doesn't increase synchronous timing dependencies around Document load events. This fixes performance (memory consumption) regression in memory.top_10_mobile_stress caused by https://codereview.chromium.org/2275493002/. BUG=663823, 624697 TEST=https_www_google_co_uk_hl_en_q_science in memory:chrome:all_processes:reported_by_chrome:v8:effective_size in memory.top_10_mobile_stress Review-Url: https://codereview.chromium.org/2605173002 Cr-Commit-Position: refs/heads/master@{#444886} Committed: https://chromium.googlesource.com/chromium/src/+/0712ce38d1a05590e731d07f9aad4b46870f53ae

Patch Set 1 #

Patch Set 2 : comment fix #

Patch Set 3 : Rebase #

Patch Set 4 : Test update #

Patch Set 5 : Fix editing/caret tests #

Patch Set 6 : test expected files #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unfocusable-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/loading/preload-img-test-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLStyleElement.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLStyleElement.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 43 (32 generated)
hiroshige
PTAL. yhirano@, japhet@ for loading. rego@, yosin@, timloh@ for editing/caret test failures: This CL makes ...
3 years, 11 months ago (2016-12-29 22:36:00 UTC) #13
Manuel Rego
On 2016/12/29 22:36:00, hiroshige (OOO) wrote: > rego@, yosin@, timloh@ for editing/caret test failures: > ...
3 years, 11 months ago (2016-12-30 09:08:56 UTC) #16
hiroshige
On 2016/12/30 09:08:56, Manuel Rego wrote: > On 2016/12/29 22:36:00, hiroshige (OOO) wrote: > > ...
3 years, 11 months ago (2017-01-05 22:59:46 UTC) #23
Manuel Rego
On 2017/01/05 22:59:46, hiroshige wrote: > rego@, Thanks for your suggestion! > So these tests ...
3 years, 11 months ago (2017-01-09 09:11:01 UTC) #24
hiroshige
PTAL, japhet@ as a core/ OWNER, rego@ for editing/ test changes.
3 years, 11 months ago (2017-01-13 18:41:32 UTC) #25
Manuel Rego
On 2017/01/13 18:41:32, hiroshige wrote: > rego@ for editing/ test changes. Regarding tests they seem ...
3 years, 11 months ago (2017-01-16 08:24:51 UTC) #26
hiroshige
On 2017/01/16 08:24:51, Manuel Rego wrote: > On 2017/01/13 18:41:32, hiroshige wrote: > > rego@ ...
3 years, 11 months ago (2017-01-18 19:55:55 UTC) #35
hiroshige
Nate, could you also look at this? (Removed editing-related reviewers as the related test changes ...
3 years, 11 months ago (2017-01-19 20:25:58 UTC) #37
Nate Chapin
lgtm
3 years, 11 months ago (2017-01-19 20:39:09 UTC) #38
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/2605173002/120001
3 years, 11 months ago (2017-01-19 21:56:08 UTC) #40
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 23:23:49 UTC) #43
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/0712ce38d1a05590e731d07f9aad...

Powered by Google App Engine
This is Rietveld 408576698