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

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

Issue 59113007: Utilize PassRefPtr and C++ refs in more places in ShadowRoot code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make win build happier Created 7 years, 1 month 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
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ScriptWrappable::init(this); 93 ScriptWrappable::init(this);
94 } 94 }
95 95
96 PassRefPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form) 96 PassRefPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form)
97 { 97 {
98 RefPtr<HTMLTextAreaElement> textArea = adoptRef(new HTMLTextAreaElement(tagN ame, document, form)); 98 RefPtr<HTMLTextAreaElement> textArea = adoptRef(new HTMLTextAreaElement(tagN ame, document, form));
99 textArea->ensureUserAgentShadowRoot(); 99 textArea->ensureUserAgentShadowRoot();
100 return textArea.release(); 100 return textArea.release();
101 } 101 }
102 102
103 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot* root) 103 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root)
104 { 104 {
105 root->appendChild(TextControlInnerTextElement::create(document())); 105 root.appendChild(TextControlInnerTextElement::create(document()));
106 } 106 }
107 107
108 const AtomicString& HTMLTextAreaElement::formControlType() const 108 const AtomicString& HTMLTextAreaElement::formControlType() const
109 { 109 {
110 DEFINE_STATIC_LOCAL(const AtomicString, textarea, ("textarea", AtomicString: :ConstructFromLiteral)); 110 DEFINE_STATIC_LOCAL(const AtomicString, textarea, ("textarea", AtomicString: :ConstructFromLiteral));
111 return textarea; 111 return textarea;
112 } 112 }
113 113
114 FormControlState HTMLTextAreaElement::saveFormControlState() const 114 FormControlState HTMLTextAreaElement::saveFormControlState() const
115 { 115 {
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 535 }
536 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); 536 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION);
537 } 537 }
538 538
539 bool HTMLTextAreaElement::isInteractiveContent() const 539 bool HTMLTextAreaElement::isInteractiveContent() const
540 { 540 {
541 return true; 541 return true;
542 } 542 }
543 543
544 } 544 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698