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

Issue 22631003: Return raw CSSValue pointer if not CSSImageValue (Closed)

Created:
7 years, 4 months ago by abinader
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Visibility:
Public.

Description

Return raw CSSValue pointer instead of cast to CSSImageValue Avoid an assertion triggering detected when CSSValue pointer is either void or not cast to CSSImageValue. As far as I've seen, this data() function is used to compare objects in RenderStyle, so it makes sense to return a raw pointer. The assertion avoids successful run of the following layout tests: fast/hidpi/image-set-out-of-order.html fast/hidpi/image-set-without-specified-width.html virtual/gpu/fast/hidpi/image-set-out-of-order.html virtual/gpu/fast/hidpi/image-set-without-specified-width.html BUG=269627 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155874

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M Source/core/rendering/style/StylePendingImage.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
abinader
7 years, 4 months ago (2013-08-08 00:53:27 UTC) #1
Julien - ping for review
What is this change trying to achieve? Avoid an ASSERT triggering? (in which case you ...
7 years, 4 months ago (2013-08-09 16:02:49 UTC) #2
abinader
On 2013/08/09 16:02:49, Julien Chaffraix wrote: > What is this change trying to achieve? Avoid ...
7 years, 4 months ago (2013-08-09 19:28:03 UTC) #3
Julien - ping for review
It's weird that WrappedImagePtr is void* but until this is changed, there is no need ...
7 years, 4 months ago (2013-08-09 19:48:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruno.d@partner.samsung.com/22631003/10001
7 years, 4 months ago (2013-08-09 19:53:19 UTC) #5
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 21:39:45 UTC) #6
Message was sent while issue was closed.
Change committed as 155874

Powered by Google App Engine
This is Rietveld 408576698