Files
servo/components/script/dom
bors-servo 559c0d1d90 Auto merge of #17501 - jyc:Text-children_changed, r=emilio
Have CharacterData call children_changed on its parent when data is set.

**Can't run WPT on my computer, so pushing here to run tests 😢**

Have CharacterData.SetData call children_changed on its parent when
data is set (if it is a Text node) so that HTMLStyleElement parents can
re-parse. Add variant ChildrenMutation::Text for it to use as the
mutation.

This fixes an issue where an empty <style> element's data is set but the
style is not updated. An HTMLStyleElement parent re-parses in its
children_changed implementation.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes are part of a series to fix #17182 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17501)
<!-- Reviewable:end -->
2017-07-13 14:00:13 -07:00
..
2016-10-11 19:44:32 +02:00
2017-05-15 18:15:38 -04:00
2017-05-27 13:34:23 +02:00
2017-06-18 13:21:49 +02:00
2017-06-14 16:00:59 +02:00
2017-06-23 21:10:01 -06:00
2017-06-14 09:51:36 +09:00
2017-05-02 17:35:45 -07:00
2017-05-02 17:35:45 -07:00
2017-05-02 17:35:45 -07:00
2017-05-02 17:35:45 -07:00
2017-06-04 21:50:09 +02:00
2017-05-02 17:35:45 -07:00
2017-06-04 21:50:09 +02:00
2017-03-07 17:37:44 +08:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-14 16:00:59 +02:00
2017-06-14 16:00:59 +02:00
2017-06-18 13:21:49 +02:00
2017-06-23 21:10:01 -06:00
2017-03-07 17:37:44 +08:00
2017-06-14 16:00:59 +02:00
2017-05-02 19:24:28 +02:00
2017-07-05 22:38:37 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-04-12 15:43:14 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-07-06 19:37:55 +02:00
2017-06-18 13:21:49 +02:00
2017-07-05 22:38:29 +02:00
2017-07-11 17:28:56 -05:00
2017-05-02 19:24:28 +02:00
2017-07-05 22:38:29 +02:00
2016-12-14 18:04:37 -06:00
2017-06-18 13:21:49 +02:00
2017-03-07 17:37:44 +08:00
2017-05-17 09:01:05 -05:00
2017-06-18 13:21:49 +02:00
2017-06-22 23:48:07 -07:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-09 13:57:30 +02:00
2017-05-17 09:01:05 -05:00
2017-06-18 13:21:49 +02:00
2017-03-13 21:57:50 +08:00
2017-05-02 19:24:28 +02:00
2017-07-05 22:38:29 +02:00
2017-07-05 22:38:29 +02:00
2017-07-05 22:38:37 +02:00
2017-07-05 22:38:37 +02:00
2017-07-05 22:38:37 +02:00
2017-07-05 22:38:37 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00
2017-06-18 13:21:49 +02:00