Ensure that OnCreated() gets sent before OnBoundsChanged()

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/165383002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251253 0039d316-1c4b-4281-b951-d872f2087c98
parent a6e0965a
...@@ -41,6 +41,7 @@ class NativeViewportImpl ...@@ -41,6 +41,7 @@ class NativeViewportImpl
services::NativeViewport::Create(context(), this); services::NativeViewport::Create(context(), this);
native_viewport_->Init(bounds); native_viewport_->Init(bounds);
client()->OnCreated(); client()->OnCreated();
OnBoundsChanged(bounds);
} }
virtual void Show() MOJO_OVERRIDE { virtual void Show() MOJO_OVERRIDE {
......
...@@ -57,7 +57,6 @@ class NativeViewportX11 : public NativeViewport, ...@@ -57,7 +57,6 @@ class NativeViewportX11 : public NativeViewport,
base::MessagePumpX11::Current()->AddDispatcherForRootWindow(this); base::MessagePumpX11::Current()->AddDispatcherForRootWindow(this);
delegate_->OnAcceleratedWidgetAvailable(window_); delegate_->OnAcceleratedWidgetAvailable(window_);
delegate_->OnBoundsChanged(bounds_);
} }
virtual void Show() OVERRIDE { virtual void Show() OVERRIDE {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment