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

Issue 2701353002: Make explicit constant for num of CSSPropertyIDs (Closed)

Created:
3 years, 10 months ago by suzyh_UTC10 (ex-contributor)
Modified:
3 years, 9 months ago
Reviewers:
sashab, Rick Byers
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make explicit constant for num of CSSPropertyIDs A handful of locations in the code refer to "lastUnresolvedCSSProperty + 1" as a way of ensuring that a BitVector is big enough to hold all values for CSSPropertyID. To make the code easier to read, and to centralize the responsibility for getting the "+ 1" correct, this patch introduces an explicit numCSSPropertyIDs constant to contain this value. BUG=458925 Review-Url: https://codereview.chromium.org/2701353002 Cr-Commit-Position: refs/heads/master@{#454811} Committed: https://chromium.googlesource.com/chromium/src/+/a6b223a87ecb54cdea51f967f273419f282ee9eb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M third_party/WebKit/Source/build/scripts/make_css_property_names.py View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 3 chunks +3 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
suzyh_UTC10 (ex-contributor)
3 years, 10 months ago (2017-02-20 05:28:59 UTC) #4
sashab
lgtm
3 years, 10 months ago (2017-02-20 05:30:08 UTC) #5
Rick Byers
Sorry I missed this CL! Nice cleanup, LGTM
3 years, 9 months ago (2017-02-24 22:17:11 UTC) #8
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/2701353002/1
3 years, 9 months ago (2017-02-25 00:44:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/217880) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 9 months ago (2017-02-25 00:45:56 UTC) #12
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/2701353002/1
3 years, 9 months ago (2017-03-06 00:27:32 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 01:56:22 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/a6b223a87ecb54cdea51f967f273...

Powered by Google App Engine
This is Rietveld 408576698