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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPainter.cpp

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebaselined tests. 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
Index: third_party/WebKit/Source/core/paint/ObjectPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
index e07132dd9b94fe81ce33ad06b230587a3fdb0108..cdad28c4dc76d2060fa1a72f0c2fd5c8e474b5f3 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
@@ -338,18 +338,18 @@ void ObjectPainter::addPDFURLRectIfNeeded(const PaintInfo& paintInfo,
}
void ObjectPainter::drawLineForBoxSide(GraphicsContext& graphicsContext,
- int x1,
- int y1,
- int x2,
- int y2,
+ float x1,
+ float y1,
+ float x2,
+ float y2,
BoxSide side,
Color color,
EBorderStyle style,
int adjacentWidth1,
int adjacentWidth2,
bool antialias) {
- int thickness;
- int length;
+ float thickness;
+ float length;
if (side == BSTop || side == BSBottom) {
thickness = y2 - y1;
length = x2 - x1;
@@ -449,7 +449,7 @@ void ObjectPainter::drawDoubleBoxSide(GraphicsContext& graphicsContext,
int length,
BoxSide side,
Color color,
- int thickness,
+ float thickness,
int adjacentWidth1,
int adjacentWidth2,
bool antialias) {

Powered by Google App Engine
This is Rietveld 408576698