diff --git a/components/style/cbindgen.toml b/components/style/cbindgen.toml index cda462d654e..fca08a8e2ea 100644 --- a/components/style/cbindgen.toml +++ b/components/style/cbindgen.toml @@ -90,14 +90,17 @@ item_types = ["enums", "structs", "typedefs"] // Defined in nsStyleCoord.h static constexpr inline StyleLengthPercentage Zero(); static inline StyleLengthPercentage FromAppUnits(nscoord); + inline CSSCoord LengthInCSSPixels() const; + private: + inline nscoord LengthComponent() const; + public: + inline float Percentage() const; inline bool HasPercent() const; inline bool ConvertsToLength() const; inline nscoord ToLength() const; inline bool ConvertsToPercentage() const; inline bool HasLengthAndPercentage() const; inline float ToPercentage() const; - inline CSSCoord LengthInCSSPixels() const; - inline float Percentage() const; inline CSSCoord ResolveToCSSPixels(CSSCoord aPercentageBasisInCSSPixels) const; template inline CSSCoord ResolveToCSSPixelsWith(T aPercentageGetter) const; inline nscoord Resolve(nscoord aPercentageBasis) const;