ViewBounds for chrome browser was ignoring the top controls height.
This patch corrects the issue and simplifies GetViewPortRect() in
TizenRendererImpl. OffScreen case is also handled in GetViewBounds() of
RWHVAura.
Change-Id: Iddea1ade09efc0611b0b5faadbbf1c9ac4d4c721
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
if (RenderWidgetHostViewAura* rwhv = static_cast<RenderWidgetHostViewAura*>(
web_contents->GetRenderWidgetHostView())) {
- if (rwhv->offscreen_helper()) {
- // offscreen rendering mode
- return rwhv->offscreen_helper()->GetViewBoundsInPix();
- } else {
- // onscreen rendering mode
- return rwhv->window()->bounds();
- }
+ return rwhv->GetViewBounds();
}
return gfx::Rect();
}