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

Issue 1533683002: Persist invalidation sets on detach root (Closed)

Created:
5 years ago by rune
Modified:
4 years, 11 months ago
Reviewers:
esprehn, Eric Willigers
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Persist invalidation sets on detach root This is a second attempt at not clearing sibling invalidation sets on detached and SubtreeStyleChange nodes. The first[1] failed because childNeedsStyleInvalidation() was still cleared on detach(). This approach keeps invalidation sets on the detach root, but clears invalidation sets on descendants. However, when we detach a node to be removed, we also clear the detach root as that will not have a chance of being used on the next invalidation. Also, there are asserts checking that we don't re-insert nodes into the tree with needsStyleInvalidation(). Removed scheduled sibling invalidation sets from nodes being removed from the tree is not a problem as the checkForSiblingStyleChanges() method will make sure sibling trees are invalidated. The early return in StyleInvalidator::scheduleInvalidationSetsForElement is removed to be able to schedule sibling invalidation sets although we have a SubtreeStyleChange or ReattachStyleChange on the element itself. The added test checks that the invalidation works properly, also after the checkForChildrenAdjacentRuleChanges() removal. [1] https://codereview.chromium.org/1507653002 R=esprehn@chromium.org,ericwilligers@chromium.org BUG=557440 Committed: https://crrev.com/8559ce4ad0e473907604f6ecd51c80a06880cc29 Cr-Commit-Position: refs/heads/master@{#369021}

Patch Set 1 #

Patch Set 2 : Persist invalidation sets on detach root #

Patch Set 3 : Avoid detaching when in inactive state #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -19 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/invalidation/reattach-with-sibling-invalidation.html View 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/invalidation/reattach-with-sibling-invalidation-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp View 1 chunk +12 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1533683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1533683002/1
5 years ago (2015-12-16 23:27:02 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 02:45:00 UTC) #4
rune
ptal
5 years ago (2015-12-18 08:18:57 UTC) #5
esprehn
This doesn't feel right, it means we still do invalidation even if something caused an ...
5 years ago (2015-12-19 03:35:51 UTC) #6
rune
On 2015/12/19 03:35:51, esprehn wrote: > This doesn't feel right, it means we still do ...
5 years ago (2015-12-22 10:24:46 UTC) #8
rune
ptal
4 years, 11 months ago (2016-01-05 08:47:55 UTC) #10
rune
ping
4 years, 11 months ago (2016-01-11 11:38:46 UTC) #11
esprehn
Yeah this seems right. Lgtm I wondered if there was an implicit way to detect ...
4 years, 11 months ago (2016-01-12 20:47:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1533683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1533683002/40001
4 years, 11 months ago (2016-01-12 21:05:10 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-12 23:00:36 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 23:01:38 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8559ce4ad0e473907604f6ecd51c80a06880cc29
Cr-Commit-Position: refs/heads/master@{#369021}

Powered by Google App Engine
This is Rietveld 408576698