Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Unified Diff: ui/app_list/views/search_result_page_view.cc

Issue 1773393002: Address some bubble clipping issues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no aa Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/path.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_page_view.cc
diff --git a/ui/app_list/views/search_result_page_view.cc b/ui/app_list/views/search_result_page_view.cc
index ca065cbf4f99df0eb02ddd0b5fefa17804ca1783..4d9d6445b530bb8f5ea7ecd15072926e30dd88ad 100644
--- a/ui/app_list/views/search_result_page_view.cc
+++ b/ui/app_list/views/search_result_page_view.cc
@@ -236,7 +236,10 @@ void SearchResultPageView::OnAnimationUpdated(double progress,
gfx::Rect onscreen_bounds(
GetPageBoundsForState(AppListModel::STATE_SEARCH_RESULTS));
- set_clip_insets(bounds().InsetsFrom(onscreen_bounds));
+ onscreen_bounds -= bounds().OffsetFromOrigin();
+ gfx::Path path;
+ path.addRect(gfx::RectToSkRect(onscreen_bounds));
+ set_clip_path(path);
}
int SearchResultPageView::GetSearchBoxZHeight() const {
« no previous file with comments | « no previous file | ui/gfx/path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698