| 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 14004112047b74595eadb3a1663db94e85487d6c..3cbfde5ff0faf2a0cac5a48ef31b7f7de9305c65 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -229,13 +229,11 @@ ContentViewCoreImpl::ContentViewCoreImpl(
|
| DCHECK(window_android);
|
| DCHECK(!view_android_delegate.is_null());
|
| window_android->AddChild(&view_);
|
| - view_.SetLayer(cc::SolidColorLayer::Create());
|
| - view_.GetLayer()->SetBackgroundColor(GetBackgroundColor(env, obj));
|
| + view_.SetLayer(cc::Layer::Create());
|
| gfx::Size physical_size(
|
| Java_ContentViewCore_getPhysicalBackingWidthPix(env, obj),
|
| Java_ContentViewCore_getPhysicalBackingHeightPix(env, obj));
|
| view_.GetLayer()->SetBounds(physical_size);
|
| - view_.GetLayer()->SetIsDrawable(true);
|
|
|
| // Currently, the only use case we have for overriding a user agent involves
|
| // spoofing a desktop Linux user agent for "Request desktop site".
|
| @@ -484,8 +482,6 @@ void ContentViewCoreImpl::SetTitle(const base::string16& title) {
|
| }
|
|
|
| void ContentViewCoreImpl::OnBackgroundColorChanged(SkColor color) {
|
| - view_.GetLayer()->SetBackgroundColor(color);
|
| -
|
| JNIEnv* env = AttachCurrentThread();
|
| ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
|
| if (obj.is_null())
|
| @@ -833,18 +829,6 @@ float ContentViewCoreImpl::GetTopControlsHeightDip() const {
|
| return GetTopControlsHeightPix() / dpi_scale();
|
| }
|
|
|
| -void ContentViewCoreImpl::AttachLayer(scoped_refptr<cc::Layer> layer) {
|
| - view_.GetLayer()->InsertChild(layer, 0);
|
| - view_.GetLayer()->SetIsDrawable(false);
|
| -}
|
| -
|
| -void ContentViewCoreImpl::RemoveLayer(scoped_refptr<cc::Layer> layer) {
|
| - layer->RemoveFromParent();
|
| -
|
| - if (view_.GetLayer()->children().empty())
|
| - view_.GetLayer()->SetIsDrawable(true);
|
| -}
|
| -
|
| void ContentViewCoreImpl::MoveRangeSelectionExtent(const gfx::PointF& extent) {
|
| if (!web_contents_)
|
| return;
|
|
|