Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 1814863002: Make page popups work under OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled test on Mac Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3595 matching lines...) Expand 10 before | Expand all | Expand 10 after
3606 IntPoint pointInFrame = contentsToFrame(pointInContents); 3606 IntPoint pointInFrame = contentsToFrame(pointInContents);
3607 IntPoint pointInRootFrame = convertToRootFrame(pointInFrame); 3607 IntPoint pointInRootFrame = convertToRootFrame(pointInFrame);
3608 return m_frame->host()->visualViewport().rootFrameToViewport(pointInRootFram e); 3608 return m_frame->host()->visualViewport().rootFrameToViewport(pointInRootFram e);
3609 } 3609 }
3610 3610
3611 IntRect FrameView::contentsToScreen(const IntRect& rect) const 3611 IntRect FrameView::contentsToScreen(const IntRect& rect) const
3612 { 3612 {
3613 HostWindow* window = getHostWindow(); 3613 HostWindow* window = getHostWindow();
3614 if (!window) 3614 if (!window)
3615 return IntRect(); 3615 return IntRect();
3616 return window->viewportToScreen(contentsToViewport(rect)); 3616 return window->viewportToScreen(contentsToViewport(rect), this);
3617 } 3617 }
3618 3618
3619 IntRect FrameView::soonToBeRemovedContentsToUnscaledViewport(const IntRect& rect InContents) const 3619 IntRect FrameView::soonToBeRemovedContentsToUnscaledViewport(const IntRect& rect InContents) const
3620 { 3620 {
3621 IntRect rectInFrame = contentsToFrame(rectInContents); 3621 IntRect rectInFrame = contentsToFrame(rectInContents);
3622 IntRect rectInRootFrame = convertToRootFrame(rectInFrame); 3622 IntRect rectInRootFrame = convertToRootFrame(rectInFrame);
3623 return enclosingIntRect(m_frame->host()->visualViewport().mainViewToViewport CSSPixels(rectInRootFrame)); 3623 return enclosingIntRect(m_frame->host()->visualViewport().mainViewToViewport CSSPixels(rectInRootFrame));
3624 } 3624 }
3625 3625
3626 IntPoint FrameView::soonToBeRemovedUnscaledViewportToContents(const IntPoint& po intInViewport) const 3626 IntPoint FrameView::soonToBeRemovedUnscaledViewportToContents(const IntPoint& po intInViewport) const
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
4098 return m_hiddenForThrottling && m_crossOriginForThrottling; 4098 return m_hiddenForThrottling && m_crossOriginForThrottling;
4099 } 4099 }
4100 4100
4101 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4101 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4102 { 4102 {
4103 ASSERT(layoutView()); 4103 ASSERT(layoutView());
4104 return *layoutView(); 4104 return *layoutView();
4105 } 4105 }
4106 4106
4107 } // namespace blink 4107 } // namespace blink
OLDNEW
« no previous file with comments | « content/test/data/site_isolation/page-with-select.html ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698