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

Issue 2650743002: Return ActiveSheetsChanged when rulesets change in common prefix. (Closed)

Created:
3 years, 11 months ago by rune
Modified:
3 years, 11 months ago
Reviewers:
meade_UTC10, sashab
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return ActiveSheetsChanged when rulesets change in common prefix. When comparing old and new active sheets, we only append the added sheets to the ScopedStyleResolver if the old sheet vector is a prefix of the new sheets. However, that's not correct if any of the RuleSets in the common prefix changed due to media query changes or cssom modifications of a stylesheet. I can confirm that this fixes 681472. The other two issues in the BUG field look like duplicates, but I've not been able to reproduce them. R=meade@chromium.org,sashab@chromium.org BUG=681472, 677371, 681882 Review-Url: https://codereview.chromium.org/2650743002 Cr-Commit-Position: refs/heads/master@{#446008} Committed: https://chromium.googlesource.com/chromium/src/+/67cfc67e3b62993bb0df9395559e1d1a76d26213

Patch Set 1 #

Total comments: 2

Patch Set 2 : Using bool #

Total comments: 4

Patch Set 3 : Documentation and more descriptive variable name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/null-ruleset-non-matching-media-crash.html View 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
rune
ptal
3 years, 11 months ago (2017-01-23 15:37:23 UTC) #5
sashab
https://codereview.chromium.org/2650743002/diff/1/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp File third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp (right): https://codereview.chromium.org/2650743002/diff/1/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp#newcode49 third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp:49: return change; I'm having trouble comparing these two logic. ...
3 years, 11 months ago (2017-01-23 22:06:33 UTC) #6
rune
https://codereview.chromium.org/2650743002/diff/1/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp File third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp (right): https://codereview.chromium.org/2650743002/diff/1/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp#newcode49 third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp:49: return change; On 2017/01/23 22:06:33, sashab wrote: > I'm ...
3 years, 11 months ago (2017-01-24 01:08:10 UTC) #7
sashab
Looking much better! :) LGTM https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp File third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp (right): https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp#newcode41 third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp:41: bool ruleSetsChanged = !changedRuleSets.isEmpty(); ...
3 years, 11 months ago (2017-01-25 02:45:00 UTC) #12
meade_UTC10
lgtm https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp File third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp (right): https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp#newcode41 third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp:41: bool ruleSetsChanged = !changedRuleSets.isEmpty(); On 2017/01/25 02:45:00, sashab ...
3 years, 11 months ago (2017-01-25 05:14:40 UTC) #13
rune
https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp File third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp (right): https://codereview.chromium.org/2650743002/diff/20001/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp#newcode41 third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp:41: bool ruleSetsChanged = !changedRuleSets.isEmpty(); On 2017/01/25 02:45:00, sashab wrote: ...
3 years, 11 months ago (2017-01-25 08:57:34 UTC) #14
rune
I've added documentation and renamed the boolean to make this clearer.
3 years, 11 months ago (2017-01-25 09:26:27 UTC) #15
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/2650743002/40001
3 years, 11 months ago (2017-01-25 09:31:09 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 13:10:32 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/67cfc67e3b62993bb0df9395559e...

Powered by Google App Engine
This is Rietveld 408576698