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

Unified Diff: chrome/browser/android/compositor/layer/contextual_search_layer.cc

Issue 925733002: [Contextual Search] Fixing pixel gaps in Search Panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer/contextual_search_layer.cc
diff --git a/chrome/browser/android/compositor/layer/contextual_search_layer.cc b/chrome/browser/android/compositor/layer/contextual_search_layer.cc
index b98bbb39ec5b0d43bbc6175c944017cb28a7c5ca..317eef0cfe085b8ae5f4d8bef68351b2ab4196b6 100644
--- a/chrome/browser/android/compositor/layer/contextual_search_layer.cc
+++ b/chrome/browser/android/compositor/layer/contextual_search_layer.cc
@@ -72,6 +72,10 @@ void ContextualSearchLayer::SetProperties(
DCHECK(search_provider_icon_resource);
DCHECK(search_icon_resource);
+ // Round values to avoid pixel gap between layers.
+ search_bar_height = floor(search_bar_height);
+ search_bar_margin_top = floor(search_bar_margin_top);
+
// ---------------------------------------------------------------------------
// Search Bar Background
// ---------------------------------------------------------------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698