diff --git a/layout/style/nsStyleCoord.h b/layout/style/nsStyleCoord.h index 15affa1dcf10..3489a75c8fe7 100644 --- a/layout/style/nsStyleCoord.h +++ b/layout/style/nsStyleCoord.h @@ -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]; }; diff --git a/layout/style/nsStyleStruct.h b/layout/style/nsStyleStruct.h index 08bd85d91ab1..7b9fed927e2e 100644 --- a/layout/style/nsStyleStruct.h +++ b/layout/style/nsStyleStruct.h @@ -2615,8 +2615,11 @@ private: // mCoordinates has coordinates for polygon or radii for // ellipse and circle. + // (top, right, bottom, left) for inset nsTArray mCoordinates; + // position of center for ellipse or circle Position mPosition; + // corner radii for inset (0 if not set) nsStyleCorners mRadius; };