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

Issue 611983006: Add a safe cast for RenderSliderThumb (Closed)

Created:
6 years, 2 months ago by rwlbuis
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add a safe cast for RenderSliderThumb Rather than a dangerous static_cast use the DEFINE_RENDER_OBJECT_TYPE_CASTS machinery. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183223

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add proper cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M Source/core/rendering/RenderSlider.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderSliderThumb.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
rwlbuis
PTAL
6 years, 2 months ago (2014-10-02 22:00:54 UTC) #2
Julien - ping for review
https://codereview.chromium.org/611983006/diff/1/Source/core/rendering/RenderSlider.cpp File Source/core/rendering/RenderSlider.cpp (right): https://codereview.chromium.org/611983006/diff/1/Source/core/rendering/RenderSlider.cpp#newcode102 Source/core/rendering/RenderSlider.cpp:102: static_cast<RenderSliderThumb*>(thumbBox)->updateAppearance(style()); Unguarded static_cast makes me terribly uncomfortable. By removing ...
6 years, 2 months ago (2014-10-03 01:08:23 UTC) #3
rwlbuis
@jchaffraix PTAL, I added the safe cast and the virtual method is back...
6 years, 2 months ago (2014-10-03 20:15:47 UTC) #4
Julien - ping for review
lgtm
6 years, 2 months ago (2014-10-03 22:53:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/611983006/20001
6 years, 2 months ago (2014-10-03 22:54:53 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-04 01:08:37 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 183223

Powered by Google App Engine
This is Rietveld 408576698