mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
8ac9ba75d3
commit
dc45507308
@ -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];
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user