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

Unified Diff: Source/core/rendering/RenderSlider.cpp

Issue 611983006: Add a safe cast for RenderSliderThumb (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderSliderThumb.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderSlider.cpp
diff --git a/Source/core/rendering/RenderSlider.cpp b/Source/core/rendering/RenderSlider.cpp
index 1ed4a116fd9cc9f2f7a948d84d147d11f2f9c696..80fb4fe49675316991c97397e84ce7358fb95fa1 100644
--- a/Source/core/rendering/RenderSlider.cpp
+++ b/Source/core/rendering/RenderSlider.cpp
@@ -98,7 +98,7 @@ void RenderSlider::layout()
// FIXME: Find a way to cascade appearance.
// http://webkit.org/b/62535
RenderBox* thumbBox = sliderThumbElement()->renderBox();
- if (thumbBox && thumbBox->isSliderThumb())
+ if (thumbBox)
static_cast<RenderSliderThumb*>(thumbBox)->updateAppearance(style());
Julien - ping for review 2014/10/03 01:08:23 Unguarded static_cast makes me terribly uncomforta
RenderFlexibleBox::layout();
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderSliderThumb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698