mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #1925 - Convert NS_SIDE_IS_VERTICAL to a constexpr function.
This commit is contained in:
parent
8a2bc8ef4d
commit
b0b13b8719
5 changed files with 11 additions and 9 deletions
|
|
@ -3920,10 +3920,8 @@ DrawBorderImage(nsPresContext* aPresContext,
|
|||
nsMargin border;
|
||||
NS_FOR_CSS_SIDES(s) {
|
||||
nsStyleCoord coord = aStyleBorder.mBorderImageSlice.Get(s);
|
||||
int32_t imgDimension = NS_SIDE_IS_VERTICAL(s)
|
||||
? imageSize.width : imageSize.height;
|
||||
nscoord borderDimension = NS_SIDE_IS_VERTICAL(s)
|
||||
? borderImgArea.width : borderImgArea.height;
|
||||
int32_t imgDimension = SideIsVertical(s) ? imageSize.width : imageSize.height;
|
||||
nscoord borderDimension = SideIsVertical(s) ? borderImgArea.width : borderImgArea.height;
|
||||
double value;
|
||||
switch (coord.GetUnit()) {
|
||||
case eStyleUnit_Percent:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue