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

Issue 2747193002: Fix instances of clang -Wbitfield-enum-conversion in Blink (Closed)

Created:
3 years, 9 months ago by Reid Kleckner
Modified:
3 years, 9 months ago
Reviewers:
ikilpatrick, pdr., Nico
CC:
chromium-reviews, ojan+watch_chromium.org, shans, eae+blinkwatch, fs, zoltan1, kouhei+svg_chromium.org, rwlbuis, krit, szager+layoutwatch_chromium.org, jchaffraix+rendering, blink-reviews, gyuyoung2, pdr+svgwatchlist_chromium.org, Eric Willigers, rjwright, atotic+reviews_chromium.org, blink-reviews-layout_chromium.org, darktears, cbiesinger, glebl+reviews_chromium.org, dgrogan+ng_chromium.org, blink-reviews-animation_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, fmalita+watch_chromium.org, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix instances of clang -Wbitfield-enum-conversion in Blink Widen parent_writing_mode_ to fit all enumerator values. This looks like a real bug. Add static_cast<unsigned> when assigning m_cssPropertyId. This suppresses the warning. It looks like enumerators larger than lastCXXProperty should never appear here. R=pdr@chromium.org,thakis@chromium.org BUG=701384 Review-Url: https://codereview.chromium.org/2747193002 Cr-Commit-Position: refs/heads/master@{#456848} Committed: https://chromium.googlesource.com/chromium/src/+/782364b2af9f1c3c7f0a39d5dd9fa1df34cdfb09

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment documenting why this cast is necessary #

Total comments: 3

Patch Set 3 : better wording #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 21 (9 generated)
Reid Kleckner
3 years, 9 months ago (2017-03-14 16:59:04 UTC) #1
Nico
lgtm with the comment https://codereview.chromium.org/2747193002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h File third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h (right): https://codereview.chromium.org/2747193002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h#newcode75 third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h:75: unsigned parent_writing_mode_ : 3; ikilpatrick: ...
3 years, 9 months ago (2017-03-14 17:16:47 UTC) #4
Nico
lgtm with the comment
3 years, 9 months ago (2017-03-14 17:16:55 UTC) #5
pdr.
On 2017/03/14 at 17:16:55, thakis wrote: > lgtm with the comment lgtm 2, these comments ...
3 years, 9 months ago (2017-03-14 17:51:57 UTC) #6
ikilpatrick
lgtm, yup we are missing tests for sideways writing modes at the moment.
3 years, 9 months ago (2017-03-14 18:14:06 UTC) #8
ikilpatrick
lgtm, yup we are missing tests for sideways writing modes at the moment.
3 years, 9 months ago (2017-03-14 18:14:07 UTC) #9
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/2747193002/20001
3 years, 9 months ago (2017-03-14 18:48:58 UTC) #12
Nico
(sorry) https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp (right): https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp#newcode44 third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp:44: // truncation. Maybe also say why this is ...
3 years, 9 months ago (2017-03-14 18:50:00 UTC) #13
Reid Kleckner
https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp (right): https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp#newcode44 third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp:44: // truncation. On 2017/03/14 18:50:00, Nico wrote: > Maybe ...
3 years, 9 months ago (2017-03-14 19:37:26 UTC) #14
Nico
https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp (right): https://codereview.chromium.org/2747193002/diff/20001/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp#newcode44 third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp:44: // truncation. On 2017/03/14 19:37:25, Reid Kleckner wrote: > ...
3 years, 9 months ago (2017-03-14 19:52:25 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/2747193002/40001
3 years, 9 months ago (2017-03-14 19:59:06 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 21:49:56 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/782364b2af9f1c3c7f0a39d5dd9f...

Powered by Google App Engine
This is Rietveld 408576698