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

Issue 1503993002: Don't early return on SubtreeStyleChange for scheduling invalidations. (Closed)

Created:
5 years ago by rune
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@remove-clear-invalidation-set-20151207
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't early return on SubtreeStyleChange for scheduling invalidations. Sibling invalidation sets still need to be scheduled for elements with SubtreeStyleChange when SubtreeStyleChange is for strict subtree. R=dstockwell@chromium.org,ericwilligers@chromium.org BUG=557440 Committed: https://crrev.com/8050c33e5d32973efecfff584d055666b5361e8c Cr-Commit-Position: refs/heads/master@{#364092}

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -30 lines) Patch
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 3 chunks +18 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 5 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
rune
5 years ago (2015-12-07 13:59:16 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1503993002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1503993002/1
5 years ago (2015-12-08 09:56:23 UTC) #3
Eric Willigers
lgtm
5 years ago (2015-12-09 12:36:30 UTC) #5
commit-bot: I haz the power
This CL has an open dependency (Issue 1507653002 Patch 1). Please resolve the dependency and ...
5 years ago (2015-12-09 13:16:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1503993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1503993002/20001
5 years ago (2015-12-09 15:09:46 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-09 17:10:49 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/8050c33e5d32973efecfff584d055666b5361e8c Cr-Commit-Position: refs/heads/master@{#364092}
5 years ago (2015-12-09 17:11:27 UTC) #14
esprehn
Hmm this means we schedule invalidation sets for brand new elements that haven't been attached ...
5 years ago (2015-12-09 17:55:51 UTC) #16
rune
On 2015/12/09 17:55:51, esprehn wrote: > Hmm this means we schedule invalidation sets for brand ...
5 years ago (2015-12-09 18:37:31 UTC) #17
rune
On 2015/12/09 18:37:31, rune wrote: > I think we can return earlier by checking Node::inDocument()? ...
5 years ago (2015-12-09 18:59:20 UTC) #18
esprehn
These elements are often already in the document, imagine document.body.appendChild().className, there's template systems that do ...
5 years ago (2015-12-09 19:05:21 UTC) #19
esprehn
These elements are often already in the document, imagine document.body.appendChild().className, there's template systems that do ...
5 years ago (2015-12-09 19:05:21 UTC) #20
rune
5 years ago (2015-12-10 00:32:20 UTC) #21
Message was sent while issue was closed.
On 2015/12/09 19:05:21, esprehn wrote:

> These elements are often already in the document, imagine
> document.body.appendChild().className, there's template systems that do
> that but thousands of times in a row building up content. The parent check
> sounds good, can we also check if the new invalidation set contains any
> sibling sets? If not we can skip it if >= Subtree

The check for >= Subtree is already done for descendant invalidation sets in
scheduleInvalidationSetsForElement. I've added a parent check and a nextSibling
check for sibling sets in https://codereview.chromium.org/1514733002/

Powered by Google App Engine
This is Rietveld 408576698