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

Issue 1373753002: Change CSSToStyleMap functions to take const CSSValue&s (Closed)

Created:
5 years, 2 months ago by sashab
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change CSSToStyleMap functions to take const CSSValue&s Change CSSToStyleMap functions to take const CSSValue&s instead of CSSValue*s. Introduced some temporary const_casts while the rest of StyleBuilderFunctions is changed. BUG=526586 Committed: https://crrev.com/e4b891f347185cc0b79c3497c7860890110d3cf9 Cr-Commit-Position: refs/heads/master@{#352777}

Patch Set 1 #

Patch Set 2 : Small fix #

Total comments: 1

Patch Set 3 : Review feedback #

Total comments: 4

Patch Set 4 : Rebase onto CSSStyleResolverState const change #

Patch Set 5 : Removed unecessary changes to CSSImageValue #

Total comments: 2

Patch Set 6 : Small fix for mask #

Messages

Total messages: 17 (4 generated)
sashab
5 years, 2 months ago (2015-09-28 05:14:23 UTC) #2
sashab
5 years, 2 months ago (2015-09-30 03:17:42 UTC) #4
alancutter (OOO until 2018)
lgtm! https://chromiumcodereview.appspot.com/1373753002/diff/20001/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp File third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp (right): https://chromiumcodereview.appspot.com/1373753002/diff/20001/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp#newcode445 third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp:445: const CSSValue* current = borderImage.item(i); This should be ...
5 years, 2 months ago (2015-10-01 00:37:15 UTC) #5
Timothy Loh
Why don't we just make CSSImageValues have mutable members first instead of adding the same ...
5 years, 2 months ago (2015-10-01 03:03:41 UTC) #6
sashab
I think that making CSSImageValue const (well, really, making ElementStyleResources take const references) is a ...
5 years, 2 months ago (2015-10-02 04:37:34 UTC) #7
sashab
ping timloh, see previous comment.
5 years, 2 months ago (2015-10-06 02:28:55 UTC) #8
Timothy Loh
If we're making the CSSImageValue members mutable here, then update the patch description and remove ...
5 years, 2 months ago (2015-10-06 02:50:46 UTC) #9
sashab
Thanks Tim. Rebased this onto the const StyleResolverState.styleImage() change, and removed unecessary changes to CSSImageValue. ...
5 years, 2 months ago (2015-10-07 01:37:58 UTC) #10
Timothy Loh
lgtm https://codereview.chromium.org/1373753002/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/1373753002/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode80 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:80: NinePieceImage mask; On 2015/10/07 01:37:58, sashab wrote: > ...
5 years, 2 months ago (2015-10-07 02:27:00 UTC) #11
sashab
https://codereview.chromium.org/1373753002/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/1373753002/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode80 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:80: NinePieceImage mask; On 2015/10/07 02:27:00, Timothy Loh wrote: > ...
5 years, 2 months ago (2015-10-07 02:33:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373753002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373753002/100001
5 years, 2 months ago (2015-10-07 04:38:47 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-07 05:45:07 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 05:45:46 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e4b891f347185cc0b79c3497c7860890110d3cf9
Cr-Commit-Position: refs/heads/master@{#352777}

Powered by Google App Engine
This is Rietveld 408576698