| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 return m_private->isLink(); | 174 return m_private->isLink(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool WebNode::isTextNode() const | 177 bool WebNode::isTextNode() const |
| 178 { | 178 { |
| 179 return m_private->isTextNode(); | 179 return m_private->isTextNode(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool WebNode::isCommentNode() const | 182 bool WebNode::isCommentNode() const |
| 183 { | 183 { |
| 184 return m_private->nodeType() == Node::COMMENT_NODE; | 184 return m_private->getNodeType() == Node::COMMENT_NODE; |
| 185 } | 185 } |
| 186 | 186 |
| 187 bool WebNode::isFocusable() const | 187 bool WebNode::isFocusable() const |
| 188 { | 188 { |
| 189 if (!m_private->isElementNode()) | 189 if (!m_private->isElementNode()) |
| 190 return false; | 190 return false; |
| 191 m_private->document().updateLayoutIgnorePendingStylesheets(); | 191 m_private->document().updateLayoutIgnorePendingStylesheets(); |
| 192 return toElement(m_private.get())->isFocusable(); | 192 return toElement(m_private.get())->isFocusable(); |
| 193 } | 193 } |
| 194 | 194 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 207 return m_private->isElementNode(); | 207 return m_private->isElementNode(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 bool WebNode::isDocumentNode() const | 210 bool WebNode::isDocumentNode() const |
| 211 { | 211 { |
| 212 return m_private->isDocumentNode(); | 212 return m_private->isDocumentNode(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 bool WebNode::isDocumentTypeNode() const | 215 bool WebNode::isDocumentTypeNode() const |
| 216 { | 216 { |
| 217 return m_private->nodeType() == Node::DOCUMENT_TYPE_NODE; | 217 return m_private->getNodeType() == Node::DOCUMENT_TYPE_NODE; |
| 218 } | 218 } |
| 219 | 219 |
| 220 void WebNode::dispatchEvent(const WebDOMEvent& event) | 220 void WebNode::dispatchEvent(const WebDOMEvent& event) |
| 221 { | 221 { |
| 222 if (!event.isNull()) | 222 if (!event.isNull()) |
| 223 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDisp
atchEventTask(m_private, event))); | 223 m_private->executionContext()->postSuspendableTask(adoptPtr(new NodeDisp
atchEventTask(m_private, event))); |
| 224 } | 224 } |
| 225 | 225 |
| 226 void WebNode::simulateClick() | 226 void WebNode::simulateClick() |
| 227 { | 227 { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 m_private = node; | 316 m_private = node; |
| 317 return *this; | 317 return *this; |
| 318 } | 318 } |
| 319 | 319 |
| 320 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 320 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
| 321 { | 321 { |
| 322 return m_private.get(); | 322 return m_private.get(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 } // namespace blink | 325 } // namespace blink |
| OLD | NEW |