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

Issue 1472253003: Avoid RefPtr churn (Closed)

Created:
5 years ago by davve
Modified:
5 years ago
Reviewers:
f(malita), fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid RefPtr churn This is a speculative fix for 560890, but seems like it might be a good idea anyway. We have a reference to the thing having a reference. No need to add another reference on top of that. In the process drop a null check in StyleFetchedImageSet::image(), ImageResource::image always returns an Image object. If nothing else the Image::nullImage(). BUG=560890 Committed: https://crrev.com/f0753f059b3f14463deb64144dd0034352c725d5 Cr-Commit-Position: refs/heads/master@{#361640}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -19 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutImageResource.cpp View 1 chunk +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472253003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472253003/1
5 years ago (2015-11-25 11:26:24 UTC) #2
davve
Yes, it's a bit unlikely this is visible on any real site but the regression ...
5 years ago (2015-11-25 12:35:23 UTC) #4
fs
lgtm
5 years ago (2015-11-25 12:46:39 UTC) #7
f(malita)
lgtm
5 years ago (2015-11-25 13:11:53 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-25 13:20:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472253003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472253003/1
5 years ago (2015-11-25 13:27:08 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-25 13:35:22 UTC) #13
commit-bot: I haz the power
5 years ago (2015-11-25 13:36:33 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f0753f059b3f14463deb64144dd0034352c725d5
Cr-Commit-Position: refs/heads/master@{#361640}

Powered by Google App Engine
This is Rietveld 408576698