| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 return m_frameView->frame().pageZoomFactor(); | 883 return m_frameView->frame().pageZoomFactor(); |
| 884 } | 884 } |
| 885 | 885 |
| 886 void LayoutView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p
oint) | 886 void LayoutView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p
oint) |
| 887 { | 887 { |
| 888 if (result.innerNode()) | 888 if (result.innerNode()) |
| 889 return; | 889 return; |
| 890 | 890 |
| 891 Node* node = document().documentElement(); | 891 Node* node = document().documentElement(); |
| 892 if (node) { | 892 if (node) { |
| 893 result.setInnerNode(node); | |
| 894 | |
| 895 LayoutPoint adjustedPoint = point; | 893 LayoutPoint adjustedPoint = point; |
| 896 offsetForContents(adjustedPoint); | 894 offsetForContents(adjustedPoint); |
| 897 | 895 result.setNodeAndPosition(node, adjustedPoint); |
| 898 result.setLocalPoint(adjustedPoint); | |
| 899 } | 896 } |
| 900 } | 897 } |
| 901 | 898 |
| 902 bool LayoutView::usesCompositing() const | 899 bool LayoutView::usesCompositing() const |
| 903 { | 900 { |
| 904 return m_compositor && m_compositor->staleInCompositingMode(); | 901 return m_compositor && m_compositor->staleInCompositingMode(); |
| 905 } | 902 } |
| 906 | 903 |
| 907 DeprecatedPaintLayerCompositor* LayoutView::compositor() | 904 DeprecatedPaintLayerCompositor* LayoutView::compositor() |
| 908 { | 905 { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 return viewHeight(IncludeScrollbars) / scale; | 943 return viewHeight(IncludeScrollbars) / scale; |
| 947 } | 944 } |
| 948 | 945 |
| 949 void LayoutView::willBeDestroyed() | 946 void LayoutView::willBeDestroyed() |
| 950 { | 947 { |
| 951 LayoutBlockFlow::willBeDestroyed(); | 948 LayoutBlockFlow::willBeDestroyed(); |
| 952 m_compositor.clear(); | 949 m_compositor.clear(); |
| 953 } | 950 } |
| 954 | 951 |
| 955 } // namespace blink | 952 } // namespace blink |
| OLD | NEW |