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

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

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames 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
Index: third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
index 1d9e8541a2f42b60d94b78d5b3392009bc5f9eff..7f30e4c7a13eb572174f91ff543531a2428811b7 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
@@ -71,9 +71,8 @@ static inline unsigned computeLengthForAPIValue(const String& text) {
return text.length() - crlfCount;
}
-HTMLTextAreaElement::HTMLTextAreaElement(Document& document,
- HTMLFormElement* form)
- : TextControlElement(textareaTag, document, form),
+HTMLTextAreaElement::HTMLTextAreaElement(Document& document)
+ : TextControlElement(textareaTag, document),
m_rows(defaultRows),
m_cols(defaultCols),
m_wrap(SoftWrap),
@@ -81,9 +80,8 @@ HTMLTextAreaElement::HTMLTextAreaElement(Document& document,
m_valueIsUpToDate(true),
m_isPlaceholderVisible(false) {}
-HTMLTextAreaElement* HTMLTextAreaElement::create(Document& document,
- HTMLFormElement* form) {
- HTMLTextAreaElement* textArea = new HTMLTextAreaElement(document, form);
+HTMLTextAreaElement* HTMLTextAreaElement::create(Document& document) {
+ HTMLTextAreaElement* textArea = new HTMLTextAreaElement(document);
textArea->ensureUserAgentShadowRoot();
return textArea;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTextAreaElement.h ('k') | third_party/WebKit/Source/core/html/TextControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698