aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2017-07-20 13:11:37 +0800
committerBoris Chiou <boris.chiou@gmail.com>2017-08-04 14:21:57 +0800
commit191c2a282b236b9acfaeb58185585d4a7d9a52b9 (patch)
treea4294ae6ae8393095e3fc7064f7b30878c26e88e /components/layout/construct.rs
parent4cc97746f239b70a196ce2929e38c1d4ffe353ef (diff)
downloadservo-191c2a282b236b9acfaeb58185585d4a7d9a52b9.tar.gz
servo-191c2a282b236b9acfaeb58185585d4a7d9a52b9.zip
Bug 1374233 - Part 2: Add NonNegativeAu.
Add values::computed::NonNegativeAu, so BorderSideWith could be computed to this non-negative Au, for the following properties: 1. outline-width 2. border-{*}-width 3. column-rule-width 4. -webkit-text-stroke-width MozReview-Commit-ID: ASHaB2F7VtM
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index c863219941e..c1643c9f92c 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -1860,10 +1860,10 @@ impl ComputedValueUtils for ComputedValues {
!padding.padding_right.is_definitely_zero() ||
!padding.padding_bottom.is_definitely_zero() ||
!padding.padding_left.is_definitely_zero() ||
- border.border_top_width != Au(0) ||
- border.border_right_width != Au(0) ||
- border.border_bottom_width != Au(0) ||
- border.border_left_width != Au(0)
+ border.border_top_width.0 != Au(0) ||
+ border.border_right_width.0 != Au(0) ||
+ border.border_bottom_width.0 != Au(0) ||
+ border.border_left_width.0 != Au(0)
}
}