Blac Chyna was granted a temporary restraining order against her baby daddy Rob Kardashian at Los Angeles Superior Court on Monday. Chyna and celebrity attorney Lisa Bloom were all smiles as they left court arm-in-arm.

The 29-year-old reality star dressed in a smart white pantsuit with her hair dyed blond in a short bob.

Kardashian, 30, is accused of posting revenge p0rn pics of the former stripper on his now-deleted Instagram page. Chyna Bloom called the judge’s order a “total victory” for Chyna.

“We had a complete and total victory. The judge gave us everything we asked for, which is a set of very strong and enforceable restraining orders against Rob Kardashian,” Bloom said outside the courthouse. “Revenge p0rn is a form of domestic abuse, it is also a crime in California and 38 other states, and it is a civil wrong.”

Kardashian, who was represented by super lawyer Robert Shapiro, was not in court.

Shapiro, 74, told reporters that he and his client agreed to the restraining order for the sake of his and Chyna’s 8-month-old daughter, Dream.

“Our primary interest going forward for Mr. Kardashian is the health and welfare of the baby, and both parents are going to work toward that goal,” Shapiro said. “[We] offered our regrets for what has taken place in the past couple of days.”

Shapiro added that the baby was with Kardashian.

Photo by PPLF / BACKGRI