diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-01-24 15:57:19 +0100 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-01-24 15:57:19 +0100 |
commit | d44b0922b2b0d7c006b511d59d19295136c476ae (patch) | |
tree | 325656bd2697c99584de9bf8917ee81731a91d9d /layout/base | |
parent | 72cdcc927b8ca3943b82a349b7ccce742d537773 (diff) | |
download | palemoon-gre-d44b0922b2b0d7c006b511d59d19295136c476ae.tar.gz |
Clarify comment even more.
Diffstat (limited to 'layout/base')
-rw-r--r-- | layout/base/nsCSSRendering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layout/base/nsCSSRendering.cpp b/layout/base/nsCSSRendering.cpp index e8a389446..c820f424c 100644 --- a/layout/base/nsCSSRendering.cpp +++ b/layout/base/nsCSSRendering.cpp @@ -2252,7 +2252,7 @@ nsCSSRendering::PaintGradient(nsPresContext* aPresContext, // down from the CSS parsing level to here with a flag in mStops, if // rgba(0,0,0,0) ever is an intended thing (very much a corner case). if (i > 0) { - // Add stop adjacent-previous (color->T) + // Change stop color to adjacent-previous (color->T) color = stops[i - 1].mColor; color.a = 0; stops[i].mColor = color; @@ -2261,12 +2261,12 @@ nsCSSRendering::PaintGradient(nsPresContext* aPresContext, gfxRGBA color2 = stops[i + 1].mColor; color2.a = 0; if (color != color2) { - // Only add if c1 is different than c2 in c1->T->c2 + // Only insert an extra stop if c1 is different than c2 in c1->T->c2 stops.InsertElementAt(i + 1,ColorStop(stops[i].mPosition, color2)); } } } else if (i < stops.Length() - 1) { - // Add stop adjacent-next (T->color) + // Change stop color to adjacent-next (T->color) color = stops[i + 1].mColor; color.a = 0; stops[i].mColor = color; |