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

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

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. Created 7 years, 4 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/HTMLProgressElement.cpp ('k') | Source/core/html/ImageDocument.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 static inline unsigned upperBoundForLengthForSubmission(const String& text, unsi gned numberOfLineBreaks) 85 static inline unsigned upperBoundForLengthForSubmission(const String& text, unsi gned numberOfLineBreaks)
86 { 86 {
87 return text.length() + numberOfLineBreaks; 87 return text.length() + numberOfLineBreaks;
88 } 88 }
89 89
90 HTMLTextAreaElement::HTMLTextAreaElement(const QualifiedName& tagName, const Han dle<Document>& document, const Handle<HTMLFormElement>& form) 90 HTMLTextAreaElement::HTMLTextAreaElement(const QualifiedName& tagName, const Han dle<Document>& document, const Handle<HTMLFormElement>& form)
91 : HTMLTextFormControlElement(tagName, document, form) 91 : HTMLTextFormControlElement(tagName, document, form)
92 , m_rows(defaultRows) 92 , m_rows(defaultRows)
93 , m_cols(defaultCols) 93 , m_cols(defaultCols)
94 , m_wrap(SoftWrap) 94 , m_wrap(SoftWrap)
95 , m_placeholder(0)
96 , m_isDirty(false) 95 , m_isDirty(false)
97 , m_wasModifiedByUser(false) 96 , m_wasModifiedByUser(false)
98 { 97 {
99 ASSERT(hasTagName(textareaTag)); 98 ASSERT(hasTagName(textareaTag));
100 setFormControlValueMatchesRenderer(true); 99 setFormControlValueMatchesRenderer(true);
101 ScriptWrappable::init(this); 100 ScriptWrappable::init(this);
102 } 101 }
103 102
104 Result<HTMLTextAreaElement> HTMLTextAreaElement::create(const QualifiedName& tag Name, const Handle<Document>& document, const Handle<HTMLFormElement>& form) 103 Result<HTMLTextAreaElement> HTMLTextAreaElement::create(const QualifiedName& tag Name, const Handle<Document>& document, const Handle<HTMLFormElement>& form)
105 { 104 {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 fixPlaceholderRenderer(m_placeholder, innerTextElement()); 563 fixPlaceholderRenderer(m_placeholder, innerTextElement());
565 } 564 }
566 565
567 void HTMLTextAreaElement::accept(Visitor* visitor) const 566 void HTMLTextAreaElement::accept(Visitor* visitor) const
568 { 567 {
569 visitor->visit(m_placeholder); 568 visitor->visit(m_placeholder);
570 HTMLTextFormControlElement::accept(visitor); 569 HTMLTextFormControlElement::accept(visitor);
571 } 570 }
572 571
573 } 572 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLProgressElement.cpp ('k') | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698