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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/web/WebDocument.cpp » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create( ); 1427 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create( );
1428 accumulateLayerRectList(compositor, rootLayer, rects.get()); 1428 accumulateLayerRectList(compositor, rootLayer, rects.get());
1429 return rects; 1429 return rects;
1430 } 1430 }
1431 } 1431 }
1432 } 1432 }
1433 1433
1434 return nullptr; 1434 return nullptr;
1435 } 1435 }
1436 1436
1437 PassRefPtrWillBeRawPtr<NodeList> Internals::nodesFromRect(Document* document, in t centerX, int centerY, unsigned topPadding, unsigned rightPadding, 1437 PassRefPtrWillBeRawPtr<StaticNodeList> Internals::nodesFromRect(Document* docume nt, int centerX, int centerY, unsigned topPadding, unsigned rightPadding,
1438 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con st 1438 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con st
1439 { 1439 {
1440 if (!document || !document->frame() || !document->frame()->view()) { 1440 if (!document || !document->frame() || !document->frame()->view()) {
1441 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt ained from the provided document."); 1441 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt ained from the provided document.");
1442 return nullptr; 1442 return nullptr;
1443 } 1443 }
1444 1444
1445 LocalFrame* frame = document->frame(); 1445 LocalFrame* frame = document->frame();
1446 FrameView* frameView = document->view(); 1446 FrameView* frameView = document->view();
1447 RenderView* renderView = document->renderView(); 1447 RenderView* renderView = document->renderView();
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 } else if (type == "none") { 2378 } else if (type == "none") {
2379 webtype = blink::ConnectionTypeNone; 2379 webtype = blink::ConnectionTypeNone;
2380 } else { 2380 } else {
2381 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile dToEnumerate("connection type", type)); 2381 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile dToEnumerate("connection type", type));
2382 return; 2382 return;
2383 } 2383 }
2384 networkStateNotifier().setWebConnectionTypeForTest(webtype); 2384 networkStateNotifier().setWebConnectionTypeForTest(webtype);
2385 } 2385 }
2386 2386
2387 } // namespace WebCore 2387 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698