| 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());
|
|
|