OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "core/editing/iterators/TextIterator.h" | 41 #include "core/editing/iterators/TextIterator.h" |
42 #include "core/frame/LocalFrame.h" | 42 #include "core/frame/LocalFrame.h" |
43 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
44 #include "core/html/HTMLImageElement.h" | 44 #include "core/html/HTMLImageElement.h" |
45 #include "core/html/HTMLLabelElement.h" | 45 #include "core/html/HTMLLabelElement.h" |
46 #include "core/html/HTMLOptionElement.h" | 46 #include "core/html/HTMLOptionElement.h" |
47 #include "core/html/HTMLSelectElement.h" | 47 #include "core/html/HTMLSelectElement.h" |
48 #include "core/html/HTMLTextAreaElement.h" | 48 #include "core/html/HTMLTextAreaElement.h" |
49 #include "core/html/shadow/ShadowElementNames.h" | 49 #include "core/html/shadow/ShadowElementNames.h" |
50 #include "core/layout/HitTestResult.h" | 50 #include "core/layout/HitTestResult.h" |
| 51 #include "core/layout/Layer.h" |
51 #include "core/loader/ProgressTracker.h" | 52 #include "core/loader/ProgressTracker.h" |
52 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
53 #include "core/rendering/RenderFieldset.h" | 54 #include "core/rendering/RenderFieldset.h" |
54 #include "core/rendering/RenderFileUploadControl.h" | 55 #include "core/rendering/RenderFileUploadControl.h" |
55 #include "core/rendering/RenderHTMLCanvas.h" | 56 #include "core/rendering/RenderHTMLCanvas.h" |
56 #include "core/rendering/RenderImage.h" | 57 #include "core/rendering/RenderImage.h" |
57 #include "core/rendering/RenderInline.h" | 58 #include "core/rendering/RenderInline.h" |
58 #include "core/rendering/RenderLayer.h" | |
59 #include "core/rendering/RenderListMarker.h" | 59 #include "core/rendering/RenderListMarker.h" |
60 #include "core/rendering/RenderMenuList.h" | 60 #include "core/rendering/RenderMenuList.h" |
61 #include "core/rendering/RenderPart.h" | 61 #include "core/rendering/RenderPart.h" |
62 #include "core/rendering/RenderTextControlSingleLine.h" | 62 #include "core/rendering/RenderTextControlSingleLine.h" |
63 #include "core/rendering/RenderTextFragment.h" | 63 #include "core/rendering/RenderTextFragment.h" |
64 #include "core/rendering/RenderView.h" | 64 #include "core/rendering/RenderView.h" |
65 #include "core/svg/SVGDocumentExtensions.h" | 65 #include "core/svg/SVGDocumentExtensions.h" |
66 #include "core/svg/SVGSVGElement.h" | 66 #include "core/svg/SVGSVGElement.h" |
67 #include "core/svg/graphics/SVGImage.h" | 67 #include "core/svg/graphics/SVGImage.h" |
68 #include "modules/accessibility/AXImageMapLink.h" | 68 #include "modules/accessibility/AXImageMapLink.h" |
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 | 1332 |
1333 // | 1333 // |
1334 // Hit testing. | 1334 // Hit testing. |
1335 // | 1335 // |
1336 | 1336 |
1337 AXObject* AXRenderObject::accessibilityHitTest(const IntPoint& point) const | 1337 AXObject* AXRenderObject::accessibilityHitTest(const IntPoint& point) const |
1338 { | 1338 { |
1339 if (!m_renderer || !m_renderer->hasLayer()) | 1339 if (!m_renderer || !m_renderer->hasLayer()) |
1340 return 0; | 1340 return 0; |
1341 | 1341 |
1342 RenderLayer* layer = toRenderBox(m_renderer)->layer(); | 1342 Layer* layer = toRenderBox(m_renderer)->layer(); |
1343 | 1343 |
1344 HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active); | 1344 HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active); |
1345 HitTestResult hitTestResult = HitTestResult(point); | 1345 HitTestResult hitTestResult = HitTestResult(point); |
1346 layer->hitTest(request, hitTestResult); | 1346 layer->hitTest(request, hitTestResult); |
1347 if (!hitTestResult.innerNode()) | 1347 if (!hitTestResult.innerNode()) |
1348 return 0; | 1348 return 0; |
1349 | 1349 |
1350 Node* node = hitTestResult.innerNode(); | 1350 Node* node = hitTestResult.innerNode(); |
1351 | 1351 |
1352 // Allow the hit test to return media control buttons. | 1352 // Allow the hit test to return media control buttons. |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 if (label && label->renderer()) { | 2446 if (label && label->renderer()) { |
2447 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2447 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2448 result.unite(labelRect); | 2448 result.unite(labelRect); |
2449 } | 2449 } |
2450 } | 2450 } |
2451 | 2451 |
2452 return result; | 2452 return result; |
2453 } | 2453 } |
2454 | 2454 |
2455 } // namespace blink | 2455 } // namespace blink |
OLD | NEW |