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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 return WebElementCollection( | 163 return WebElementCollection( |
164 toContainerNode(m_private.get()) | 164 toContainerNode(m_private.get()) |
165 ->getElementsByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); | 165 ->getElementsByTagNameNS(HTMLNames::xhtmlNamespaceURI, tag)); |
166 return WebElementCollection(); | 166 return WebElementCollection(); |
167 } | 167 } |
168 | 168 |
169 WebElement WebNode::querySelector(const WebString& selector) const { | 169 WebElement WebNode::querySelector(const WebString& selector) const { |
170 if (!m_private->isContainerNode()) | 170 if (!m_private->isContainerNode()) |
171 return WebElement(); | 171 return WebElement(); |
172 return toContainerNode(m_private.get()) | 172 return toContainerNode(m_private.get()) |
173 ->querySelector(selector, IGNORE_EXCEPTION); | 173 ->querySelector(selector, IGNORE_EXCEPTION_FOR_TESTING); |
174 } | 174 } |
175 | 175 |
176 bool WebNode::focused() const { | 176 bool WebNode::focused() const { |
177 return m_private->isFocused(); | 177 return m_private->isFocused(); |
178 } | 178 } |
179 | 179 |
180 WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) { | 180 WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) { |
181 if (!node) | 181 if (!node) |
182 return nullptr; | 182 return nullptr; |
183 | 183 |
(...skipping 27 matching lines...) Expand all Loading... |
211 WebNode& WebNode::operator=(Node* node) { | 211 WebNode& WebNode::operator=(Node* node) { |
212 m_private = node; | 212 m_private = node; |
213 return *this; | 213 return *this; |
214 } | 214 } |
215 | 215 |
216 WebNode::operator Node*() const { | 216 WebNode::operator Node*() const { |
217 return m_private.get(); | 217 return m_private.get(); |
218 } | 218 } |
219 | 219 |
220 } // namespace blink | 220 } // namespace blink |
OLD | NEW |