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

Issue 16339006: Make sure to use CSSValueID and CSSPropertyID rather than integers. (Closed)

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

Description

Make sure to use CSSValueID and CSSPropertyID rather than integers. This will ensure that types are enforced when passing arguments in various css functions. Having a compile time check make sure that no mistakes will be done over the type. The parser was also patched to directly use CSSValueID over integers. This patch also fixes various call sites abusing the usage of integers. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151920

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -99 lines) Patch
M Source/core/css/CSSComputedStyleDeclaration.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/css/CSSGrammar.y.in View 12 chunks +19 lines, -19 lines 0 comments Download
M Source/core/css/CSSParser.h View 4 chunks +8 lines, -7 lines 0 comments Download
M Source/core/css/CSSParser.cpp View 22 chunks +33 lines, -29 lines 0 comments Download
M Source/core/css/CSSParserValues.h View 3 chunks +5 lines, -4 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/css/CSSValuePool.h View 2 chunks +6 lines, -4 lines 0 comments Download
M Source/core/css/CSSValuePool.cpp View 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/css/StylePropertySet.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/StylePropertySet.cpp View 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/dom/StyledElement.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/StyledElement.cpp View 2 chunks +9 lines, -2 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/EditorCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFontElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFontElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLTableElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/TextTrackCue.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/track/TextTrackCue.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
darktears
7 years, 6 months ago (2013-06-05 21:03:44 UTC) #1
apavlov
lgtm
7 years, 6 months ago (2013-06-06 12:07:02 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexis.menard@intel.com/16339006/1
7 years, 6 months ago (2013-06-06 12:07:17 UTC) #3
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 12:10:46 UTC) #4
Message was sent while issue was closed.
Change committed as 151920

Powered by Google App Engine
This is Rietveld 408576698