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

Unified Diff: third_party/WebKit/Source/core/html/forms/BaseButtonInputType.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/BaseButtonInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
index 99f7960b16e25a8fd892b5448e6d9d13077d7009..9915a00bfd83b934e1536ad24c2a4df800ae3553 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
@@ -62,7 +62,7 @@ void BaseButtonInputType::createShadowSubtree() {
}
void BaseButtonInputType::valueAttributeChanged() {
- toText(element().userAgentShadowRoot()->firstChild())
+ toTextOrDie(element().userAgentShadowRoot()->firstChild())
->setData(displayValue());
}

Powered by Google App Engine
This is Rietveld 408576698