Chromium Code Reviews| Index: content/browser/web_contents/web_contents_view_guest.cc |
| diff --git a/content/browser/web_contents/web_contents_view_guest.cc b/content/browser/web_contents/web_contents_view_guest.cc |
| index b2b86fa755e42097b0fedadd693a32b281cd57be..a93bc375bbbdc45d817dd74f21b5396cff509509 100644 |
| --- a/content/browser/web_contents/web_contents_view_guest.cc |
| +++ b/content/browser/web_contents/web_contents_view_guest.cc |
| @@ -92,7 +92,8 @@ void WebContentsViewGuest::GetContainerBounds(gfx::Rect* out) const { |
| if (guest_->embedder_web_contents()) { |
| // We need embedder container's bounds to calculate our bounds. |
| guest_->embedder_web_contents()->GetView()->GetContainerBounds(out); |
| - gfx::Point guest_coordinates = guest_->GetScreenCoordinates(gfx::Point()); |
|
lfg
2016/12/06 00:23:53
Will other uses of GetScreenCoordinates have the s
EhsanK
2016/12/06 01:00:12
GetScreenCoordinates() and the new method added ha
lfg
2016/12/06 01:22:25
Acknowledged.
|
| + gfx::Point guest_coordinates = |
| + guest_->GetCoordinatesInEmbedderWebContents(gfx::Point()); |
| out->Offset(guest_coordinates.x(), guest_coordinates.y()); |
| } else { |
| out->set_origin(gfx::Point()); |