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 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |