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

Unified Diff: third_party/WebKit/Source/core/html/forms/TextFieldInputType.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/TextFieldInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
index 2892b220dba91f3b8ec6492027ba7e6eabbedfc3..083729d52000afaaf27fbbb6e4cfed330c50d442 100644
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
@@ -125,8 +125,9 @@ InputType::ValueMode TextFieldInputType::valueMode() const {
}
SpinButtonElement* TextFieldInputType::spinButtonElement() const {
- return toSpinButtonElement(element().userAgentShadowRoot()->getElementById(
- ShadowElementNames::spinButton()));
+ return toSpinButtonElementOrDie(
+ element().userAgentShadowRoot()->getElementById(
+ ShadowElementNames::spinButton()));
}
bool TextFieldInputType::shouldShowFocusRingOnMouseFocus() const {

Powered by Google App Engine
This is Rietveld 408576698