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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 WebElement element = querySelector(selector, ec); 250 WebElement element = querySelector(selector, ec);
251 ASSERT(!ec); 251 ASSERT(!ec);
252 return element; 252 return element;
253 } 253 }
254 254
255 void WebNode::querySelectorAll(const WebString& selector, WebVector<WebElement>& results, WebExceptionCode& ec) const 255 void WebNode::querySelectorAll(const WebString& selector, WebVector<WebElement>& results, WebExceptionCode& ec) const
256 { 256 {
257 if (!m_private->isContainerNode()) 257 if (!m_private->isContainerNode())
258 return; 258 return;
259 TrackExceptionState exceptionState; 259 TrackExceptionState exceptionState;
260 RefPtrWillBeRawPtr<StaticElementList> elements = toContainerNode(m_private.g et())->querySelectorAll(selector, exceptionState); 260 RawPtr<StaticElementList> elements = toContainerNode(m_private.get())->query SelectorAll(selector, exceptionState);
261 ec = exceptionState.code(); 261 ec = exceptionState.code();
262 if (exceptionState.hadException()) 262 if (exceptionState.hadException())
263 return; 263 return;
264 Vector<WebElement> temp; 264 Vector<WebElement> temp;
265 temp.reserveCapacity(elements->length()); 265 temp.reserveCapacity(elements->length());
266 for (unsigned i = 0; i < elements->length(); ++i) 266 for (unsigned i = 0; i < elements->length(); ++i)
267 temp.append(WebElement(elements->item(i))); 267 temp.append(WebElement(elements->item(i)));
268 results.assign(temp); 268 results.assign(temp);
269 } 269 }
270 270
(...skipping 27 matching lines...) Expand all
298 298
299 WebAXObject WebNode::accessibilityObject() 299 WebAXObject WebNode::accessibilityObject()
300 { 300 {
301 WebDocument webDocument = document(); 301 WebDocument webDocument = document();
302 const Document* doc = document().constUnwrap<Document>(); 302 const Document* doc = document().constUnwrap<Document>();
303 AXObjectCacheImpl* cache = toAXObjectCacheImpl(doc->existingAXObjectCache()) ; 303 AXObjectCacheImpl* cache = toAXObjectCacheImpl(doc->existingAXObjectCache()) ;
304 Node* node = unwrap<Node>(); 304 Node* node = unwrap<Node>();
305 return cache ? WebAXObject(cache->get(node)) : WebAXObject(); 305 return cache ? WebAXObject(cache->get(node)) : WebAXObject();
306 } 306 }
307 307
308 WebNode::WebNode(const PassRefPtrWillBeRawPtr<Node>& node) 308 WebNode::WebNode(const RawPtr<Node>& node)
309 : m_private(node) 309 : m_private(node)
310 { 310 {
311 } 311 }
312 312
313 WebNode& WebNode::operator=(const PassRefPtrWillBeRawPtr<Node>& node) 313 WebNode& WebNode::operator=(const RawPtr<Node>& node)
314 { 314 {
315 m_private = node; 315 m_private = node;
316 return *this; 316 return *this;
317 } 317 }
318 318
319 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const 319 WebNode::operator RawPtr<Node>() const
320 { 320 {
321 return m_private.get(); 321 return m_private.get();
322 } 322 }
323 323
324 } // namespace blink 324 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebMetaElement.cpp ('k') | third_party/WebKit/Source/web/WebOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698