| Index: ui/android/view_android.cc
|
| diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
|
| index 8503cf837fff15a87f1cad682ea9519ffae8e002..489a1b930c6ed2995f824e310d458b041b3a5302 100644
|
| --- a/ui/android/view_android.cc
|
| +++ b/ui/android/view_android.cc
|
| @@ -126,7 +126,11 @@ void ViewAndroid::AddChild(ViewAndroid* child) {
|
| if (child->parent_)
|
| child->RemoveFromParent();
|
| child->parent_ = this;
|
| - child->OnPhysicalBackingSizeChanged(physical_size_);
|
| +
|
| + // Empty physical backing size need not propagating down since it can
|
| + // accidentally overwrite the valid ones in the children.
|
| + if (!physical_size_.IsEmpty())
|
| + child->OnPhysicalBackingSizeChanged(physical_size_);
|
| }
|
|
|
| // static
|
|
|