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

Issue 1386413002: Added TODOs to StyleImage::create() to take PassRefPtrWillBeRawPtr (Closed)

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

Description

Changed StyleImage::create() methods to take PassRefPtrWillBeRawPtrs Changed the create() methods in StylePendingImage and StyleGeneratedImage to take PassRefPtrWillBeRawPtrs instead of pointers. This requires some temporary const_cast<>s at callsites. Also added TODOs to these methods to take const template arguments and remove the const_casts once these are supported by RefPtrs. BUG=526586

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changed create methods to take refptrs #

Patch Set 3 : Added comments to const_cast calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -15 lines) Patch
M third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp View 1 2 4 chunks +16 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResourceLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImageGridTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StylePendingImage.h View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
sashab
5 years, 2 months ago (2015-10-07 04:33:14 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/1386413002/diff/1/third_party/WebKit/Source/core/style/StyleGeneratedImage.h File third_party/WebKit/Source/core/style/StyleGeneratedImage.h (right): https://codereview.chromium.org/1386413002/diff/1/third_party/WebKit/Source/core/style/StyleGeneratedImage.h#newcode37 third_party/WebKit/Source/core/style/StyleGeneratedImage.h:37: // TODO(sashab): Make this take a PassRefPtrWillBeRawPtr<const CSSImageGeneratorValue>. In ...
5 years, 2 months ago (2015-10-07 04:38:05 UTC) #3
sashab
Is this what you meant? Not sure if this is a good idea... Introduces a ...
5 years, 2 months ago (2015-10-07 04:55:20 UTC) #4
alancutter (OOO until 2018)
On 2015/10/07 at 04:55:20, sashab wrote: > Is this what you meant? Not sure if ...
5 years, 2 months ago (2015-10-07 05:09:29 UTC) #5
sashab
Ok, I think I see what you mean. PTAL.
5 years, 2 months ago (2015-10-07 06:27:13 UTC) #6
alancutter (OOO until 2018)
lgtm
5 years, 2 months ago (2015-10-07 06:35:55 UTC) #7
sashab
timloh thoughts welcome... not sure how you feel about this patch.
5 years, 2 months ago (2015-10-08 04:59:02 UTC) #9
sashab
5 years, 1 month ago (2015-11-03 00:09:02 UTC) #10
Ping timloh... been like 4 weeks

Powered by Google App Engine
This is Rietveld 408576698