b=397303, thebes rendering of inset/outset borders slow, bandaid; r+sr=roc
authorvladimir@pobox.com
Mon, 14 Jan 2008 14:36:30 -0800
changeset 10263 59b218ca5f5dd62a663f6418e27e64737d7bbb1e
parent 10262 63a24f081916b720480800d69d1604bc8ad03494
child 10264 61018e3d395372fa4653728d00a2a93536a384c7
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs397303
milestone1.9b3pre
b=397303, thebes rendering of inset/outset borders slow, bandaid; r+sr=roc
layout/base/nsCSSRendering.cpp
--- a/layout/base/nsCSSRendering.cpp
+++ b/layout/base/nsCSSRendering.cpp
@@ -970,17 +970,18 @@ NumBorderPasses (PRUint8 *borderStyles,
         compositeColors[i])
       return 4;
 
     switch (borderRenderStyle) {
       case NS_STYLE_BORDER_STYLE_INSET:
       case NS_STYLE_BORDER_STYLE_OUTSET:
       case NS_STYLE_BORDER_STYLE_GROOVE:
       case NS_STYLE_BORDER_STYLE_RIDGE:
-        numBorderPasses = 2;
+        /* XXX See bug 397303 why this is 4 instead of 2; this could be optimized further */
+        numBorderPasses = 4;
         break;
 
       case NS_STYLE_BORDER_STYLE_SOLID:
       case NS_STYLE_BORDER_STYLE_DOUBLE:
       case NS_STYLE_BORDER_STYLE_DASHED:
       case NS_STYLE_BORDER_STYLE_DOTTED:
         // we can do this as 1, if everything else is ok
         break;