| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 bool WebNode::isDocumentNode() const { | 162 bool WebNode::isDocumentNode() const { |
| 163 return m_private->isDocumentNode(); | 163 return m_private->isDocumentNode(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 bool WebNode::isDocumentTypeNode() const { | 166 bool WebNode::isDocumentTypeNode() const { |
| 167 return m_private->getNodeType() == Node::kDocumentTypeNode; | 167 return m_private->getNodeType() == Node::kDocumentTypeNode; |
| 168 } | 168 } |
| 169 | 169 |
| 170 void WebNode::simulateClick() { | 170 void WebNode::simulateClick() { |
| 171 m_private->getExecutionContext()->postSuspendableTask( | 171 m_private->getExecutionContext()->postSuspendableTask( |
| 172 wrapUnique(new NodeDispatchSimulatedClickTask(m_private))); | 172 makeUnique<NodeDispatchSimulatedClickTask>(m_private)); |
| 173 } | 173 } |
| 174 | 174 |
| 175 WebElementCollection WebNode::getElementsByHTMLTagName( | 175 WebElementCollection WebNode::getElementsByHTMLTagName( |
| 176 const WebString& tag) const { | 176 const WebString& tag) const { |
| 177 if (m_private->isContainerNode()) | 177 if (m_private->isContainerNode()) |
| 178 return WebElementCollection( | 178 return WebElementCollection( |
| 179 toContainerNode(m_private.get()) | 179 toContainerNode(m_private.get()) |
| 180 ->getElementsByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); | 180 ->getElementsByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); |
| 181 return WebElementCollection(); | 181 return WebElementCollection(); |
| 182 } | 182 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 WebNode& WebNode::operator=(Node* node) { | 226 WebNode& WebNode::operator=(Node* node) { |
| 227 m_private = node; | 227 m_private = node; |
| 228 return *this; | 228 return *this; |
| 229 } | 229 } |
| 230 | 230 |
| 231 WebNode::operator Node*() const { | 231 WebNode::operator Node*() const { |
| 232 return m_private.get(); | 232 return m_private.get(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 } // namespace blink | 235 } // namespace blink |
| OLD | NEW |