Lines Matching refs:border2
350 static int compareBorders(const CollapsedBorderValue& border1, const CollapsedBorderValue& border2)
353 if (!border2.exists()) {
362 if (border2.style() == BHIDDEN) {
371 if (border2.style() == BNONE) {
380 if (border1.width() != border2.width())
381 return border1.width() < border2.width() ? -1 : 1;
384 if (border1.style() != border2.style())
385 return border1.style() < border2.style() ? -1 : 1;
388 if (border1.precedence() == border2.precedence())
390 return border1.precedence() < border2.precedence() ? -1 : 1;
393 static CollapsedBorderValue chooseBorder(const CollapsedBorderValue& border1, const CollapsedBorderValue& border2)
395 const CollapsedBorderValue& border = compareBorders(border1, border2) < 0 ? border2 : border1;