|
|
Chromium Code Reviews
DescriptionCSS 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 #
Messages
Total messages: 26 (18 generated)
The CQ bit was checked by tkent@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== DOM: Fix a regression of :first-child and :last-child invalidation BUG=702104 ========== to ========== CSS Selector: Fix a regression of :first-child and :last-child invalidation BUG=702104 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_...)
Description was changed from ========== CSS Selector: Fix a regression of :first-child and :last-child invalidation BUG=702104 ========== to ========== CSS Selector: Fix a regression of :first-child and :last-child invalidation Change the definition of ChildrenChanged:: ContainerNode::checkForSiblingStyleChanges BUG=702104 ==========
Description was changed from ========== CSS Selector: Fix a regression of :first-child and :last-child invalidation Change the definition of ChildrenChanged:: ContainerNode::checkForSiblingStyleChanges BUG=702104 ========== to ========== 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. 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 ==========
Description was changed from ========== 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. 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 ========== to ========== 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. 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 ==========
Description was changed from ========== 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. 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 ========== to ========== 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. 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 ==========
tkent@chromium.org changed reviewers: + hayato@chromium.org
hayato@, would you review this please?
lgtm
Description was changed from ========== 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. 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 ========== to ========== 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 ==========
The CQ bit was checked by tkent@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by tkent@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by tkent@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 1, "attempt_start_ts": 1490254760694670, "parent_rev":
"b055586989fbca2696edc7e849c995bf05e0f0c1", "commit_rev":
"e89e9ca08e4abca7bf13d7424434b301caf5b4a5"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/e89e9ca08e4abca7bf13d7424434... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/e89e9ca08e4abca7bf13d7424434... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
