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 201 matching lines...) Loading... |
212 } | 212 } |
213 | 213 |
214 bool WebNode::isDocumentTypeNode() const | 214 bool WebNode::isDocumentTypeNode() const |
215 { | 215 { |
216 return m_private->getNodeType() == Node::DOCUMENT_TYPE_NODE; | 216 return m_private->getNodeType() == Node::DOCUMENT_TYPE_NODE; |
217 } | 217 } |
218 | 218 |
219 void WebNode::dispatchEvent(const WebDOMEvent& event) | 219 void WebNode::dispatchEvent(const WebDOMEvent& event) |
220 { | 220 { |
221 if (!event.isNull()) | 221 if (!event.isNull()) |
222 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDisp
atchEventTask(m_private, event))); | 222 m_private->getExecutionContext()->postSuspendableTask(adoptPtr(new NodeD
ispatchEventTask(m_private, event))); |
223 } | 223 } |
224 | 224 |
225 void WebNode::simulateClick() | 225 void WebNode::simulateClick() |
226 { | 226 { |
227 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDispatch
SimulatedClickTask(m_private))); | 227 m_private->getExecutionContext()->postSuspendableTask(adoptPtr(new NodeDispa
tchSimulatedClickTask(m_private))); |
228 } | 228 } |
229 | 229 |
230 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st | 230 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st |
231 { | 231 { |
232 if (m_private->isContainerNode()) | 232 if (m_private->isContainerNode()) |
233 return WebElementCollection(toContainerNode(m_private.get())->getElement
sByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); | 233 return WebElementCollection(toContainerNode(m_private.get())->getElement
sByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); |
234 return WebElementCollection(); | 234 return WebElementCollection(); |
235 } | 235 } |
236 | 236 |
237 WebElement WebNode::querySelector(const WebString& selector, WebExceptionCode& e
c) const | 237 WebElement WebNode::querySelector(const WebString& selector, WebExceptionCode& e
c) const |
(...skipping 77 matching lines...) Loading... |
315 m_private = node; | 315 m_private = node; |
316 return *this; | 316 return *this; |
317 } | 317 } |
318 | 318 |
319 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 319 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
320 { | 320 { |
321 return m_private.get(); | 321 return m_private.get(); |
322 } | 322 } |
323 | 323 |
324 } // namespace blink | 324 } // namespace blink |
OLD | NEW |