| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool WebElement::isTextFormControlElement() const | 55 bool WebElement::isTextFormControlElement() const |
| 56 { | 56 { |
| 57 return constUnwrap<Element>()->isTextFormControl(); | 57 return constUnwrap<Element>()->isTextFormControl(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 WebString WebElement::tagName() const | 60 WebString WebElement::tagName() const |
| 61 { | 61 { |
| 62 return constUnwrap<Element>()->tagName(); | 62 return constUnwrap<Element>()->tagName(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool WebElement::hasTagName(const WebString& tagName) const |
| 66 { |
| 67 return equalIgnoringCase(constUnwrap<Element>()->tagName(), |
| 68 tagName.operator String()); |
| 69 } |
| 70 |
| 65 bool WebElement::hasHTMLTagName(const WebString& tagName) const | 71 bool WebElement::hasHTMLTagName(const WebString& tagName) const |
| 66 { | 72 { |
| 67 // How to create class nodeName localName | 73 // How to create class nodeName localName |
| 68 // createElement('input') HTMLInputElement INPUT input | 74 // createElement('input') HTMLInputElement INPUT input |
| 69 // createElement('INPUT') HTMLInputElement INPUT input | 75 // createElement('INPUT') HTMLInputElement INPUT input |
| 70 // createElementNS(xhtmlNS, 'input') HTMLInputElement INPUT input | 76 // createElementNS(xhtmlNS, 'input') HTMLInputElement INPUT input |
| 71 // createElementNS(xhtmlNS, 'INPUT') HTMLUnknownElement INPUT INPUT | 77 // createElementNS(xhtmlNS, 'INPUT') HTMLUnknownElement INPUT INPUT |
| 72 const Element* element = constUnwrap<Element>(); | 78 const Element* element = constUnwrap<Element>(); |
| 73 return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && element->l
ocalName() == String(tagName).lower(); | 79 return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && element->l
ocalName() == String(tagName).lower(); |
| 74 } | 80 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 m_private = elem; | 182 m_private = elem; |
| 177 return *this; | 183 return *this; |
| 178 } | 184 } |
| 179 | 185 |
| 180 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const | 186 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const |
| 181 { | 187 { |
| 182 return toElement(m_private.get()); | 188 return toElement(m_private.get()); |
| 183 } | 189 } |
| 184 | 190 |
| 185 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |