Closed Bug 1347381 Opened 8 years ago Closed 8 years ago

stylo: Restyle is not triggered properly when changing condition text of media rule

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: xidorn, Assigned: emilio)

References

Details

Attachments

(2 files)

Attached file testcase (deleted) —
See the attached testcase. The call chain in the testcase is: ServoMediaRule::SetConditionText -> MediaList::SetMediaText -> ServoMediaList::SetText -> Servo_MediaList_SetText MediaList::SetMediaText calls MediaList::DoMediaChange to notify the document about the rule change, which is shared between Gecko and Stylo. I'm not sure what's going wrong here. The testcase is simplified from test_condition_text_assignment.html.
I have a patch that fixes the issue, I need to see if it's totally correct though.
Ended up being a lot simpler, patch incoming.
Attachment #8847733 - Flags: review?(cam) → review+
Blocks: 1336863
Assignee: nobody → emilio+bugs
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2ab0ae532ebb Tell Servo earlier about stylesheet changes. r=heycam
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8a86967a1349 Adjust test expectations to account for new passes. r=emilio
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Blocks: 1324621
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: