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

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

Issue 2557583003: Move Form Association Code to FormAssociated::associateWith (Closed)
Patch Set: Check for m_inputType before accessing it Created 4 years 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 | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index abd237c1423dd5be9bbb61c4b8347fce2935ab85..c292afa284b3f7671ccebcc12a6b867ed59b066a 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -57,7 +57,6 @@ inline HTMLObjectElement::HTMLObjectElement(Document& document,
createdByParser,
ShouldNotPreferPlugInsForImages),
m_useFallbackContent(false) {
- associateByParser(form);
}
inline HTMLObjectElement::~HTMLObjectElement() {}
@@ -465,6 +464,8 @@ bool HTMLObjectElement::willUseFallbackContentAtLayout() const {
return !hasValidClassId() && hasFallbackContent();
}
-void HTMLObjectElement::associateWith(HTMLFormElement*){};
+void HTMLObjectElement::associateWith(HTMLFormElement* form) {
+ associateByParser(form);
+};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698