formatting: run clang-format-fix

This commit is contained in:
Jake Kenneally 2026-02-02 22:29:30 -05:00
parent f0ac68d26c
commit 9609606615
2 changed files with 5 additions and 5 deletions

View File

@ -20,8 +20,8 @@ struct BlockStyle {
int16_t paddingLeft = 0; // treated same as margin for rendering int16_t paddingLeft = 0; // treated same as margin for rendering
int16_t paddingRight = 0; // treated same as margin for rendering int16_t paddingRight = 0; // treated same as margin for rendering
int16_t textIndent = 0; int16_t textIndent = 0;
bool textIndentDefined = false; // true if text-indent was explicitly set in CSS bool textIndentDefined = false; // true if text-indent was explicitly set in CSS
bool textAlignDefined = false; // true if text-align was explicitly set in CSS bool textAlignDefined = false; // true if text-align was explicitly set in CSS
// Combined horizontal insets (margin + padding) // Combined horizontal insets (margin + padding)
[[nodiscard]] int16_t leftInset() const { return marginLeft + paddingLeft; } [[nodiscard]] int16_t leftInset() const { return marginLeft + paddingLeft; }

View File

@ -75,8 +75,8 @@ struct CssPropertyFlags {
paddingRight(0) {} paddingRight(0) {}
[[nodiscard]] bool anySet() const { [[nodiscard]] bool anySet() const {
return textAlign || fontStyle || fontWeight || textDecoration || textIndent || marginTop || marginBottom || marginLeft || return textAlign || fontStyle || fontWeight || textDecoration || textIndent || marginTop || marginBottom ||
marginRight || paddingTop || paddingBottom || paddingLeft || paddingRight; marginLeft || marginRight || paddingTop || paddingBottom || paddingLeft || paddingRight;
} }
void clearAll() { void clearAll() {
@ -95,7 +95,7 @@ struct CssStyle {
CssFontWeight fontWeight = CssFontWeight::Normal; CssFontWeight fontWeight = CssFontWeight::Normal;
CssTextDecoration textDecoration = CssTextDecoration::None; CssTextDecoration textDecoration = CssTextDecoration::None;
CssLength textIndent; // First-line indent (deferred resolution) CssLength textIndent; // First-line indent (deferred resolution)
CssLength marginTop; // Vertical spacing before block CssLength marginTop; // Vertical spacing before block
CssLength marginBottom; // Vertical spacing after block CssLength marginBottom; // Vertical spacing after block
CssLength marginLeft; // Horizontal spacing left of block CssLength marginLeft; // Horizontal spacing left of block