From 676d177f1722c9e109af53065ad45f36a280d2c7 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 26 Apr 2017 10:41:07 -0500 Subject: [PATCH] Extra spec comments for style adjustments MozReview-Commit-ID: J6qxBpQ43Ax --- components/style/style_adjuster.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 6cd90d11ed3..fc00290d6b0 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -53,6 +53,8 @@ impl<'a> StyleAdjuster<'a> { } } + /// Apply the blockification rules based on the table in CSS 2.2 section 9.7. + /// https://drafts.csswg.org/css2/visuren.html#dis-pos-flo fn blockify_if_necessary(&mut self, layout_parent_style: &ComputedValues, skip_root_and_element_display_fixup: bool) { @@ -247,6 +249,7 @@ impl<'a> StyleAdjuster<'a> { } /// Adjusts the style to account for various fixups that don't fit naturally into the cascade. + /// When comparing to Gecko, this is similar to the work done by `nsStyleContext::ApplyStyleFixups`. pub fn adjust(mut self, layout_parent_style: &ComputedValues, skip_root_and_element_display_fixup: bool) {