Bug 494664. Minor color-related cleanup. r=jmuizel,sr=vlad

--HG--
extra : rebase_source : a81d48bb0fa9faac3806b7a609d35a9eb5bdffd9
This commit is contained in:
Timothy Nikkel 2009-06-24 21:18:17 +12:00
Родитель 62901930d7
Коммит e5bf038da5
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -75,7 +75,7 @@ void nsColorNames::AddRefTable(void)
#ifdef DEBUG
{
// let's verify the table...
for (PRInt32 index = 0; index < eColorName_COUNT; ++index) {
for (PRUint32 index = 0; index < eColorName_COUNT; ++index) {
nsCAutoString temp1(kColorNames[index]);
nsCAutoString temp2(kColorNames[index]);
ToLowerCase(temp1);

Просмотреть файл

@ -117,8 +117,8 @@
/**
* Fast approximate division by 255. It has the property that
* for all 0 <= n <= 255*255, FAST_DIVIDE_BY_255(n) == n/255.
* But it only uses two adds and two shifts instead of an
* for all 0 <= n <= 255*255, GFX_DIVIDE_BY_255(n) == n/255.
* But it only uses two adds and two shifts instead of an
* integer division (which is expensive on many processors).
*
* equivalent to ((v)/255)