| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool WebNode::equals(const WebNode& n) const | 124 bool WebNode::equals(const WebNode& n) const |
| 125 { | 125 { |
| 126 return m_private.get() == n.m_private.get(); | 126 return m_private.get() == n.m_private.get(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool WebNode::lessThan(const WebNode& n) const | 129 bool WebNode::lessThan(const WebNode& n) const |
| 130 { | 130 { |
| 131 return m_private.get() < n.m_private.get(); | 131 return m_private.get() < n.m_private.get(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 WebNode::NodeType WebNode::nodeType() const | |
| 135 { | |
| 136 return static_cast<NodeType>(m_private->nodeType()); | |
| 137 } | |
| 138 | |
| 139 WebNode WebNode::parentNode() const | 134 WebNode WebNode::parentNode() const |
| 140 { | 135 { |
| 141 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); | 136 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); |
| 142 } | 137 } |
| 143 | 138 |
| 144 WebString WebNode::nodeValue() const | 139 WebString WebNode::nodeValue() const |
| 145 { | 140 { |
| 146 return m_private->nodeValue(); | 141 return m_private->nodeValue(); |
| 147 } | 142 } |
| 148 | 143 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool WebNode::isInsideFocusableElementOrARIAWidget() const | 207 bool WebNode::isInsideFocusableElementOrARIAWidget() const |
| 213 { | 208 { |
| 214 return AXObject::isInsideFocusableElementOrARIAWidget(*this->constUnwrap<Nod
e>()); | 209 return AXObject::isInsideFocusableElementOrARIAWidget(*this->constUnwrap<Nod
e>()); |
| 215 } | 210 } |
| 216 | 211 |
| 217 bool WebNode::isElementNode() const | 212 bool WebNode::isElementNode() const |
| 218 { | 213 { |
| 219 return m_private->isElementNode(); | 214 return m_private->isElementNode(); |
| 220 } | 215 } |
| 221 | 216 |
| 217 bool WebNode::isDocumentNode() const |
| 218 { |
| 219 return m_private->isDocumentNode(); |
| 220 } |
| 221 |
| 222 void WebNode::dispatchEvent(const WebDOMEvent& event) | 222 void WebNode::dispatchEvent(const WebDOMEvent& event) |
| 223 { | 223 { |
| 224 if (!event.isNull()) | 224 if (!event.isNull()) |
| 225 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDisp
atchEventTask(m_private, event))); | 225 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDisp
atchEventTask(m_private, event))); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void WebNode::simulateClick() | 228 void WebNode::simulateClick() |
| 229 { | 229 { |
| 230 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDispatch
SimulatedClickTask(m_private))); | 230 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDispatch
SimulatedClickTask(m_private))); |
| 231 } | 231 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 m_private = node; | 318 m_private = node; |
| 319 return *this; | 319 return *this; |
| 320 } | 320 } |
| 321 | 321 |
| 322 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 322 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
| 323 { | 323 { |
| 324 return m_private.get(); | 324 return m_private.get(); |
| 325 } | 325 } |
| 326 | 326 |
| 327 } // namespace blink | 327 } // namespace blink |
| OLD | NEW |