| Index: webkit/plugins/ppapi/ppb_widget_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_widget_impl.cc b/webkit/plugins/ppapi/ppb_widget_impl.cc
|
| index 306a1b565140cc679968fa1ddd913d3cca7ff188..8fe0386364663bac31ae3ca751aa18969bff2378 100644
|
| --- a/webkit/plugins/ppapi/ppb_widget_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_widget_impl.cc
|
| @@ -22,7 +22,8 @@ namespace webkit {
|
| namespace ppapi {
|
|
|
| PPB_Widget_Impl::PPB_Widget_Impl(PP_Instance instance)
|
| - : Resource(::ppapi::OBJECT_IS_IMPL, instance) {
|
| + : Resource(::ppapi::OBJECT_IS_IMPL, instance),
|
| + scale_(1.0f) {
|
| memset(&location_, 0, sizeof(location_));
|
| }
|
|
|
| @@ -59,6 +60,10 @@ void PPB_Widget_Impl::SetLocation(const PP_Rect* location) {
|
| SetLocationInternal(location);
|
| }
|
|
|
| +void PPB_Widget_Impl::SetScale(float scale) {
|
| + scale_ = scale;
|
| +}
|
| +
|
| void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
|
| PluginInstance* plugin_instance = ResourceHelper::GetPluginInstance(this);
|
| if (!plugin_instance)
|
|
|