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

Issue 2772463004: DOM: Fix a regression of :first-child and :last-child invalidation (Closed)

Created:
3 years, 9 months ago by tkent
Modified:
3 years, 9 months ago
Reviewers:
hayato
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CSS Selector: Fix a regression of :first-child and :last-child invalidation https://codereview.chromium.org/2306323002 caused a regression of :first-child and :last-child invalidation because the timing of ContainerNode::childrenChanged was slightly changed for multiple nodes insertion. Before: childrenChanged was called on every node insertion After: childrenChanged was called after inserting all nodes This CL changes the definition of ChildrenChanged::siblingBeforeChange and siblingAfterChange so that they always point existing nodes before insertion operations. It fixes the behavior of ContainerNode::checkForSiblingStyleChanges, which is called from Element::childrenChanged and ShadowRoot::childrenChanged. siblingBeforeChange and siblingAfterChange are used only by checkForSiblingStyleChanges. So this definition change is safe. BUG=702104 Review-Url: https://codereview.chromium.org/2772463004 Cr-Commit-Position: refs/heads/master@{#459023} Committed: https://chromium.googlesource.com/chromium/src/+/e89e9ca08e4abca7bf13d7424434b301caf5b4a5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -5 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/invalidation/firstchild-lastchild-for-multiple-node-insertion.html View 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.h View 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
tkent
hayato@, would you review this please?
3 years, 9 months ago (2017-03-23 04:12:44 UTC) #11
hayato
lgtm
3 years, 9 months ago (2017-03-23 05:05:22 UTC) #12
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/2772463004/1
3 years, 9 months ago (2017-03-23 05:09:34 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304386)
3 years, 9 months ago (2017-03-23 05:26:00 UTC) #17
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/2772463004/1
3 years, 9 months ago (2017-03-23 05:50:20 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304436)
3 years, 9 months ago (2017-03-23 06:05:01 UTC) #21
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/2772463004/1
3 years, 9 months ago (2017-03-23 07:39:35 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 08:09:32 UTC) #26
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e89e9ca08e4abca7bf13d7424434...

Powered by Google App Engine
This is Rietveld 408576698