| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 3608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3619 IntPoint pointInFrame = contentsToFrame(pointInContents); | 3619 IntPoint pointInFrame = contentsToFrame(pointInContents); |
| 3620 IntPoint pointInRootFrame = convertToRootFrame(pointInFrame); | 3620 IntPoint pointInRootFrame = convertToRootFrame(pointInFrame); |
| 3621 return m_frame->host()->visualViewport().rootFrameToViewport(pointInRootFram
e); | 3621 return m_frame->host()->visualViewport().rootFrameToViewport(pointInRootFram
e); |
| 3622 } | 3622 } |
| 3623 | 3623 |
| 3624 IntRect FrameView::contentsToScreen(const IntRect& rect) const | 3624 IntRect FrameView::contentsToScreen(const IntRect& rect) const |
| 3625 { | 3625 { |
| 3626 HostWindow* window = hostWindow(); | 3626 HostWindow* window = hostWindow(); |
| 3627 if (!window) | 3627 if (!window) |
| 3628 return IntRect(); | 3628 return IntRect(); |
| 3629 return window->viewportToScreen(contentsToViewport(rect)); | 3629 return window->viewportToScreen(contentsToViewport(rect), this); |
| 3630 } | 3630 } |
| 3631 | 3631 |
| 3632 IntRect FrameView::soonToBeRemovedContentsToUnscaledViewport(const IntRect& rect
InContents) const | 3632 IntRect FrameView::soonToBeRemovedContentsToUnscaledViewport(const IntRect& rect
InContents) const |
| 3633 { | 3633 { |
| 3634 IntRect rectInFrame = contentsToFrame(rectInContents); | 3634 IntRect rectInFrame = contentsToFrame(rectInContents); |
| 3635 IntRect rectInRootFrame = convertToRootFrame(rectInFrame); | 3635 IntRect rectInRootFrame = convertToRootFrame(rectInFrame); |
| 3636 return enclosingIntRect(m_frame->host()->visualViewport().mainViewToViewport
CSSPixels(rectInRootFrame)); | 3636 return enclosingIntRect(m_frame->host()->visualViewport().mainViewToViewport
CSSPixels(rectInRootFrame)); |
| 3637 } | 3637 } |
| 3638 | 3638 |
| 3639 IntPoint FrameView::soonToBeRemovedUnscaledViewportToContents(const IntPoint& po
intInViewport) const | 3639 IntPoint FrameView::soonToBeRemovedUnscaledViewportToContents(const IntPoint& po
intInViewport) const |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4114 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4114 return m_hiddenForThrottling && m_crossOriginForThrottling; |
| 4115 } | 4115 } |
| 4116 | 4116 |
| 4117 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4117 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
| 4118 { | 4118 { |
| 4119 ASSERT(layoutView()); | 4119 ASSERT(layoutView()); |
| 4120 return *layoutView(); | 4120 return *layoutView(); |
| 4121 } | 4121 } |
| 4122 | 4122 |
| 4123 } // namespace blink | 4123 } // namespace blink |
| OLD | NEW |