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

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)

Created:
4 years, 2 months ago by dcheng
Modified:
4 years, 2 months ago
Reviewers:
esprehn
CC:
aboxhall, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dmazzoni, krit, eae+blinkwatch, Eric Willigers, f(malita), fs, gyuyoung2, je_julie, kenneth.christiansen, kinuko+watch, kouhei+svg_chromium.org, nektarios, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, sof, Yoav Weiss, alancutter (OOO until 2018), jochen (gone - plz use gerrit), Timothy Loh
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue Split CSSPrimitiveValue into two subtypes, CSSPrimitiveValue (for numerical and calc values) and CSSIdentifierValue (for identifiers). This is part of a larger effort to split up CSSPrimitiveValue. This patch is meant to be entirely mechanical changes; if it passes all tests with no behaviour changes, it has been implemented correctly. The patch itself was mainly done with find-and-replaces to createKeyword() and convertTo<>(), then fixing any other errors, sucha as those resulting from irregular flow (e.g. if (!x.isPrimitiveValue) return; in CSSToStyleMap) or similar. The largest change has been to CSSPrimitiveValueMappings.h, since the convertTo<> method has been moved to CSSIdentifierValue. Also, a create(Length, zoom) method was added to CSSValue temporarily, and callers will later change to switch between which create method (CSSPrimitiveValue or CSSIdentifierValue) they wish to use. BUG=523893 patch from issue 2346193002 at patchset 200001 (http://crrev.com/2346193002#ps200001) Committed: https://crrev.com/90e5a7289784dc5a491a7f1e3a87f30a1eb0bbad Cr-Commit-Position: refs/heads/master@{#422305}

Patch Set 1 #

Patch Set 2 : Rebase but not reformatted #

Patch Set 3 : clang-format new code #

Patch Set 4 : Make check-webkit-style happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2645 lines, -2631 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 4 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp View 1 2 chunks +13 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSClipInterpolationType.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp View 1 3 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSFilterListInterpolationType.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSFontWeightInterpolationType.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSImageSliceInterpolationType.cpp View 1 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp View 1 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/CSSPositionAxisListInterpolationType.cpp View 1 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp View 1 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ShadowInterpolationFunctions.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/SizeInterpolationFunctions.cpp View 1 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableUnknownTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 7 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp View 1 5 chunks +18 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSBasicShapeValues.h View 1 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp View 1 6 chunks +17 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSBorderImageSliceValue.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp View 1 4 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSContentDistributionValue.h View 1 2 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCounterValue.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.cpp View 1 8 chunks +49 lines, -28 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSIdentifierValue.h View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/CSSIdentifierValue.cpp View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSMatrix.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.h View 1 7 chunks +4 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 1 7 chunks +6 lines, -73 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 104 chunks +1001 lines, -1187 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSQuadValue.h View 1 4 chunks +16 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSReflectValue.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSReflectValue.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSShadowValue.h View 1 4 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSShadowValue.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValue.cpp View 1 7 chunks +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 116 chunks +378 lines, -385 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 7 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryExp.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySerializer.cpp View 1 9 chunks +25 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp View 1 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserFastPathsTest.cpp View 1 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 75 chunks +180 lines, -176 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h View 1 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 11 chunks +61 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp View 1 23 chunks +73 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/FilterOperationResolver.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 3 chunks +27 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 39 chunks +144 lines, -141 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 20 chunks +106 lines, -97 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp View 1 4 chunks +32 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TextLinkColors.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingStyle.cpp View 1 2 3 23 chunks +86 lines, -78 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/Serialization.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTableElement.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathElement.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebAXObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
esprehn
lgtm
4 years, 2 months ago (2016-10-01 03:29:03 UTC) #2
dcheng
CCing original reviewers. Cloned from https://codereview.chromium.org/2346193002. PS1 -> PS2 is auto rebase over the reformat ...
4 years, 2 months ago (2016-10-01 03:31:39 UTC) #4
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/2382653006/60001
4 years, 2 months ago (2016-10-01 03:32:04 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-01 06:03:44 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 06:05:44 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/90e5a7289784dc5a491a7f1e3a87f30a1eb0bbad
Cr-Commit-Position: refs/heads/master@{#422305}

Powered by Google App Engine
This is Rietveld 408576698