| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 if (!event.isNull()) | 187 if (!event.isNull()) |
| 188 return m_private->dispatchEvent(event); | 188 return m_private->dispatchEvent(event); |
| 189 return false; | 189 return false; |
| 190 } | 190 } |
| 191 | 191 |
| 192 void WebNode::simulateClick() | 192 void WebNode::simulateClick() |
| 193 { | 193 { |
| 194 m_private->dispatchSimulatedClick(0); | 194 m_private->dispatchSimulatedClick(0); |
| 195 } | 195 } |
| 196 | 196 |
| 197 WebElementCollection WebNode::getElementsByTagName(const WebString& tag) const | |
| 198 { | |
| 199 return getElementsByHTMLTagName(tag); | |
| 200 } | |
| 201 | |
| 202 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st | 197 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st |
| 203 { | 198 { |
| 204 if (m_private->isContainerNode()) | 199 if (m_private->isContainerNode()) |
| 205 return WebElementCollection(toContainerNode(m_private.get())->getElement
sByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); | 200 return WebElementCollection(toContainerNode(m_private.get())->getElement
sByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); |
| 206 return WebElementCollection(); | 201 return WebElementCollection(); |
| 207 } | 202 } |
| 208 | 203 |
| 209 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst | 204 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) co
nst |
| 210 { | 205 { |
| 211 TrackExceptionState exceptionState; | 206 TrackExceptionState exceptionState; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 m_private = node; | 268 m_private = node; |
| 274 return *this; | 269 return *this; |
| 275 } | 270 } |
| 276 | 271 |
| 277 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 272 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
| 278 { | 273 { |
| 279 return m_private.get(); | 274 return m_private.get(); |
| 280 } | 275 } |
| 281 | 276 |
| 282 } // namespace blink | 277 } // namespace blink |
| OLD | NEW |