| Index: content/browser/android/content_view_core_impl.cc
|
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
|
| index 69449fb5db4c006a4e69bc9a574e69eeb8c9a6d1..cc5bcd7bf0f3d1575db10dd2a1ab70baf328d75c 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -1281,8 +1281,12 @@ jint ContentViewCoreImpl::GetCurrentRenderProcessId(JNIEnv* env, jobject obj) {
|
|
|
| void ContentViewCoreImpl::SetBackgroundOpaque(JNIEnv* env, jobject jobj,
|
| jboolean opaque) {
|
| - if (GetRenderWidgetHostViewAndroid())
|
| - GetRenderWidgetHostViewAndroid()->SetBackgroundOpaque(opaque);
|
| + if (GetRenderWidgetHostViewAndroid()) {
|
| + if (opaque)
|
| + GetRenderWidgetHostViewAndroid()->FillBackgroundWithDefaultColor();
|
| + else
|
| + GetRenderWidgetHostViewAndroid()->SetBackgroundColor(SK_ColorTRANSPARENT);
|
| + }
|
| }
|
|
|
| void ContentViewCoreImpl::RequestTextSurroundingSelection(
|
|
|