Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: third_party/WebKit/Source/web/WebNode.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698