- From: Morten Stenshorne via GitHub <sysbot+gh@w3.org>
- Date: Thu, 01 Jun 2017 12:59:36 +0000
- To: public-css-archive@w3.org
This is very old code, and it's in WebKit's initial commit from August 2001:
```
void RenderObject::drawBorder(QPainter *p, int x1, int y1, int x2, int y2,
BorderSide s, QColor c, const QColor& textcolor, EBorderStyle style,
int adjbw1, int adjbw2, bool invalidisInvert)
{
int width = (s==BSTop||s==BSBottom?y2-y1:x2-x1);
if(style == DOUBLE && width < 3)
style = SOLID;
if(!c.isValid()) {
if(invalidisInvert)
{
p->setRasterOp(Qt::XorROP);
c = Qt::white;
}
else {
if(style == INSET || style == OUTSET || style == RIDGE || style ==
GROOVE)
c.setRgb(238, 238, 238);
else
c = textcolor;
}
}
```
--
GitHub Notification of comment by mstensho
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1489#issuecomment-305485639 using your GitHub account
Received on Thursday, 1 June 2017 12:59:43 UTC