| 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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create(
); | 1436 RefPtrWillBeRawPtr<LayerRectList> rects = LayerRectList::create(
); |
| 1437 accumulateLayerRectList(compositor, rootLayer, rects.get()); | 1437 accumulateLayerRectList(compositor, rootLayer, rects.get()); |
| 1438 return rects; | 1438 return rects; |
| 1439 } | 1439 } |
| 1440 } | 1440 } |
| 1441 } | 1441 } |
| 1442 | 1442 |
| 1443 return nullptr; | 1443 return nullptr; |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 PassRefPtr<NodeList> Internals::nodesFromRect(Document* document, int centerX, i
nt centerY, unsigned topPadding, unsigned rightPadding, | 1446 PassRefPtrWillBeRawPtr<NodeList> Internals::nodesFromRect(Document* document, in
t centerX, int centerY, unsigned topPadding, unsigned rightPadding, |
| 1447 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo
wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con
st | 1447 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allo
wShadowContent, bool allowChildFrameContent, ExceptionState& exceptionState) con
st |
| 1448 { | 1448 { |
| 1449 if (!document || !document->frame() || !document->frame()->view()) { | 1449 if (!document || !document->frame() || !document->frame()->view()) { |
| 1450 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt
ained from the provided document."); | 1450 exceptionState.throwDOMException(InvalidAccessError, "No view can be obt
ained from the provided document."); |
| 1451 return nullptr; | 1451 return nullptr; |
| 1452 } | 1452 } |
| 1453 | 1453 |
| 1454 LocalFrame* frame = document->frame(); | 1454 LocalFrame* frame = document->frame(); |
| 1455 FrameView* frameView = document->view(); | 1455 FrameView* frameView = document->view(); |
| 1456 RenderView* renderView = document->renderView(); | 1456 RenderView* renderView = document->renderView(); |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2329 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) | 2329 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) |
| 2330 { | 2330 { |
| 2331 if (!node) | 2331 if (!node) |
| 2332 return String(); | 2332 return String(); |
| 2333 blink::WebPoint point(x, y); | 2333 blink::WebPoint point(x, y); |
| 2334 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); | 2334 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); |
| 2335 return surroundingText.content(); | 2335 return surroundingText.content(); |
| 2336 } | 2336 } |
| 2337 | 2337 |
| 2338 } | 2338 } |
| OLD | NEW |