| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |