mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Issue #1925 - Rewrite NS_FOR_CSS_CORNERS to be similar to *_SIDES
- Renames it to NS_CSS_FULL_CORNERS and uses the one macro for all full corners. In preparation for giving half corners the same treatment. - Swaps to prefix operator++
This commit is contained in:
parent
b3a51c2711
commit
0a7f42b452
4 changed files with 18 additions and 21 deletions
|
|
@ -3385,7 +3385,7 @@ nsCSSBorderRenderer::DrawBorders()
|
|||
* a 1.0 unit border all around and no border radius.
|
||||
*/
|
||||
|
||||
NS_FOR_CSS_CORNERS(corner) {
|
||||
NS_FOR_CSS_FULL_CORNERS(corner) {
|
||||
const mozilla::Side sides[2] = { mozilla::Side(corner), PREV_SIDE(corner) };
|
||||
|
||||
if (!IsZeroSize(mBorderRadii[corner]))
|
||||
|
|
@ -3400,7 +3400,7 @@ nsCSSBorderRenderer::DrawBorders()
|
|||
}
|
||||
|
||||
// First, the corners
|
||||
NS_FOR_CSS_CORNERS(corner) {
|
||||
NS_FOR_CSS_FULL_CORNERS(corner) {
|
||||
// if there's no corner, don't do all this work for it
|
||||
if (IsZeroSize(mBorderCornerDimensions[corner]))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue