Commit c3d64314 authored by wutao's avatar wutao Committed by Commit Bot

assistant: Not clip corner for web container

For Assistant web container, we do not need to clip the contents corners.

Bug: b/144047917
Test: manual
Change-Id: I865bb375c52faee3b5cda708b48b137aa07452ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902715
Commit-Queue: Tao Wu <wutao@chromium.org>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713674}
parent c6656ebc
......@@ -176,9 +176,11 @@ void AssistantWebView::DidStopLoading() {
SetFocusBehavior(FocusBehavior::ALWAYS);
// We need to clip the corners of our web contents to match our container.
contents_->GetView()->native_view()->layer()->SetRoundedCornerRadius(
{/*top_left=*/0, /*top_right=*/0, /*bottom_right=*/kCornerRadiusDip,
/*bottom_left=*/kCornerRadiusDip});
if (!chromeos::assistant::features::IsAssistantWebContainerEnabled()) {
contents_->GetView()->native_view()->layer()->SetRoundedCornerRadius(
{/*top_left=*/0, /*top_right=*/0, /*bottom_right=*/kCornerRadiusDip,
/*bottom_left=*/kCornerRadiusDip});
}
}
void AssistantWebView::DidSuppressNavigation(const GURL& url,
......
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