| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 return m_private->isLink(); | 152 return m_private->isLink(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 bool WebNode::isTextNode() const | 155 bool WebNode::isTextNode() const |
| 156 { | 156 { |
| 157 return m_private->isTextNode(); | 157 return m_private->isTextNode(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 bool WebNode::isCommentNode() const | 160 bool WebNode::isCommentNode() const |
| 161 { | 161 { |
| 162 return m_private->getNodeType() == Node::COMMENT_NODE; | 162 return m_private->getNodeType() == Node::kCommentNode; |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool WebNode::isFocusable() const | 165 bool WebNode::isFocusable() const |
| 166 { | 166 { |
| 167 if (!m_private->isElementNode()) | 167 if (!m_private->isElementNode()) |
| 168 return false; | 168 return false; |
| 169 m_private->document().updateStyleAndLayoutIgnorePendingStylesheets(); | 169 m_private->document().updateStyleAndLayoutIgnorePendingStylesheets(); |
| 170 return toElement(m_private.get())->isFocusable(); | 170 return toElement(m_private.get())->isFocusable(); |
| 171 } | 171 } |
| 172 | 172 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 186 return m_private->isElementNode(); | 186 return m_private->isElementNode(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool WebNode::isDocumentNode() const | 189 bool WebNode::isDocumentNode() const |
| 190 { | 190 { |
| 191 return m_private->isDocumentNode(); | 191 return m_private->isDocumentNode(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool WebNode::isDocumentTypeNode() const | 194 bool WebNode::isDocumentTypeNode() const |
| 195 { | 195 { |
| 196 return m_private->getNodeType() == Node::DOCUMENT_TYPE_NODE; | 196 return m_private->getNodeType() == Node::kDocumentTypeNode; |
| 197 } | 197 } |
| 198 | 198 |
| 199 void WebNode::simulateClick() | 199 void WebNode::simulateClick() |
| 200 { | 200 { |
| 201 m_private->getExecutionContext()->postSuspendableTask(wrapUnique(new NodeDis
patchSimulatedClickTask(m_private))); | 201 m_private->getExecutionContext()->postSuspendableTask(wrapUnique(new NodeDis
patchSimulatedClickTask(m_private))); |
| 202 } | 202 } |
| 203 | 203 |
| 204 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st | 204 WebElementCollection WebNode::getElementsByHTMLTagName(const WebString& tag) con
st |
| 205 { | 205 { |
| 206 if (m_private->isContainerNode()) | 206 if (m_private->isContainerNode()) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 m_private = node; | 262 m_private = node; |
| 263 return *this; | 263 return *this; |
| 264 } | 264 } |
| 265 | 265 |
| 266 WebNode::operator Node*() const | 266 WebNode::operator Node*() const |
| 267 { | 267 { |
| 268 return m_private.get(); | 268 return m_private.get(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace blink | 271 } // namespace blink |
| OLD | NEW |