~chrisccoulson/oxide/refactor-webview-rwhv-interation

« back to all changes in this revision

Viewing changes to shared/browser/oxide_render_widget_host_view.cc

  • Committer: Chris Coulson
  • Date: 2015-10-21 17:24:58 UTC
  • Revision ID: chris.coulson@canonical.com-20151021172458-051kqj477b0uaev6
Don't call Show() or Hide() when setting the container

Show diffs side-by-side

added added

removed removed

Lines of Context:
650
650
  CompositorObserver::Observe(
651
651
      container_ ? container_->GetCompositor() : nullptr);
652
652
 
653
 
  if (container_) {
654
 
    DCHECK(host_) <<
655
 
        "Shouldn't be attaching to a delegate when we're already destroyed";
656
 
    host_->SendScreenRects();
657
 
    host_->WasResized();
658
 
 
659
 
    if (container_->IsVisible()) {
660
 
      Show();
661
 
    } else {
662
 
      Hide();
663
 
    }
664
 
  } else if (host_) {
665
 
    Hide();
 
653
  if (!host_) {
 
654
    return;
666
655
  }
 
656
 
 
657
  host_->SendScreenRects();
 
658
  host_->WasResized();
667
659
}
668
660
 
669
661
void RenderWidgetHostView::Blur() {