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

Unified Diff: third_party/WebKit/Source/core/html/HTMLKeygenElement.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/HTMLKeygenElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp
index 9a9d29e8f04a146a85557ff0766b89b7cbb793b7..a57db6ad60b7c2a9467403321699e0e5e370caf5 100644
--- a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp
@@ -127,7 +127,7 @@ void HTMLKeygenElement::resetImpl() {
HTMLSelectElement* HTMLKeygenElement::shadowSelect() const {
ShadowRoot* root = userAgentShadowRoot();
- return root ? toHTMLSelectElement(root->firstChild()) : 0;
+ return root ? toHTMLSelectElementOrDie(root->firstChild()) : nullptr;
}
bool HTMLKeygenElement::isInteractiveContent() const {

Powered by Google App Engine
This is Rietveld 408576698