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