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

Issue 2710183002: WTF::Vector: Enable static_asserts in a Vector constructor.

Created:
3 years, 10 months ago by Yuta Kitamura
Modified:
3 years, 10 months ago
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WTF::Vector: Enable static_asserts in a Vector constructor. Those static_asserts did not work because Vector<LayoutBox*> was created in a context where LayoutBox was an incomplete type. Adding an #include fixes this. This is a follow-up of the following commit: https://chromium.googlesource.com/chromium/src.git/+/e6cfc1a979decf08475dcef3b095c8af9c8f2649 BUG=690816

Patch Set 1 : Add #include -- this causes a DEPS error #

Patch Set 2 : De-inline the method in question; this compiles for some reason. #

Patch Set 3 : Revert PS2. #

Patch Set 4 : Add a "temporarily allowed" rule in DEPS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -15 lines) Patch
M third_party/WebKit/Source/core/layout/line/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/RootInlineBox.h View 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/Vector.h View 2 1 chunk +12 lines, -15 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
Yuta Kitamura
*** This is a request for comments, not a review request *** haraken, kouhei: Patch ...
3 years, 10 months ago (2017-02-23 08:44:02 UTC) #4
haraken
On 2017/02/23 08:44:02, Yuta Kitamura wrote: > *** This is a request for comments, not ...
3 years, 10 months ago (2017-02-23 09:00:23 UTC) #5
Yuta Kitamura
On 2017/02/23 09:00:23, haraken wrote: > Just to confirm: Moving the method definition to a ...
3 years, 10 months ago (2017-02-23 09:17:27 UTC) #6
Yuta Kitamura
+eae as haraken suggested eae: Do you have an opinion about how to resolve those? ...
3 years, 10 months ago (2017-02-23 09:18:44 UTC) #8
eae
I think it's fine to violate the layout/line constraint here, having the static casts are ...
3 years, 10 months ago (2017-02-23 15:57:12 UTC) #13
eae
LGTM
3 years, 10 months ago (2017-02-24 04:07:02 UTC) #14
haraken
LGTM
3 years, 10 months ago (2017-02-24 04:08:20 UTC) #15
Yuta Kitamura
On 2017/02/23 15:57:12, eae wrote: > I think it's fine to violate the layout/line constraint ...
3 years, 10 months ago (2017-02-24 06:17:03 UTC) #16
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/2710183002/40001
3 years, 10 months ago (2017-02-24 06:22:51 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/372127)
3 years, 10 months ago (2017-02-24 06:29:45 UTC) #22
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/2710183002/40001
3 years, 10 months ago (2017-02-24 06:43:34 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/125712) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 10 months ago (2017-02-24 07:06:09 UTC) #27
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/2710183002/40001
3 years, 10 months ago (2017-02-24 07:10:13 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/125730) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 10 months ago (2017-02-24 07:41:02 UTC) #31
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/2710183002/40001
3 years, 10 months ago (2017-02-24 09:23:46 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/397082)
3 years, 10 months ago (2017-02-24 11:13:50 UTC) #35
Yuta Kitamura
3 years, 10 months ago (2017-02-24 12:46:35 UTC) #39
Seems like a change with DEPS violation can't be accepted
in bots, so I added a "temporarily allowed" include rule in
DEPS (next to existing ones).

eae: Can you look at this again? Thanks!

Powered by Google App Engine
This is Rietveld 408576698