Closed
Bug 1367245
Opened 7 years ago
Closed 7 years ago
stylo: StyleSheet::effective_rules recurses into import rules.
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 1357583
People
(Reporter: emilio, Unassigned)
References
Details
Which means that we'll add @import rules twice, in the case of stylo, where we have the import stylesheet also in the stylesheet list. I'm not sure if it should change I think we just want to not recurse, but that may require Servo changes. I found this while working in bug 1357583. I think my plan is to make it work moving the StylesheetSet into Stylist, or something like that...
Comment 1•7 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #0) > Which means that we'll add @import rules twice, in the case of stylo, where > we have the import stylesheet also in the stylesheet list. > > I'm not sure if it should change > > I think we just want to not recurse, but that may require Servo changes. I > found this while working in bug 1357583. Can we just conditionally compile that recursive behavior for servo builds?
Flags: needinfo?(emilio+bugs)
Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Bobby Holley (:bholley) (busy with Stylo) from comment #1) > (In reply to Emilio Cobos Álvarez [:emilio] from comment #0) > > Which means that we'll add @import rules twice, in the case of stylo, where > > we have the import stylesheet also in the stylesheet list. > > > > I'm not sure if it should change > > > > I think we just want to not recurse, but that may require Servo changes. I > > found this while working in bug 1357583. > > Can we just conditionally compile that recursive behavior for servo builds? We can, but I'd rather avoid it since it's a footgun.
Flags: needinfo?(emilio+bugs)
Comment 3•7 years ago
|
||
Ok, but how much work is the proper servo-side fix? IIUC this could cause us to do unnecessary work rebuilding the stylist, so if we can't quickly fix servo, I think we should conditionally compile.
Flags: needinfo?(emilio+bugs)
Reporter | ||
Comment 4•7 years ago
|
||
I'm fixing this for both in bug 1357583. Turns out import rules aren't in the list, but we were adding them twice for both stylo and servo.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(emilio+bugs)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•