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

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: Add proper cast 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 | « no previous file | 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..56143293e8a05134bb79272a71d3dfc3bdad9afb 100644
--- a/Source/core/rendering/RenderSlider.cpp
+++ b/Source/core/rendering/RenderSlider.cpp
@@ -99,7 +99,7 @@ void RenderSlider::layout()
// http://webkit.org/b/62535
RenderBox* thumbBox = sliderThumbElement()->renderBox();
if (thumbBox && thumbBox->isSliderThumb())
- static_cast<RenderSliderThumb*>(thumbBox)->updateAppearance(style());
+ toRenderSliderThumb(thumbBox)->updateAppearance(style());
RenderFlexibleBox::layout();
}
« no previous file with comments | « no previous file | Source/core/rendering/RenderSliderThumb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698