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

Side by Side Diff: third_party/WebKit/Source/web/WebElement.cpp

Issue 2236573003: Update equalIgnoreCase to equalIgnoreASCIICase in Source/web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 element->document().updateStyleAndLayoutTree(); 65 element->document().updateStyleAndLayoutTree();
66 if (hasEditableStyle(*element)) 66 if (hasEditableStyle(*element))
67 return true; 67 return true;
68 68
69 if (element->isTextFormControl()) { 69 if (element->isTextFormControl()) {
70 const HTMLTextFormControlElement* input = toHTMLTextFormControlElement(e lement); 70 const HTMLTextFormControlElement* input = toHTMLTextFormControlElement(e lement);
71 if (!input->isDisabledOrReadOnly()) 71 if (!input->isDisabledOrReadOnly())
72 return true; 72 return true;
73 } 73 }
74 74
75 return equalIgnoringCase(element->getAttribute(roleAttr), "textbox"); 75 return equalIgnoringASCIICase(element->getAttribute(roleAttr), "textbox");
76 } 76 }
77 77
78 WebString WebElement::tagName() const 78 WebString WebElement::tagName() const
79 { 79 {
80 return constUnwrap<Element>()->tagName(); 80 return constUnwrap<Element>()->tagName();
81 } 81 }
82 82
83 bool WebElement::hasHTMLTagName(const WebString& tagName) const 83 bool WebElement::hasHTMLTagName(const WebString& tagName) const
84 { 84 {
85 // How to create class nodeName localName 85 // How to create class nodeName localName
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 m_private = elem; 165 m_private = elem;
166 return *this; 166 return *this;
167 } 167 }
168 168
169 WebElement::operator Element*() const 169 WebElement::operator Element*() const
170 { 170 {
171 return toElement(m_private.get()); 171 return toElement(m_private.get());
172 } 172 }
173 173
174 } // namespace blink 174 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698