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

Issue 2716813002: Remove inheritance on SameSizeAsComputedStyle. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 9 months ago
Reviewers:
esprehn, sashab
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove inheritance on SameSizeAsComputedStyle. Currently there is a static assert that checks the size of ComputedStyle against a comparison struct of known size. However, the comparison struct inherits from ComputedStyleBase, so the size of ComputedStyleBase is hidden from view. This patch explicitly declares the size of ComputedStyleBase in the comparison struct so that we can get a better sense of how big ComputedStyle is. BUG=628043 Review-Url: https://codereview.chromium.org/2716813002 Cr-Commit-Position: refs/heads/master@{#453345} Committed: https://chromium.googlesource.com/chromium/src/+/92131be1f24ca5fa037afb835c4df358269a113c

Patch Set 1 #

Patch Set 2 : Add comment #

Total comments: 3

Patch Set 3 : Change comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
shend
Hi Sasha, PTAL
3 years, 10 months ago (2017-02-24 06:01:12 UTC) #4
sashab
I'm really happy about this, so LGTM. But lets see if esprehn@ has any ideas ...
3 years, 10 months ago (2017-02-24 06:05:41 UTC) #6
esprehn
lgtm, Inheritance in these size checks is useful for something global, ex. RefCounted since that ...
3 years, 9 months ago (2017-02-24 17:59:49 UTC) #9
shend
https://codereview.chromium.org/2716813002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2716813002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode92 third_party/WebKit/Source/core/style/ComputedStyle.cpp:92: // update the SameSizeAsComputedStyle struct to mirror the updated ...
3 years, 9 months ago (2017-02-27 19:36:44 UTC) #10
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/2716813002/40001
3 years, 9 months ago (2017-02-27 19:37:18 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 21:35:42 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/92131be1f24ca5fa037afb835c4d...

Powered by Google App Engine
This is Rietveld 408576698