Bug 1295662 - Document layout of nsStyleCorners and inset StyleBasicShape; r=heycam

MozReview-Commit-ID: DYwaSnLvWJK

--HG--
extra : rebase_source : 1b03f8b3ed067897acbeed0719bdc03ca12f55fa
This commit is contained in:
Manish Goregaokar 2016-08-17 15:39:34 +05:30
parent 8ac9ba75d3
commit dc45507308
2 changed files with 9 additions and 1 deletions

View File

@ -338,7 +338,7 @@ protected:
};
/**
* Class that represents a set of top-left/top-right/bottom-left/bottom-right
* Class that represents a set of top-left/top-right/bottom-right/bottom-left
* nsStyleCoord pairs. This is used to hold the dimensions of the
* corners of a box (for, e.g., border-radius and outline-radius).
*/
@ -367,6 +367,11 @@ public:
inline void Set(uint8_t aHalfCorner, const nsStyleCoord& aCoord);
protected:
// Stored as:
// top-left.x, top-left.y,
// top-right.x, top-right.y,
// bottom-right.x, bottom-right.y,
// bottom-left.x, bottom-left.y
nsStyleUnit mUnits[8];
nsStyleUnion mValues[8];
};

View File

@ -2615,8 +2615,11 @@ private:
// mCoordinates has coordinates for polygon or radii for
// ellipse and circle.
// (top, right, bottom, left) for inset
nsTArray<nsStyleCoord> mCoordinates;
// position of center for ellipse or circle
Position mPosition;
// corner radii for inset (0 if not set)
nsStyleCorners mRadius;
};