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

Unified Diff: Source/core/html/HTMLFormControlElement.h

Issue 67473002: Have ElementTraversal / NodeTraversal's next() methods take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 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
« no previous file with comments | « Source/core/html/HTMLFieldSetElement.cpp ('k') | Source/core/html/HTMLFormElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlElement.h
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
index e5d60479e5cfc15bc380ea845ed92ab6050b1573..a241b8be561691ee48f823a0b8b822a27ad5e2e3 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -203,6 +203,12 @@ inline const HTMLFormControlElement* toHTMLFormControlElement(const FormAssociat
return static_cast<const HTMLFormControlElement*>(control);
}
+inline const HTMLFormControlElement& toHTMLFormControlElement(const FormAssociatedElement& control)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(control.isFormControlElement());
+ return static_cast<const HTMLFormControlElement&>(control);
+}
+
} // namespace
#endif
« no previous file with comments | « Source/core/html/HTMLFieldSetElement.cpp ('k') | Source/core/html/HTMLFormElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698