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