diff options
Diffstat (limited to 'src/components/main/layout/model.rs')
-rw-r--r-- | src/components/main/layout/model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/model.rs b/src/components/main/layout/model.rs index 37195aa757e..44bf3417a89 100644 --- a/src/components/main/layout/model.rs +++ b/src/components/main/layout/model.rs @@ -112,7 +112,7 @@ impl BoxModel { } /// Helper function to compute the border width in app units from the CSS border width. - priv fn compute_border_width(&self, width: CSSBorderWidth) -> Au { + pub fn compute_border_width(&self, width: CSSBorderWidth) -> Au { match width { CSSBorderWidthLength(Px(v)) | CSSBorderWidthLength(Em(v)) | @@ -126,7 +126,7 @@ impl BoxModel { } } - fn compute_padding_length(&self, padding: CSSPadding, content_box_width: Au) -> Au { + pub fn compute_padding_length(&self, padding: CSSPadding, content_box_width: Au) -> Au { match padding { CSSPaddingLength(Px(v)) | CSSPaddingLength(Pt(v)) | |