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

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

Issue 26622007: Move isAutofilled and setAutofilled from HTMLInputElement to HTMLFormControlElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update messaging in test. Created 7 years, 2 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/HTMLTextAreaElement.h ('k') | Source/core/testing/Internals.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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu e(); 217 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu e();
218 encoding.appendData(name(), text); 218 encoding.appendData(name(), text);
219 219
220 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr); 220 const AtomicString& dirnameAttrValue = fastGetAttribute(dirnameAttr);
221 if (!dirnameAttrValue.isNull()) 221 if (!dirnameAttrValue.isNull())
222 encoding.appendData(dirnameAttrValue, directionForFormData()); 222 encoding.appendData(dirnameAttrValue, directionForFormData());
223 return true; 223 return true;
224 } 224 }
225 225
226 void HTMLTextAreaElement::reset() 226 void HTMLTextAreaElement::resetImpl()
227 { 227 {
228 setNonDirtyValue(defaultValue()); 228 setNonDirtyValue(defaultValue());
229 } 229 }
230 230
231 bool HTMLTextAreaElement::hasCustomFocusLogic() const 231 bool HTMLTextAreaElement::hasCustomFocusLogic() const
232 { 232 {
233 return true; 233 return true;
234 } 234 }
235 235
236 bool HTMLTextAreaElement::isKeyboardFocusable() const 236 bool HTMLTextAreaElement::isKeyboardFocusable() const
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); 538 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document());
539 placeholder = newElement.get(); 539 placeholder = newElement.get();
540 placeholder->setPart(AtomicString("-webkit-input-placeholder", AtomicStr ing::ConstructFromLiteral)); 540 placeholder->setPart(AtomicString("-webkit-input-placeholder", AtomicStr ing::ConstructFromLiteral));
541 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); 541 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder());
542 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex tSibling()); 542 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex tSibling());
543 } 543 }
544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); 544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION);
545 } 545 }
546 546
547 } 547 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698