| 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 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 LocalFrame* frame = document->frame(); | 1760 LocalFrame* frame = document->frame(); |
| 1761 FrameView* frameView = document->view(); | 1761 FrameView* frameView = document->view(); |
| 1762 LayoutViewItem layoutViewItem = document->layoutViewItem(); | 1762 LayoutViewItem layoutViewItem = document->layoutViewItem(); |
| 1763 | 1763 |
| 1764 if (layoutViewItem.isNull()) | 1764 if (layoutViewItem.isNull()) |
| 1765 return nullptr; | 1765 return nullptr; |
| 1766 | 1766 |
| 1767 float zoomFactor = frame->pageZoomFactor(); | 1767 float zoomFactor = frame->pageZoomFactor(); |
| 1768 LayoutPoint point = roundedLayoutPoint( | 1768 LayoutPoint point = |
| 1769 FloatPoint(centerX * zoomFactor + frameView->scrollX(), | 1769 LayoutPoint(FloatPoint(centerX * zoomFactor + frameView->scrollX(), |
| 1770 centerY * zoomFactor + frameView->scrollY())); | 1770 centerY * zoomFactor + frameView->scrollY())); |
| 1771 | 1771 |
| 1772 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | | 1772 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | |
| 1773 HitTestRequest::Active | | 1773 HitTestRequest::Active | |
| 1774 HitTestRequest::ListBased; | 1774 HitTestRequest::ListBased; |
| 1775 if (ignoreClipping) | 1775 if (ignoreClipping) |
| 1776 hitType |= HitTestRequest::IgnoreClipping; | 1776 hitType |= HitTestRequest::IgnoreClipping; |
| 1777 if (allowChildFrameContent) | 1777 if (allowChildFrameContent) |
| 1778 hitType |= HitTestRequest::AllowChildFrameContent; | 1778 hitType |= HitTestRequest::AllowChildFrameContent; |
| 1779 | 1779 |
| 1780 HitTestRequest request(hitType); | 1780 HitTestRequest request(hitType); |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3015 return ClientRect::create(); | 3015 return ClientRect::create(); |
| 3016 | 3016 |
| 3017 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3017 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
| 3018 } | 3018 } |
| 3019 | 3019 |
| 3020 void Internals::crash() { | 3020 void Internals::crash() { |
| 3021 CHECK(false) << "Intentional crash"; | 3021 CHECK(false) << "Intentional crash"; |
| 3022 } | 3022 } |
| 3023 | 3023 |
| 3024 } // namespace blink | 3024 } // namespace blink |
| OLD | NEW |