diff options
author | Eric Atkinson <eatkinson@mozilla.com> | 2013-06-23 15:48:02 -0700 |
---|---|---|
committer | Eric Atkinson <eatkinson@mozilla.com> | 2013-06-24 16:07:02 -0700 |
commit | 94e7a86b7efe8b8c8d8ede0f3104c3893ff9a37a (patch) | |
tree | 30fb844e697e144127e978489a4d1a94f445b494 /src/components/main/layout/model.rs | |
parent | d3fe4f4e3ad2f627b1de0d6f50c8866edc5a5451 (diff) | |
download | servo-94e7a86b7efe8b8c8d8ede0f3104c3893ff9a37a.tar.gz servo-94e7a86b7efe8b8c8d8ede0f3104c3893ff9a37a.zip |
Added floats to the flow tree
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)) | |