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

Unified Diff: ui/views/controls/table/table_header.cc

Issue 2689273002: Fix appearance of header row separators in table view at fractional (Closed)
Patch Set: pkasting review Created 3 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 | « ui/gfx/canvas.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/table/table_header.cc
diff --git a/ui/views/controls/table/table_header.cc b/ui/views/controls/table/table_header.cc
index 658079d84a551f3cb8a63f83ea9882cbe723f4de..a1f1bf87efe344a357c5524fc8ff49cac6cf40ba 100644
--- a/ui/views/controls/table/table_header.cc
+++ b/ui/views/controls/table/table_header.cc
@@ -67,8 +67,8 @@ void TableHeader::OnPaint(gfx::Canvas* canvas) {
OnPaintBackground(canvas);
SkColor border_color =
theme->GetSystemColor(ui::NativeTheme::kColorId_UnfocusedBorderColor);
- canvas->DrawLine(gfx::Point(0, height() - 1),
- gfx::Point(width(), height() - 1), border_color);
+ canvas->DrawSharpLine(gfx::PointF(0, height() - 1),
+ gfx::PointF(width(), height() - 1), border_color);
const Columns& columns = table_->visible_columns();
const int sorted_column_id = table_->sort_descriptors().empty() ? -1 :
@@ -77,9 +77,10 @@ void TableHeader::OnPaint(gfx::Canvas* canvas) {
if (columns[i].width >= 2) {
const int separator_x = GetMirroredXInView(
columns[i].x + columns[i].width - 1);
- canvas->DrawLine(gfx::Point(separator_x, kSeparatorPadding),
- gfx::Point(separator_x, height() - kSeparatorPadding),
- separator_color);
+ canvas->DrawSharpLine(
+ gfx::PointF(separator_x, kSeparatorPadding),
+ gfx::PointF(separator_x, height() - kSeparatorPadding),
+ separator_color);
}
const int x = columns[i].x + kHorizontalPadding;
« no previous file with comments | « ui/gfx/canvas.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698