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

Issue 2785103004: Added available bit to m_selectorIndex. (Closed)

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

Description

Added available bit to m_selectorIndex. Increased the max number of simple selectors for one style from 8192 to 16384 by moving one bit to the second 32-bit part to make space for another bit. There is one bit left, but it cannot be utilized since the bit field cannot span two 32 bit values. This doesn't really fix the issue since it's not unlikely someone will use more than 16000 selectors if they use more than 8000 selectors. R=meade@chromium.org BUG=704562 Review-Url: https://codereview.chromium.org/2785103004 Cr-Commit-Position: refs/heads/master@{#461389} Committed: https://chromium.googlesource.com/chromium/src/+/bf40056461d01f9e704f7608c5684663ded95abc

Patch Set 1 #

Patch Set 2 : Added available bit to m_selectorIndex. #

Patch Set 3 : Corrected expectation. #

Total comments: 2

Patch Set 4 : Prefer unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html View 1 2 3 1 chunk +0 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.h View 1 1 chunk +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.cpp View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/RuleSetTest.cpp View 1 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
rune
ptal https://codereview.chromium.org/2785103004/diff/40001/third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html File third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html (right): https://codereview.chromium.org/2785103004/diff/40001/third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html#newcode17 third_party/WebKit/LayoutTests/fast/css/selector-list-limits.html:17: var selectorLimit = 16384; This is basically test ...
3 years, 8 months ago (2017-03-31 17:52:34 UTC) #11
meade_UTC10
lgtm Fun times. Do you know if there's a more permanent solution that can be ...
3 years, 8 months ago (2017-04-03 04:11:33 UTC) #14
rune
On 2017/04/03 04:11:33, Eddy wrote: > lgtm > > Fun times. Do you know if ...
3 years, 8 months ago (2017-04-03 07:41:17 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/2785103004/60001
3 years, 8 months ago (2017-04-03 07:41:44 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 09:06:43 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bf40056461d01f9e704f7608c568...

Powered by Google App Engine
This is Rietveld 408576698