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

Issue 1514733002: Avoid unnecessary invalidation scheduling. (Closed)

Created:
5 years ago by rune
Modified:
5 years ago
Reviewers:
esprehn
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

Avoid unnecessary invalidation scheduling. We skip scheduling invalidation sets for an element when: * StyleResolver is null * Element is not inActiveDocument() * Element does not have a parent * Element parent has SubtreeStyleChange or ReattachStyleChange Additionally we skip descendant invalidations when: * Element has SubtreeStyleChange or ReattachStyleChange and sibling invalidations when: * Element.nextSibling is null Removed an unnecessary SubtreeStyleChange when StyleResolver is null for attribute changes. BUG=557440 Committed: https://crrev.com/0d735b3ac72c85222599617a0aae571eb8f9170e Cr-Commit-Position: refs/heads/master@{#365188}

Patch Set 1 #

Patch Set 2 : Don't do style invalidation in import documents #

Total comments: 4

Patch Set 3 : Removed unnecessary isMaster check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -30 lines) Patch
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 6 chunks +5 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 5 chunks +25 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (11 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/1514733002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514733002/1
5 years ago (2015-12-10 00:22:35 UTC) #2
rune
Needs testing.
5 years ago (2015-12-10 00:34:12 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/99892)
5 years ago (2015-12-10 01:28:27 UTC) #6
esprehn
Looks like you fail a ton of tests, but the spirit of this change looks ...
5 years ago (2015-12-10 02:48:32 UTC) #8
rune
On 2015/12/10 02:48:32, esprehn wrote: > Looks like you fail a ton of tests, but ...
5 years ago (2015-12-10 08:07:12 UTC) #9
rune
https://codereview.chromium.org/1514733002/diff/20001/third_party/WebKit/Source/core/dom/StyleEngine.cpp File third_party/WebKit/Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/1514733002/diff/20001/third_party/WebKit/Source/core/dom/StyleEngine.cpp#newcode633 third_party/WebKit/Source/core/dom/StyleEngine.cpp:633: return true; Should I rely on non-master documents having ...
5 years ago (2015-12-10 08:08:52 UTC) #10
esprehn
https://codereview.chromium.org/1514733002/diff/20001/third_party/WebKit/Source/core/dom/StyleEngine.cpp File third_party/WebKit/Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/1514733002/diff/20001/third_party/WebKit/Source/core/dom/StyleEngine.cpp#newcode633 third_party/WebKit/Source/core/dom/StyleEngine.cpp:633: return true; On 2015/12/10 at 08:08:52, rune wrote: > ...
5 years ago (2015-12-10 08:53:47 UTC) #11
esprehn
ignore that last one, I missed the other changes. This looks fine, you don't need ...
5 years ago (2015-12-10 08:57:01 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514733002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514733002/40001
5 years ago (2015-12-14 21:44:43 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/120177)
5 years ago (2015-12-15 04:20:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514733002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514733002/40001
5 years ago (2015-12-15 06:41:58 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-15 06:46:26 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-15 06:47:09 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0d735b3ac72c85222599617a0aae571eb8f9170e
Cr-Commit-Position: refs/heads/master@{#365188}

Powered by Google App Engine
This is Rietveld 408576698