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

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

Issue 53683007: Have SelectorQuery API take rootNode by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months 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/dom/StyleSheetScopingNodeList.h ('k') | Source/core/html/HTMLOptGroupElement.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 973bb5abdfd1a05892f49d4da20cf1b4ebba9dac..e5d60479e5cfc15bc380ea845ed92ab6050b1573 100644
--- a/Source/core/html/HTMLFormControlElement.h
+++ b/Source/core/html/HTMLFormControlElement.h
@@ -191,6 +191,12 @@ inline HTMLFormControlElement* toHTMLFormControlElement(FormAssociatedElement* c
return static_cast<HTMLFormControlElement*>(control);
}
+inline HTMLFormControlElement& toHTMLFormControlElement(FormAssociatedElement& control)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(control.isFormControlElement());
+ return static_cast<HTMLFormControlElement&>(control);
+}
+
inline const HTMLFormControlElement* toHTMLFormControlElement(const FormAssociatedElement* control)
{
ASSERT_WITH_SECURITY_IMPLICATION(!control || control->isFormControlElement());
« no previous file with comments | « Source/core/dom/StyleSheetScopingNodeList.h ('k') | Source/core/html/HTMLOptGroupElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698