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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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
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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 if (LayoutObject* layout_object = this->GetLayoutObject()) 172 if (LayoutObject* layout_object = this->GetLayoutObject())
173 layout_object 173 layout_object
174 ->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( 174 ->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
175 LayoutInvalidationReason::kAttributeChanged); 175 LayoutInvalidationReason::kAttributeChanged);
176 } 176 }
177 } else if (name == wrapAttr) { 177 } else if (name == wrapAttr) {
178 // The virtual/physical values were a Netscape extension of HTML 3.0, now 178 // The virtual/physical values were a Netscape extension of HTML 3.0, now
179 // deprecated. The soft/hard /off values are a recommendation for HTML 4 179 // deprecated. The soft/hard /off values are a recommendation for HTML 4
180 // extension by IE and NS 4. 180 // extension by IE and NS 4.
181 WrapMethod wrap; 181 WrapMethod wrap;
182 if (EqualIgnoringCase(value, "physical") || 182 if (DeprecatedEqualIgnoringCase(value, "physical") ||
183 EqualIgnoringCase(value, "hard") || EqualIgnoringCase(value, "on")) 183 DeprecatedEqualIgnoringCase(value, "hard") ||
184 DeprecatedEqualIgnoringCase(value, "on"))
184 wrap = kHardWrap; 185 wrap = kHardWrap;
185 else if (EqualIgnoringCase(value, "off")) 186 else if (DeprecatedEqualIgnoringCase(value, "off"))
186 wrap = kNoWrap; 187 wrap = kNoWrap;
187 else 188 else
188 wrap = kSoftWrap; 189 wrap = kSoftWrap;
189 if (wrap != wrap_) { 190 if (wrap != wrap_) {
190 wrap_ = wrap; 191 wrap_ = wrap;
191 if (LayoutObject* layout_object = this->GetLayoutObject()) 192 if (LayoutObject* layout_object = this->GetLayoutObject())
192 layout_object 193 layout_object
193 ->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( 194 ->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
194 LayoutInvalidationReason::kAttributeChanged); 195 LayoutInvalidationReason::kAttributeChanged);
195 } 196 }
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 const Element& source) { 632 const Element& source) {
632 const HTMLTextAreaElement& source_element = 633 const HTMLTextAreaElement& source_element =
633 static_cast<const HTMLTextAreaElement&>(source); 634 static_cast<const HTMLTextAreaElement&>(source);
634 SetValueCommon(source_element.value(), kDispatchNoEvent, 635 SetValueCommon(source_element.value(), kDispatchNoEvent,
635 TextControlSetValueSelection::kSetSelectionToEnd); 636 TextControlSetValueSelection::kSetSelectionToEnd);
636 is_dirty_ = source_element.is_dirty_; 637 is_dirty_ = source_element.is_dirty_;
637 TextControlElement::CopyNonAttributePropertiesFromElement(source); 638 TextControlElement::CopyNonAttributePropertiesFromElement(source);
638 } 639 }
639 640
640 } // namespace blink 641 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLUListElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698