aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Bump euclid to 0.14.Nicolas Silva2017-06-1415-80/+85
|
* Move ParsingMode into style_traits.Hiroyuki Ikezoe2017-06-148-12/+15
|
* style: Implement a more fine-grained invalidation method.Emilio Cobos Álvarez2017-06-132-5/+5
| | | | | | | | | | | This commit also removes the old restyle_hints module and splits it into multiple modules under components/style/invalidation/element/. The basic approach is to walk down the tree using compound selectors as needed, in order to do as little selector-matching as possible. Bug: 1368240 MozReview-Commit-ID: 2YO8fKFygZI
* Record whether an snapshot is recording a class attribute change or id change.Emilio Cobos Álvarez2017-06-131-0/+7
| | | | | | | | I'll use this information in order to get fewer dependencies out of the dependency set. Bug: 1368240 MozReview-Commit-ID: 5HlmKmSNO8p
* Bug 1331291 part 1 - Set stylesheet url_data correctly for import rule.Xidorn Quan2017-06-132-2/+3
|
* Classes/IDs case-sensitivity: get quirks mode from matching context.Simon Sapin2017-06-132-19/+3
|
* ID and class selectors are ASCII case-insensitive in quirks mode.Simon Sapin2017-06-123-22/+36
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1363778
* Hoist ApplicableDeclaration{Block,List} into a separate file.Bobby Holley2017-06-121-1/+1
| | | | MozReview-Commit-ID: EXnAzfyoZ1e
* Auto merge of #17254 - servo:webidl, r=jdmbors-servo2017-06-1218-315/+1180
|\ | | | | | | | | | | | | | | Update the WebIDL parser <!-- 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/17254) <!-- Reviewable:end -->
| * Update the WebIDL parserAnthony Ramine2017-06-0918-315/+1180
| |
* | stylo: Support :hover and :active quirkNazım Can Altınova2017-06-103-9/+15
| |
* | Thread ParseError return values through CSS parsing.Josh Matthews2017-06-0912-27/+40
|/
* Auto merge of #17077 - asajeffrey:constellation-no-root-browsing-context, ↵bors-servo2017-06-071-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=cbrewster Removed root browsing context from constellation <!-- Please describe your changes on the following line: --> Removed the special root browsing context from the constellation. --- <!-- 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 fix #13994 - [X] These changes do not require tests because this isn't visible from user code <!-- 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/17077) <!-- Reviewable:end -->
| * Removed root browsing context from constellation.Alan Jeffrey2017-06-071-3/+3
| |
* | Auto merge of #17219 - upsuper:currentcolor, r=Manishearth,birtlesbors-servo2017-06-071-8/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Support interpolation between currentcolor and numeric color This is the Servo side change of [bug 1345709](https://bugzilla.mozilla.org/show_bug.cgi?id=1345709). <!-- 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/17219) <!-- Reviewable:end -->
| * Merge CSSColor into Color.Xidorn Quan2017-06-081-7/+4
| |
| * Unify specified Color type between Stylo and Servo.Xidorn Quan2017-06-081-2/+1
| |
* | script: Move extended_filtering to the style crate.Cameron McCormack2017-06-082-60/+6
|/ | | | | We'll need to call it from the style crate in later patches, when matching :lang() against element snapshots.
* Auto merge of #17193 - asajeffrey:test-tidy-brace-count, r=jdmbors-servo2017-06-071-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Count number of braces on a line when checking spec links in test-tidy <!-- Please describe your changes on the following line: --> Allow more than one brace per line when checking spec links in test-tidy. We had problems caused by `if unsafe { ... } {`. --- <!-- 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 have tests. <!-- 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/17193) <!-- Reviewable:end -->
| * Count number of braces on a line in .Alan Jeffrey2017-06-071-0/+4
| |
* | Auto merge of #17212 - jryans:visited-selectors, r=emiliobors-servo2017-06-071-0/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stylo: Visited selectors for nested links https://bugzilla.mozilla.org/show_bug.cgi?id=1370358 <!-- 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/17212) <!-- Reviewable:end -->
| * | Log element during selector matchingJ. Ryan Stinnett2017-06-071-0/+6
| |/ | | | | | | MozReview-Commit-ID: D8eFyRCy5BR
* / Implemented the plumbing for paint worklets.Alan Jeffrey2017-06-077-3/+191
|/
* Add pref to force WebGL context creation failureBenjamin Dahse2017-06-061-0/+5
| | | | | The pref `webgl.testing.context_creation_error` will cause creation of a new WebGLRenderingContext to fail, iff set to true. Also update test expectation of `context_creation_error.html` to pass.
* Move the ancestor hashes out of Selector.Bobby Holley2017-06-052-4/+4
| | | | MozReview-Commit-ID: 5mipXnjgSED
* Auto merge of #17112 - cbrewster:custom_element_registry, r=jdmbors-servo2017-06-055-0/+467
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement custom element registry <!-- Please describe your changes on the following line: --> Implements https://html.spec.whatwg.org/multipage/#customelementregistry --- <!-- 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 fix #16753 (github issue number if applicable). <!-- Either: --> - [X] 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/17112) <!-- Reviewable:end -->
| * Add custom element registryConnor Brewster2017-06-055-0/+467
| |
* | style: Split stylesheets.rsEmilio Cobos Álvarez2017-06-047-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This file has become quite bloated lately. This commit deletes that file in favor of a set of submodules. The only noticeable change apart from code move, is converting deep_clone_foo methods into a trait. It also unifies logic related to different style rules in the same place. There's some missing work, specially related to font-face and counter-style, but I think this is worth landing in the meantime.
* | Auto merge of #15354 - cynicaldevil:manual-redirect, r=jdmbors-servo2017-06-021-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redirect document loads manually <!-- 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 fix #14596 . r? @jdm I ran some tests at random from the `navigating-across-documents` folder, and they are passing. <!-- 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/15354) <!-- Reviewable:end -->
| * | Redirect document loads manuallyNikhil Shagrithaya2017-05-311-0/+1
| |/
* | Use BorderSideWidth for outline-widthAnthony Ramine2017-06-021-1/+1
| |
* | fix double borrowing of image requestGregory Terzian2017-06-011-3/+1
|/
* Auto merge of #16238 - gterzian:implement_update_the_image_data, r=jdmbors-servo2017-05-301-98/+384
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement "update the image data" <!-- Please describe your changes on the following line: --> Spec compliant implementation of the [update the image data algorithm](https://html.spec.whatwg.org/multipage/embedded-content.html#update-the-image-data). Currently still a work in progress, the ['async src complete test`](https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/img.complete.html#L33) is still passing as it was before, even though I switched to the new code, so I guess that's something. @jdm I will be picking this up next weekend, I left a bunch of TODO and NOTES in the code, if you or someone else have time this week I would appreciate an initial scan and feedback. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #11517 (github issue number if applicable). <!-- Either: --> - [x] 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/16238) <!-- Reviewable:end -->
| * improve spec compliance of update the image dataGregory Terzian2017-05-251-98/+384
| |
* | EventSource: decode UTF-8 code points across network packetsSimon Sapin2017-05-271-5/+37
| |
* | Remove some usage of rust-encodingSimon Sapin2017-05-272-11/+5
| |
* | Decode UTF-8 code points across network packetsSimon Sapin2017-05-274-27/+63
| |
* | Auto merge of #16997 - asajeffrey:webdriver-browsing-contexts-not-pipelines, ↵bors-servo2017-05-262-17/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=jgraham Webdriver browsing contexts not pipelines <!-- Please describe your changes on the following line: --> At the moment, a webdriver session stores a `pipeline_id`s, which causes a mismatch with the spec, which asks a session to store a browsing context and a top-level browsing context. This PR fixes this mismatch. --- <!-- 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 do not require tests because we are not testing webdriver <!-- 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/16997) <!-- Reviewable:end -->
| * | Responding to review comments.Alan Jeffrey2017-05-261-1/+1
| | |
| * | Webdriver uses browsing context ids rather than pipeline ids.Alan Jeffrey2017-05-252-18/+14
| | |
* | | Auto merge of #16920 - synlestidae:servo-16705, r=asajeffreybors-servo2017-05-262-1/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement window.closed <!-- Please describe your changes on the following line: --> Implements #16705. window.closed should evaluate to true if BrowsingContext is discarded --- <!-- 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 fix #16705 (github issue number if applicable). <!-- Either: --> - [X] 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/16920) <!-- Reviewable:end -->
| * | Implement window.closedantunovicm2017-05-262-1/+8
| | |
* | | Auto merge of #17031 - MortimerGoro:update_webvr, r=emiliobors-servo2017-05-253-2/+46
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update rust-webvr <!-- Please describe your changes on the following line: --> Required for https://github.com/servo/servo/issues/16556 --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] 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/17031) <!-- Reviewable:end -->
| * | | Update rust-webvrImanol Fernandez2017-05-253-2/+46
| | | |
* | | | Look for relevant links while matchingJ. Ryan Stinnett2017-05-241-15/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust the matching process to look for a "relevant link" while matching. A "relevant link" is the element being matched if it is a link or the nearest ancestor link. Matching for links now depends on the `VisitedHandlingMode`, which determines whether all links match as if they are unvisited (the default) or if the relevant link matches as visited (and all others remain unvisited). If a relevant link is ever found for any selector, track this as part of the `MatchingContext` object. This is used in the next patch to determine if an additional match and cascade should be performed to compute the styles when visited. MozReview-Commit-ID: 3xUbRo7vpuD
* | | Rollup merge of #16885 - jonathanGB:master, r=jdmAnthony Ramine2017-05-231-2/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1270740 - remove requestAutocomplete reference <!-- Please describe your changes on the following line: --> I was in charge of removing the `requestAutocomplete` feature in [mozilla-central](https://bugzilla.mozilla.org/show_bug.cgi?id=1270740), and needed to remove a reference to that feature in the **servo** comments. The change, therefore, is really trivial. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because I simply removed a comment <!-- 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/16885) <!-- Reviewable:end -->
| * | | Bug 1270740 - remove requestAutocomplete referenceJonathan Guillotte-Blouin2017-05-151-2/+0
| | | |
* | | | Auto merge of #16979 - manfredbrandl:patch-1, r=emiliobors-servo2017-05-231-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove unused style::restyle_hints::RestyleReplacements <!-- Please describe your changes on the following line: --> remove unused style::restyle_hints::RestyleReplacements from line 134 --- <!-- 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 fix #16978 (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because removes only unused "use" <!-- 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/16979) <!-- Reviewable:end -->
| * | | | remove unused style::restyle_hints::RestyleReplacementsManfred Brandl2017-05-211-1/+1
| | | | | | | | | | | | | | | solve #16978
* | | | | Added a TopLevelBrowsingContextId type.Alan Jeffrey2017-05-226-37/+111
|/ / / /