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

Issue 2487433002: Revert of Remove EventSender from HTMLStyleElement (Closed)

Created:
4 years, 1 month ago by xlai (Olivia)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews-html_chromium.org, blink-reviews-style_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis, loading-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Remove EventSender from HTMLStyleElement (patchset #20 id:380001 of https://codereview.chromium.org/2269043002/ ) Reason for revert: This CL causes two layout tests to fail. See https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9/builds/39126 Original issue's description: > Remove EventSender from HTMLStyleElement > > This CL replaces EventSender in HTMLLinkElement with postTask(): > Instead of calling HTMLStyleElement::dispatchPendingLoadEvents() in > Document::implicitClose() to enforce <style>'s onload events to be executed > before the document's onload event, this CL blocks document's onload until > <style>'s onload event using IncrementLoadEventDelayCount. > > This CL changes the timing of body onload, particularly causes some of the > following events that were previously called AFTER document onload > to be called BEFORE document onload: > [A] The first layout. > [B] Latter half of FrameLoader::finishedParsing(). > [C] JavaScript function |f| scheduled as |setTimeout(f, 0)| in the <script> > at the end of <body>. > > Notable test fixes (marked with the causes of failures): > > fast/text/international/inline-plaintext-relayout-with-leading-neutrals.html: > [A] Marked as flaky, because it depends on whether body onload is called > before (Pass) or after (Failure) the first layout (crbug/651343). > > fast/scrolling/scrollbar-tickmarks-styled.html: > [A] Fixed by https://codereview.chromium.org/2450793002. > > fast/scrolling/scrollbar-tickmarks-hittest.html: > [A] Fixed by https://codereview.chromium.org/2484613003. > > virtual/rootlayerscrolls/fast/history/scroll-restoration/scroll-restoration-fragment-navigation-crossdoc.html: > [B] Fixed by https://codereview.chromium.org/2467433002. > > svg/animations/animate-end-attribute-numeric-precision.html: > [C] After this CL, calling executeTest() in > svg/animations/script-tests/animate-end-attribute-numeric-precision.js > causes sampleAnimation() to be called before document onload and test to fail. > We set |animationStartsImmediately| true instead, in order to ensure the test > is started in document onload. > > accessibility/inline-text-changes.html: > [Race between the accessibility notification and document onload] > Ignore the second call of the notification handler. > Even before this CL, the notification is called multiple times, but the first > notification terminated the test immediately by finishJSTest() because it is > called after document onload. > This CL makes the notification calls before document onload, and thus the test > continues until document onload and we have to ignore the second call > explicitly. > > fast/block/float/marquee-shrink-to-avoid-floats.html: > The layout tree changes slightly, but it looks like acceptable because the > image expectation matches. > > BUG=624697, 651343 > > Committed: https://crrev.com/52d00fd56184deadce99ff4fe599156ea1da3543 > Cr-Commit-Position: refs/heads/master@{#430348} TBR=haraken@chromium.org,kojii@chromium.org,japhet@chromium.org,yhirano@chromium.org,hiroshige@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=624697, 651343 Committed: https://crrev.com/98116e47e7660b5ad3a71949efea694f96c1104e Cr-Commit-Position: refs/heads/master@{#430366}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -37 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/inline-text-changes.html View 3 chunks +0 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/animation-duration-infinite.html View 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/block/float/marquee-shrink-to-avoid-floats-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unfocusable-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/harness/error-in-async-test-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/loading/preload-img-test-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/animations/script-tests/animate-end-attribute-numeric-precision.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLStyleElement.h View 2 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLStyleElement.cpp View 3 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
xlai (Olivia)
Created Revert of Remove EventSender from HTMLStyleElement
4 years, 1 month ago (2016-11-07 20:41:01 UTC) #2
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/2487433002/1
4 years, 1 month ago (2016-11-07 20:41:50 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-07 20:44:11 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/98116e47e7660b5ad3a71949efea694f96c1104e Cr-Commit-Position: refs/heads/master@{#430366}
4 years, 1 month ago (2016-11-07 21:18:57 UTC) #7
haraken
LGTM to revert
4 years, 1 month ago (2016-11-07 23:26:47 UTC) #8
hiroshige
4 years, 1 month ago (2016-11-08 01:59:12 UTC) #9
Message was sent while issue was closed.
On 2016/11/07 23:26:47, haraken wrote:
> LGTM to revert

lgtm

Powered by Google App Engine
This is Rietveld 408576698