| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "core/fetch/MemoryCache.h" | 78 #include "core/fetch/MemoryCache.h" |
| 79 #include "core/fetch/ResourceFetcher.h" | 79 #include "core/fetch/ResourceFetcher.h" |
| 80 #include "core/frame/DOMPoint.h" | 80 #include "core/frame/DOMPoint.h" |
| 81 #include "core/frame/DOMWindow.h" | 81 #include "core/frame/DOMWindow.h" |
| 82 #include "core/frame/FrameView.h" | 82 #include "core/frame/FrameView.h" |
| 83 #include "core/frame/LocalFrame.h" | 83 #include "core/frame/LocalFrame.h" |
| 84 #include "core/frame/Settings.h" | 84 #include "core/frame/Settings.h" |
| 85 #include "core/html/HTMLContentElement.h" | 85 #include "core/html/HTMLContentElement.h" |
| 86 #include "core/html/HTMLIFrameElement.h" | 86 #include "core/html/HTMLIFrameElement.h" |
| 87 #include "core/html/HTMLInputElement.h" | 87 #include "core/html/HTMLInputElement.h" |
| 88 #include "core/html/HTMLMediaElement.h" | |
| 89 #include "core/html/HTMLSelectElement.h" | 88 #include "core/html/HTMLSelectElement.h" |
| 90 #include "core/html/HTMLTextAreaElement.h" | 89 #include "core/html/HTMLTextAreaElement.h" |
| 91 #include "core/html/forms/FormController.h" | 90 #include "core/html/forms/FormController.h" |
| 92 #include "core/html/shadow/ShadowElementNames.h" | 91 #include "core/html/shadow/ShadowElementNames.h" |
| 93 #include "core/html/shadow/TextControlInnerElements.h" | 92 #include "core/html/shadow/TextControlInnerElements.h" |
| 94 #include "core/inspector/InspectorClient.h" | 93 #include "core/inspector/InspectorClient.h" |
| 95 #include "core/inspector/InspectorConsoleAgent.h" | 94 #include "core/inspector/InspectorConsoleAgent.h" |
| 96 #include "core/inspector/InspectorController.h" | 95 #include "core/inspector/InspectorController.h" |
| 97 #include "core/inspector/InspectorCounters.h" | 96 #include "core/inspector/InspectorCounters.h" |
| 98 #include "core/inspector/InspectorFrontendChannel.h" | 97 #include "core/inspector/InspectorFrontendChannel.h" |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2410 } | 2409 } |
| 2411 | 2410 |
| 2412 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) | 2411 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
xLength) |
| 2413 { | 2412 { |
| 2414 blink::WebPoint point(x, y); | 2413 blink::WebPoint point(x, y); |
| 2415 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); | 2414 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo
rPoint(static_cast<IntPoint>(point))), maxLength); |
| 2416 return surroundingText.content(); | 2415 return surroundingText.content(); |
| 2417 } | 2416 } |
| 2418 | 2417 |
| 2419 } | 2418 } |
| OLD | NEW |