Open Bug 1339732 Opened 3 years ago Updated 2 years ago

Find a better data structure than nscoord[8] to store border radii


(Core :: Layout, defect, P3)





(Reporter: TYLin, Unassigned)


File per bug 1326407 comment 14 by dbaron.

In layout code, border radii are stored in nscoord[8] (see [1]), it might be worth creating a struct type containing an nscoord[8] array to make this clearer and perhaps safer.

I also found gfx has a type RectCornerRadii [2], which stores radii by |Size radii[eCornerCount]|. I'm not sure whether we should generalize the type and use it in layout. 

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.