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

Issue 2896233002: Assert that ComputedStyleBase is only templated with ComputedStyle (Closed)

Created:
3 years, 7 months ago by nainar
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Assert that ComputedStyleBase is only templated with ComputedStyle This patch adds a static_assert to assert at compile time that a ComputedStyleBase can only be templated with a ComputedStyle. Diff: https://gist.github.com/nainar/ea6c15963c9fe91a4d0c8c9cc5eddbad/revisions BUG=710938 Review-Url: https://codereview.chromium.org/2896233002 Cr-Commit-Position: refs/heads/master@{#474146} Committed: https://chromium.googlesource.com/chromium/src/+/ef53b0adb151b2eb77e4c5dcda0d9cea47e97a6d

Patch Set 1 #

Total comments: 4

Patch Set 2 : shend@'s suggestions #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 22 (16 generated)
nainar
shend@, PTAL? Thanks!
3 years, 7 months ago (2017-05-23 11:23:15 UTC) #5
shend
lgtm with nits https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode155 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:155: nit: don't need extra space. https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode174 ...
3 years, 7 months ago (2017-05-23 22:22:48 UTC) #8
nainar
alancutter@, PTAL? Thanks! https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode155 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:155: Done https://codereview.chromium.org/2896233002/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode174 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:174: static_assert(std::is_same<ComputedStyle, ComputedStyleFinal>::value, "ComputedStyleBase ...
3 years, 7 months ago (2017-05-23 23:45:17 UTC) #12
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2896233002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2896233002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode169 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:169: static_assert(std::is_same<ComputedStyle, ComputedStyleFinal>::value, "ComputedStyleBase can only be templated with ...
3 years, 7 months ago (2017-05-24 01:45:26 UTC) #14
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/2896233002/20001
3 years, 7 months ago (2017-05-24 03:19:30 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 03:23:35 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ef53b0adb151b2eb77e4c5dcda0d...

Powered by Google App Engine
This is Rietveld 408576698