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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.h

Issue 2000423006: Drop LABEL element from form-associated elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/Source/core/html/HTMLObjectElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.h b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
index bcac853ac535261c6257fa2d664870acc4e23597..e1eedf6dbec591dba2ad778aa2781245d8c4758e 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
@@ -115,7 +115,6 @@ template<typename T> inline const T* toElement(const FormAssociatedElement*);
template<> inline const HTMLObjectElement* toElement<HTMLObjectElement>(const FormAssociatedElement* element)
{
ASSERT_WITH_SECURITY_IMPLICATION(!element || !element->isFormControlElement());
- ASSERT_WITH_SECURITY_IMPLICATION(!element || !element->isLabelElement());
const HTMLObjectElement* objectElement = static_cast<const HTMLObjectElement*>(element);
// We need to assert after the cast because FormAssociatedElement doesn't
// have hasTagName.
@@ -126,7 +125,6 @@ template<> inline const HTMLObjectElement* toElement<HTMLObjectElement>(const Fo
template<> inline const HTMLObjectElement& toElement<HTMLObjectElement>(const FormAssociatedElement& element)
{
ASSERT_WITH_SECURITY_IMPLICATION(!element.isFormControlElement());
- ASSERT_WITH_SECURITY_IMPLICATION(!element.isLabelElement());
const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement&>(element);
// We need to assert after the cast because FormAssociatedElement doesn't
// have hasTagName.
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLabelElement.idl ('k') | third_party/WebKit/Source/core/html/HTMLTagNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698