Commit cca0dd73 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Chromium LUCI CQ

RuleSet: change CompactRules and Trace to follow definition order

This CL adds missing rules member attributes and fixes the ordering in
both CompactRules() and Trace() to follow the ordering in the class
definition.

Change-Id: Icfa58c6a10c2a7e0c5a28807ed5af975693d9d5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2601361Reviewed-by: default avatarEric Willigers <ericwilligers@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#839211}
parent 137e4d6a
......@@ -531,12 +531,14 @@ void RuleSet::CompactRules() {
spatial_navigation_interest_class_rules_.ShrinkToFit();
universal_rules_.ShrinkToFit();
shadow_host_rules_.ShrinkToFit();
part_pseudo_rules_.ShrinkToFit();
visited_dependent_rules_.ShrinkToFit();
page_rules_.ShrinkToFit();
font_face_rules_.ShrinkToFit();
keyframes_rules_.ShrinkToFit();
counter_style_rules_.ShrinkToFit();
property_rules_.ShrinkToFit();
part_pseudo_rules_.ShrinkToFit();
counter_style_rules_.ShrinkToFit();
scroll_timeline_rules_.ShrinkToFit();
slotted_pseudo_element_rules_.ShrinkToFit();
}
......@@ -602,14 +604,14 @@ void RuleSet::Trace(Visitor* visitor) const {
visitor->Trace(spatial_navigation_interest_class_rules_);
visitor->Trace(universal_rules_);
visitor->Trace(shadow_host_rules_);
visitor->Trace(part_pseudo_rules_);
visitor->Trace(visited_dependent_rules_);
visitor->Trace(page_rules_);
visitor->Trace(font_face_rules_);
visitor->Trace(keyframes_rules_);
visitor->Trace(property_rules_);
visitor->Trace(counter_style_rules_);
visitor->Trace(scroll_timeline_rules_);
visitor->Trace(part_pseudo_rules_);
visitor->Trace(visited_dependent_rules_);
visitor->Trace(slotted_pseudo_element_rules_);
visitor->Trace(pending_rules_);
#ifndef NDEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment