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

Issue 17448021: Make sure ImmutableStylePropertySet uses the new 16 bits size of StylePropertyMetadata. (Closed)

Created:
7 years, 6 months ago by darktears
Modified:
7 years, 6 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Make sure ImmutableStylePropertySet uses the new 16 bits size of StylePropertyMetadata. We know that StylePropertyMetadata is 16 bits so we can use uint16_t as the type for the bitfields so that sizeof(StylePropertyMetadata) is equals to 2 bytes. Cleanup two casts not necessary at the same time. This should save up ~1.8Mb on Apple membuster test. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152910

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M Source/core/css/CSSProperty.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M Source/core/css/StylePropertySet.h View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
darktears
7 years, 6 months ago (2013-06-21 18:38:22 UTC) #1
abarth-chromium
@jyasskin: Would you be willing to help us out with the CL? What we're trying ...
7 years, 6 months ago (2013-06-21 18:55:05 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/17448021/diff/1/Source/core/css/CSSProperty.h File Source/core/css/CSSProperty.h (right): https://codereview.chromium.org/17448021/diff/1/Source/core/css/CSSProperty.h#newcode46 Source/core/css/CSSProperty.h:46: memcpy(this, &data, sizeof(StylePropertyMetadata)); memcpy is dangerous because of endian-ness ...
7 years, 6 months ago (2013-06-21 19:56:27 UTC) #3
abarth-chromium
LGTM. Yay for not fighting the language :)
7 years, 6 months ago (2013-06-21 21:38:04 UTC) #4
darktears
On 2013/06/21 21:38:04, abarth wrote: > LGTM. Yay for not fighting the language :) The ...
7 years, 6 months ago (2013-06-21 21:38:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexis.menard@intel.com/17448021/11001
7 years, 6 months ago (2013-06-21 21:39:01 UTC) #6
esprehn
Way better! Thanks for fixing this. :)
7 years, 6 months ago (2013-06-21 21:39:38 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 23:15:39 UTC) #8
Message was sent while issue was closed.
Change committed as 152910

Powered by Google App Engine
This is Rietveld 408576698