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

Issue 1387113002: Change StyleResolverState.styleImage() to take a const CSSValue& (Closed)

Created:
5 years, 2 months ago by sashab
Modified:
5 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, Eric Willigers, jfernandez, Manuel Rego, rjwright, rwlbuis, shans, slimming-paint-reviews_chromium.org, svillar
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change StyleResolverState.styleImage() to take a const CSSValue& Change StyleResolverState.styleImage to take a const CSSValue& instead of a CSSValue*. This involved changing most ElementStyleResources functions to do the same. Also introduced some const_casts into StylePendingImage and StyleGeneratedImage since RefPtr<> currently doesn't support storing const objects. This is required to enable CSSToStyleMap to take const CSSValue&s. BUG=526586 Committed: https://crrev.com/4ee57fcf43daf1b7dea8dd6bf9f1858b1b60f24b Cr-Commit-Position: refs/heads/master@{#352761}

Patch Set 1 #

Patch Set 2 : Added TODOs to replace the members with const members #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -52 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSCursorImageValue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageSetValue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageSetValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ElementStyleResources.h View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp View 1 chunk +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResourceLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImageGridTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StylePendingImage.h View 1 2 chunks +5 lines, -3 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
sashab
Tim; wdyt? I could add accessors to the non-const RefPtrWillBeMember<>s that make them const, and ...
5 years, 2 months ago (2015-10-06 03:41:05 UTC) #2
Timothy Loh
lgtm
5 years, 2 months ago (2015-10-07 00:47:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387113002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387113002/20001
5 years, 2 months ago (2015-10-07 00:52:40 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/1387113002/diff/20001/third_party/WebKit/Source/core/style/StylePendingImage.h File third_party/WebKit/Source/core/style/StylePendingImage.h (right): https://codereview.chromium.org/1387113002/diff/20001/third_party/WebKit/Source/core/style/StylePendingImage.h#newcode44 third_party/WebKit/Source/core/style/StylePendingImage.h:44: static PassRefPtrWillBeRawPtr<StylePendingImage> create(const CSSValue& value) I don't think we ...
5 years, 2 months ago (2015-10-07 03:28:28 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-07 03:45:33 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 03:47:06 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4ee57fcf43daf1b7dea8dd6bf9f1858b1b60f24b
Cr-Commit-Position: refs/heads/master@{#352761}

Powered by Google App Engine
This is Rietveld 408576698