зеркало из https://github.com/mozilla/gecko-dev.git
Bug 494664. Minor color-related cleanup. r=jmuizel,sr=vlad
--HG-- extra : rebase_source : a81d48bb0fa9faac3806b7a609d35a9eb5bdffd9
This commit is contained in:
Родитель
62901930d7
Коммит
e5bf038da5
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче