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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLButtonElement.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, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // not Opera. See http://bugs.webkit.org/show_bug.cgi?id=12071 81 // not Opera. See http://bugs.webkit.org/show_bug.cgi?id=12071
82 return false; 82 return false;
83 } 83 }
84 84
85 return HTMLFormControlElement::IsPresentationAttribute(name); 85 return HTMLFormControlElement::IsPresentationAttribute(name);
86 } 86 }
87 87
88 void HTMLButtonElement::ParseAttribute( 88 void HTMLButtonElement::ParseAttribute(
89 const AttributeModificationParams& params) { 89 const AttributeModificationParams& params) {
90 if (params.name == typeAttr) { 90 if (params.name == typeAttr) {
91 if (EqualIgnoringCase(params.new_value, "reset")) 91 if (DeprecatedEqualIgnoringCase(params.new_value, "reset"))
92 type_ = RESET; 92 type_ = RESET;
93 else if (EqualIgnoringCase(params.new_value, "button")) 93 else if (DeprecatedEqualIgnoringCase(params.new_value, "button"))
94 type_ = BUTTON; 94 type_ = BUTTON;
95 else 95 else
96 type_ = SUBMIT; 96 type_ = SUBMIT;
97 SetNeedsWillValidateCheck(); 97 SetNeedsWillValidateCheck();
98 if (formOwner() && isConnected()) 98 if (formOwner() && isConnected())
99 formOwner()->InvalidateDefaultButtonStyle(); 99 formOwner()->InvalidateDefaultButtonStyle();
100 } else { 100 } else {
101 if (params.name == formactionAttr) 101 if (params.name == formactionAttr)
102 LogUpdateAttributeIfIsolatedWorldAndInDocument("button", params); 102 LogUpdateAttributeIfIsolatedWorldAndInDocument("button", params);
103 HTMLFormControlElement::ParseAttribute(params); 103 HTMLFormControlElement::ParseAttribute(params);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 Node::InsertionNotificationRequest HTMLButtonElement::InsertedInto( 209 Node::InsertionNotificationRequest HTMLButtonElement::InsertedInto(
210 ContainerNode* insertion_point) { 210 ContainerNode* insertion_point) {
211 InsertionNotificationRequest request = 211 InsertionNotificationRequest request =
212 HTMLFormControlElement::InsertedInto(insertion_point); 212 HTMLFormControlElement::InsertedInto(insertion_point);
213 LogAddElementIfIsolatedWorldAndInDocument("button", typeAttr, formmethodAttr, 213 LogAddElementIfIsolatedWorldAndInDocument("button", typeAttr, formmethodAttr,
214 formactionAttr); 214 formactionAttr);
215 return request; 215 return request;
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLBRElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDivElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698