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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/HTMLTableColElement.cpp ('k') | Source/core/html/forms/NumberInputType.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic String& value) 156 void HTMLTextAreaElement::parseAttribute(const QualifiedName& name, const Atomic String& value)
157 { 157 {
158 if (name == rowsAttr) { 158 if (name == rowsAttr) {
159 int rows = value.toInt(); 159 int rows = value.toInt();
160 if (rows <= 0) 160 if (rows <= 0)
161 rows = defaultRows; 161 rows = defaultRows;
162 if (m_rows != rows) { 162 if (m_rows != rows) {
163 m_rows = rows; 163 m_rows = rows;
164 if (renderer()) 164 if (renderer())
165 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); 165 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid ation();
166 } 166 }
167 } else if (name == colsAttr) { 167 } else if (name == colsAttr) {
168 int cols = value.toInt(); 168 int cols = value.toInt();
169 if (cols <= 0) 169 if (cols <= 0)
170 cols = defaultCols; 170 cols = defaultCols;
171 if (m_cols != cols) { 171 if (m_cols != cols) {
172 m_cols = cols; 172 m_cols = cols;
173 if (renderer()) 173 if (renderer())
174 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); 174 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid ation();
175 } 175 }
176 } else if (name == wrapAttr) { 176 } else if (name == wrapAttr) {
177 // The virtual/physical values were a Netscape extension of HTML 3.0, no w deprecated. 177 // The virtual/physical values were a Netscape extension of HTML 3.0, no w deprecated.
178 // The soft/hard /off values are a recommendation for HTML 4 extension b y IE and NS 4. 178 // The soft/hard /off values are a recommendation for HTML 4 extension b y IE and NS 4.
179 WrapMethod wrap; 179 WrapMethod wrap;
180 if (equalIgnoringCase(value, "physical") || equalIgnoringCase(value, "ha rd") || equalIgnoringCase(value, "on")) 180 if (equalIgnoringCase(value, "physical") || equalIgnoringCase(value, "ha rd") || equalIgnoringCase(value, "on"))
181 wrap = HardWrap; 181 wrap = HardWrap;
182 else if (equalIgnoringCase(value, "off")) 182 else if (equalIgnoringCase(value, "off"))
183 wrap = NoWrap; 183 wrap = NoWrap;
184 else 184 else
185 wrap = SoftWrap; 185 wrap = SoftWrap;
186 if (wrap != m_wrap) { 186 if (wrap != m_wrap) {
187 m_wrap = wrap; 187 m_wrap = wrap;
188 if (renderer()) 188 if (renderer())
189 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); 189 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid ation();
190 } 190 }
191 } else if (name == accesskeyAttr) { 191 } else if (name == accesskeyAttr) {
192 // ignore for the moment 192 // ignore for the moment
193 } else if (name == maxlengthAttr) 193 } else if (name == maxlengthAttr)
194 setNeedsValidityCheck(); 194 setNeedsValidityCheck();
195 else 195 else
196 HTMLTextFormControlElement::parseAttribute(name, value); 196 HTMLTextFormControlElement::parseAttribute(name, value);
197 } 197 }
198 198
199 RenderObject* HTMLTextAreaElement::createRenderer(RenderStyle*) 199 RenderObject* HTMLTextAreaElement::createRenderer(RenderStyle*)
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 { 561 {
562 return true; 562 return true;
563 } 563 }
564 564
565 bool HTMLTextAreaElement::supportsAutofocus() const 565 bool HTMLTextAreaElement::supportsAutofocus() const
566 { 566 {
567 return true; 567 return true;
568 } 568 }
569 569
570 } 570 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableColElement.cpp ('k') | Source/core/html/forms/NumberInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698