Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / app_list / views / search_result_view.cc
index 8515179..5ba5a20 100644 (file)
@@ -291,6 +291,11 @@ void SearchResultView::OnIconChanged() {
     icon_->ResetImageSize();
   }
 
+  // Set the image to an empty image before we reset the image because
+  // since we're using the same backing store for our images, sometimes
+  // ImageView won't detect that we have a new image set due to the pixel
+  // buffer pointers remaining the same despite the image changing.
+  icon_->SetImage(gfx::ImageSkia());
   icon_->SetImage(image);
 }