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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLTemplateElement.cpp ('k') | Source/core/html/HTMLTitleElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 HTMLTextAreaElement::HTMLTextAreaElement(Document& document, HTMLFormElement* fo rm) 80 HTMLTextAreaElement::HTMLTextAreaElement(Document& document, HTMLFormElement* fo rm)
81 : HTMLTextFormControlElement(textareaTag, document, form) 81 : HTMLTextFormControlElement(textareaTag, document, form)
82 , m_rows(defaultRows) 82 , m_rows(defaultRows)
83 , m_cols(defaultCols) 83 , m_cols(defaultCols)
84 , m_wrap(SoftWrap) 84 , m_wrap(SoftWrap)
85 , m_isDirty(false) 85 , m_isDirty(false)
86 , m_valueIsUpToDate(true) 86 , m_valueIsUpToDate(true)
87 { 87 {
88 ScriptWrappable::init(this);
89 } 88 }
90 89
91 PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document & document, HTMLFormElement* form) 90 PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document & document, HTMLFormElement* form)
92 { 91 {
93 RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeNoop(new HT MLTextAreaElement(document, form)); 92 RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeNoop(new HT MLTextAreaElement(document, form));
94 textArea->ensureUserAgentShadowRoot(); 93 textArea->ensureUserAgentShadowRoot();
95 return textArea.release(); 94 return textArea.release();
96 } 95 }
97 96
98 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) 97 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root)
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 { 564 {
566 return true; 565 return true;
567 } 566 }
568 567
569 bool HTMLTextAreaElement::supportsAutofocus() const 568 bool HTMLTextAreaElement::supportsAutofocus() const
570 { 569 {
571 return true; 570 return true;
572 } 571 }
573 572
574 } 573 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTemplateElement.cpp ('k') | Source/core/html/HTMLTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698