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

Issue 1318543010: Change first() and second() in CSSPairValue to return const references (Closed)

Created:
5 years, 3 months ago by sashab
Modified:
5 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, Eric Willigers, esprehn, rjwright, rwlbuis, shans
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change first() and second() in CSSPairValue to return const references Change the first() and second() methods in CSSPairValue to return const references instead of pointers, since CSSPairValue never stores null objects. BUG=526586 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201532

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -70 lines) Patch
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/animation/DeferredLegacyStyleInterpolation.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/animation/LengthPairStyleInterpolation.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/animation/LengthPairStyleInterpolationTest.cpp View 1 chunk +5 lines, -7 lines 0 comments Download
M Source/core/css/BasicShapeFunctions.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/CSSBasicShapes.cpp View 1 3 chunks +8 lines, -9 lines 0 comments Download
M Source/core/css/CSSGradientValue.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/css/CSSValuePair.h View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/css/resolver/CSSToStyleMap.cpp View 5 chunks +12 lines, -17 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 6 chunks +17 lines, -18 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
sashab
5 years, 3 months ago (2015-08-31 05:01:35 UTC) #2
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/1318543010/diff/20001/Source/core/css/CSSValuePair.h File Source/core/css/CSSValuePair.h (right): https://codereview.chromium.org/1318543010/diff/20001/Source/core/css/CSSValuePair.h#newcode51 Source/core/css/CSSValuePair.h:51: CSSValue& second() { return *m_second; } ...
5 years, 3 months ago (2015-08-31 05:49:21 UTC) #4
sashab
https://codereview.chromium.org/1318543010/diff/20001/Source/core/css/CSSValuePair.h File Source/core/css/CSSValuePair.h (right): https://codereview.chromium.org/1318543010/diff/20001/Source/core/css/CSSValuePair.h#newcode51 Source/core/css/CSSValuePair.h:51: CSSValue& second() { return *m_second; } On 2015/08/31 05:49:21, ...
5 years, 3 months ago (2015-09-01 04:54:41 UTC) #5
Timothy Loh
lgtm
5 years, 3 months ago (2015-09-01 06:35:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318543010/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318543010/40001
5 years, 3 months ago (2015-09-01 06:48:46 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 07:59:05 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201532

Powered by Google App Engine
This is Rietveld 408576698