OLD | NEW |
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 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create(
); | 1428 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create(
); |
1429 accumulateLayerRectList(compositor, rootLayer, rects.get()); | 1429 accumulateLayerRectList(compositor, rootLayer, rects.get()); |
1430 return rects; | 1430 return rects; |
1431 } | 1431 } |
1432 } | 1432 } |
1433 } | 1433 } |
1434 | 1434 |
1435 return nullptr; | 1435 return nullptr; |
1436 } | 1436 } |
1437 | 1437 |
1438 PassRefPtrWillBeRawPtr<NodeList> Internals::nodesFromRect(Document* document, in
t centerX, int centerY, unsigned topPadding, unsigned rightPadding, | 1438 PassRefPtrWillBeRawPtr<StaticNodeList> Internals::nodesFromRect(Document* docume
nt, int centerX, int centerY, unsigned topPadding, unsigned rightPadding, |
1439 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo
wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con
st | 1439 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo
wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con
st |
1440 { | 1440 { |
1441 if (!document || !document->frame() || !document->frame()->view()) { | 1441 if (!document || !document->frame() || !document->frame()->view()) { |
1442 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt
ained from the provided document."); | 1442 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt
ained from the provided document."); |
1443 return nullptr; | 1443 return nullptr; |
1444 } | 1444 } |
1445 | 1445 |
1446 LocalFrame* frame = document->frame(); | 1446 LocalFrame* frame = document->frame(); |
1447 FrameView* frameView = document->view(); | 1447 FrameView* frameView = document->view(); |
1448 RenderView* renderView = document->renderView(); | 1448 RenderView* renderView = document->renderView(); |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2358 } else if (type == "none") { | 2358 } else if (type == "none") { |
2359 webtype = blink::ConnectionTypeNone; | 2359 webtype = blink::ConnectionTypeNone; |
2360 } else { | 2360 } else { |
2361 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); | 2361 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); |
2362 return; | 2362 return; |
2363 } | 2363 } |
2364 networkStateNotifier().setWebConnectionTypeForTest(webtype); | 2364 networkStateNotifier().setWebConnectionTypeForTest(webtype); |
2365 } | 2365 } |
2366 | 2366 |
2367 } // namespace WebCore | 2367 } // namespace WebCore |
OLD | NEW |