| Index: content/renderer/pepper/ppb_widget_impl.cc
|
| diff --git a/content/renderer/pepper/ppb_widget_impl.cc b/content/renderer/pepper/ppb_widget_impl.cc
|
| index 494eec707e759d06b82d9ec753aefa3bcb7efb59..c28d566d7330a0e59a86614191801197bb25ffe0 100644
|
| --- a/content/renderer/pepper/ppb_widget_impl.cc
|
| +++ b/content/renderer/pepper/ppb_widget_impl.cc
|
| @@ -21,25 +21,22 @@ using ppapi::thunk::PPB_Widget_API;
|
| namespace content {
|
|
|
| PPB_Widget_Impl::PPB_Widget_Impl(PP_Instance instance)
|
| - : Resource(ppapi::OBJECT_IS_IMPL, instance),
|
| - scale_(1.0f) {
|
| + : Resource(ppapi::OBJECT_IS_IMPL, instance), scale_(1.0f) {
|
| memset(&location_, 0, sizeof(location_));
|
| }
|
|
|
| -PPB_Widget_Impl::~PPB_Widget_Impl() {
|
| -}
|
| +PPB_Widget_Impl::~PPB_Widget_Impl() {}
|
|
|
| -PPB_Widget_API* PPB_Widget_Impl::AsPPB_Widget_API() {
|
| - return this;
|
| -}
|
| +PPB_Widget_API* PPB_Widget_Impl::AsPPB_Widget_API() { return this; }
|
|
|
| PP_Bool PPB_Widget_Impl::Paint(const PP_Rect* rect, PP_Resource image_id) {
|
| EnterResourceNoLock<PPB_ImageData_API> enter(image_id, true);
|
| if (enter.failed())
|
| return PP_FALSE;
|
| - return PaintInternal(gfx::Rect(rect->point.x, rect->point.y,
|
| - rect->size.width, rect->size.height),
|
| - static_cast<PPB_ImageData_Impl*>(enter.object()));
|
| + return PaintInternal(
|
| + gfx::Rect(
|
| + rect->point.x, rect->point.y, rect->size.width, rect->size.height),
|
| + static_cast<PPB_ImageData_Impl*>(enter.object()));
|
| }
|
|
|
| PP_Bool PPB_Widget_Impl::HandleEvent(PP_Resource pp_input_event) {
|
| @@ -59,9 +56,7 @@ void PPB_Widget_Impl::SetLocation(const PP_Rect* location) {
|
| SetLocationInternal(location);
|
| }
|
|
|
| -void PPB_Widget_Impl::SetScale(float scale) {
|
| - scale_ = scale;
|
| -}
|
| +void PPB_Widget_Impl::SetScale(float scale) { scale_ = scale; }
|
|
|
| void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
|
| PepperPluginInstanceImpl* plugin_instance =
|
| @@ -76,4 +71,3 @@ void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
|
| }
|
|
|
| } // namespace content
|
| -
|
|
|