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

Issue 6368002: Fix widget pepper interface crashing after r71544. (Closed)

Created:
9 years, 11 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Fix widget pepper interface crashing after r71544. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71628

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M webkit/plugins/ppapi/ppb_widget_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_widget_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
jam
9 years, 11 months ago (2011-01-18 01:43:42 UTC) #1
brettw
9 years, 11 months ago (2011-01-18 03:55:50 UTC) #2
Whoops, LGTM

On Mon, Jan 17, 2011 at 5:43 PM,  <jam@chromium.org> wrote:
> Reviewers: brettw,
>
> Description:
> Fix widget pepper interface crashing after r71544.
>
> Please review this at http://codereview.chromium.org/6368002/
>
> SVN Base: svn://chrome-svn/chrome/trunk/src/
>
> Affected files:
>  M     webkit/plugins/ppapi/ppb_widget_impl.h
>  M     webkit/plugins/ppapi/ppb_widget_impl.cc
>
>
> Index: webkit/plugins/ppapi/ppb_widget_impl.cc
> ===================================================================
> --- webkit/plugins/ppapi/ppb_widget_impl.cc     (revision 71581)
> +++ webkit/plugins/ppapi/ppb_widget_impl.cc     (working copy)
> @@ -100,7 +100,7 @@
>   if (!widget)
>     return;
>   ScopedResourceId resource(this);
> -  widget->Invalidate(instance_->pp_instance(), resource.id, dirty);
> +  widget->Invalidate(instance()->pp_instance(), resource.id, dirty);
>  }
>
>  }  // namespace ppapi
> Index: webkit/plugins/ppapi/ppb_widget_impl.h
> ===================================================================
> --- webkit/plugins/ppapi/ppb_widget_impl.h      (revision 71581)
> +++ webkit/plugins/ppapi/ppb_widget_impl.h      (working copy)
> @@ -39,14 +39,12 @@
>
>   // Notifies the plugin instance that the given rect needs to be repainted.
>   void Invalidate(const PP_Rect* dirty);
> -  PluginInstance* instance() { return instance_; }
>
>  protected:
>   virtual void SetLocationInternal(const PP_Rect* location) = 0;
>   PP_Rect location() const { return location_; }
>
>  private:
> -  scoped_refptr<PluginInstance> instance_;
>   PP_Rect location_;
>
>   DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl);
>
>
>

Powered by Google App Engine
This is Rietveld 408576698