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

Issue 2232093002: Removed parent data storage common to multiple CSSValues (Closed)

Created:
4 years, 4 months ago by sashab
Modified:
4 years, 2 months ago
Reviewers:
Timothy Loh, esprehn
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed parent data storage common to multiple CSSValues Removed parent data storage common to multiple CSSValues, such as CSSValueList type bits and CSSPrimitiveValue type bits. This has no effect on sizeof(CSSPrimitiveValue) (which remains at 4 bytes) or sizeof(CSSValueList) (which remains at 56 bytes). BUG=486252

Patch Set 1 #

Patch Set 2 : Removed unsigned from enum class #

Total comments: 1

Patch Set 3 : Rebase on top of change to add SameSizeAs checks #

Patch Set 4 : Rebase onto other patch #

Patch Set 5 : Rebase #

Patch Set 6 : Tried re-ordering fields to fix larger size on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -18 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 1 2 3 1 chunk +1 line, -15 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValueList.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (14 generated)
sashab
Esprehn/timloh any idea why this was done this way?
4 years, 4 months ago (2016-08-11 04:29:20 UTC) #2
esprehn
Are there static_asserts about the sizes for this? This was done so the bits can ...
4 years, 4 months ago (2016-08-11 05:42:35 UTC) #3
sashab
4 years, 2 months ago (2016-09-30 03:20:22 UTC) #17
You're right. Thanks to those static_asserts we can see, this does indeed make
the classes bigger. :)

Powered by Google App Engine
This is Rietveld 408576698