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

Unified Diff: third_party/WebKit/Source/core/html/forms/RangeInputType.cpp

Issue 2534873004: Avoid unchecked casts in UA shadow DOM. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
index 5a46a2257b62582efb9604dbf2c305573bf72364..926f555cbfabde126fa139bac1ead9a12431de14 100644
--- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
@@ -322,8 +322,9 @@ bool RangeInputType::shouldRespectListAttribute() {
}
inline SliderThumbElement* RangeInputType::sliderThumbElement() const {
- return toSliderThumbElement(element().userAgentShadowRoot()->getElementById(
- ShadowElementNames::sliderThumb()));
+ return toSliderThumbElementOrDie(
+ element().userAgentShadowRoot()->getElementById(
+ ShadowElementNames::sliderThumb()));
}
inline Element* RangeInputType::sliderTrackElement() const {

Powered by Google App Engine
This is Rietveld 408576698