aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #18875 - servo:stable-js, r=nox,jdmbors-servo2017-10-1632-118/+148
|\ | | | | | | | | | | | | | | Remove the need for rust-mozjs to use unstable Rust features <!-- 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/18875) <!-- Reviewable:end -->
| * Update rust-mozjsSimon Sapin2017-10-161-11/+12
| |
| * Make usage of core_intrinsics optionalSimon Sapin2017-10-164-9/+10
| |
| * Make usage of unstable feature on_unimplemented optional.Simon Sapin2017-10-163-2/+4
| |
| * Remove usage of unstable features const_ptr_null and const_ptr_null_mutSimon Sapin2017-10-163-7/+4
| |
| * Don’t rely on unstable 'const fn's in rust-mozjs, so we can remove them.Simon Sapin2017-10-161-12/+10
| |
| * Replace uses of libcore with libstd in components/scriptSimon Sapin2017-10-168-14/+9
| |
| * Move remaining uses of NonZero to our nonzero crateSimon Sapin2017-10-164-4/+2
| |
| * Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-1621-69/+107
| |
* | Auto merge of #18592 - MortimerGoro:dom_texture, r=jdmbors-servo2017-10-166-2/+75
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement DOM to texture <!-- Please describe your changes on the following line: --> This is a prototype of the WebGL DOMToTexture feature. The API should be fine as a privileged extension for now due to security concerns. The working group has been investigating the viability of unprivileged usage but the spec is not ready yet. Demo video: https://www.youtube.com/watch?v=hpZqEM5hPao --- <!-- 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/18592) <!-- Reviewable:end -->
| * | Implement DOM to textureImanol Fernandez2017-10-166-2/+75
| |/
* | Auto merge of #18890 - glennw:update-wr-clip-text-aa, r=jdmbors-servo2017-10-161-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update WR (details below): * Add support for clip masks on text runs. * Fix atomic ordering of items with multiple shadows. * Update to bincode + ipc-channel with optimizations. * Fix some plane splitting precision errors. * Improve the anti-aliasing quality significantly. * Add internal ClipChain support. * Fix diacritic glyphs on Linux. <!-- 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/18890) <!-- Reviewable:end -->
| * Update WR (details below):Glenn Watson2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | * Add support for clip masks on text runs. * Fix atomic ordering of items with multiple shadows. * Update to bincode + ipc-channel with optimizations. * Fix some plane splitting precision errors. * Improve the anti-aliasing quality significantly. * Add internal ClipChain support. * Fix diacritic glyphs on Linux.
* | Remove use of unstable box syntax.Simon Sapin2017-10-16270-514/+580
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* | Auto merge of #18888 - tigercosmos:xml, r=jdmbors-servo2017-10-161-3/+28
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix #18776: use XML fragment serialization for innerHTML in XML documents <!-- Please describe your changes on the following line: --> I am not sure whether my solution is in the right way. @jdm Can you give some advises? --- <!-- 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 - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #18776 (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/18888) <!-- Reviewable:end -->
| * use XML fragment serialization for outerHTML in XML documentstigercosmos2017-10-161-1/+6
| |
| * use XML fragment serialization for innerHTML in XML documentstigercosmos2017-10-161-2/+22
| |
* | Auto merge of #18886 - servo:urls, r=SimonSapinbors-servo2017-10-158-56/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change AttrValue::Url to AttrValue::ResolvedUrl Things make more sense like this. <!-- 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/18886) <!-- Reviewable:end -->
| * | Change AttrValue::Url to AttrValue::ResolvedUrlAnthony Ramine2017-10-158-56/+27
| | | | | | | | | | | | | | | There is actually only one attribute that can use that, the one for <body background>.
* | | style: Hide LocalMatchingContext.Emilio Cobos Álvarez2017-10-141-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | This type is a lot of complexity related to a very specific thing such as the hover and active quirk. Instead of that, move `nesting_level` to `MatchingContext`, and simplify all this computing whether the quirk applies upfront, for each complex selector we test. This is less error-prone, and also allows simplifying more stuff in a bit.
* | Auto merge of #18838 - svanburen:remove_cssText, r=emiliobors-servo2017-10-142-12/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove cssText from CSSStyleValue Removed from associated .rs and .webidl <!-- Please describe your changes on the following line: --> Not much more to add - let me know if it needs additional changes. --- <!-- 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 #17379 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they remove a property that previously had no tests associated with it. <!-- 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/18838) <!-- Reviewable:end -->
| * | Remove cssText from CSSStyleValueStefan VanBuren2017-10-112-12/+0
| | | | | | | | | | | | Removed from associated .rs and .webidl
* | | Auto merge of #18867 - emilio:parse-hack, r=heycambors-servo2017-10-141-2/+6
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Dishonor display: -moz-box if -webkit-box was specified before This is a compatibility hack that Gecko supports that is apparently important for android. I want to remove it, but let's see... See https://bugzilla.mozilla.org/show_bug.cgi?id=1407701 for reference. <!-- 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/18867) <!-- Reviewable:end -->
| * | style: Be clearer about whether a declaration comes from parsing or not.Emilio Cobos Álvarez2017-10-141-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces DeclarationSource, to see if a declaration has been parsed or set from CSSOM in a declaration block. The Servo_DeclarationBlock_SetFoo and similar callers are changed to DeclarationSource::CssOm because their semantics are more CSSOM-y, but it shouldn't matter since they should all be checked before hand with Servo_DeclarationBlock_PropertyIsSet.
* | | Remove an unused import, fix a warning.Simon Sapin2017-10-131-2/+1
| | |
* | | style: Share code for Element::Closest.Emilio Cobos Álvarez2017-10-131-20/+12
| | |
* | | style: Share code for Element::Matches.Emilio Cobos Álvarez2017-10-131-12/+11
|/ /
* | Remove usage of unstable feature try_fromSimon Sapin2017-10-122-8/+7
| |
* | Remove usage of unstable feature ascii_ctypesSimon Sapin2017-10-112-4/+11
|/
* Auto merge of #18825 - servo:urls, r=emiliobors-servo2017-10-1112-73/+90
|\ | | | | | | | | | | | | | | Fix a bunch of URL-reflecting IDL attributes <!-- 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/18825) <!-- Reviewable:end -->
| * Fix the form action IDL attributesAnthony Ramine2017-10-114-30/+14
| | | | | | | | | | The returned string, if the attribute is present and non-empty, should be a URL resolved against the element's document's base URL.
| * Fix URL attributesAnthony Ramine2017-10-1110-43/+76
| | | | | | | | | | URL attributes should always use AttrValue::Url, and the input should be resolved against the document's base URL at setting time always.
* | Auto merge of #18820 - asajeffrey:update-swapper, r=wafflespeanutbors-servo2017-10-101-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated swapper to version 0.1 <!-- Please describe your changes on the following line: --> Update swapper to v0.1, which removes the skeptic dependency. --- <!-- 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 updating dependencies <!-- 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/18820) <!-- Reviewable:end -->
| * | Updated swapper to version 0.1Alan Jeffrey2017-10-101-1/+1
| | |
* | | Auto merge of #18808 - servo:error-location_, r=emiliobors-servo2017-10-101-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the current parser location for CSS error … rather than the start location of the current construct. This likely places the error just *after* of the unexpected token whereas before would be best, but that’s likely a much bigger change. See https://bugzilla.mozilla.org/show_bug.cgi?id=1378861 <!-- 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/18808) <!-- Reviewable:end -->
| * | Update to cssparser 0.22 (source location in error types)Simon Sapin2017-10-101-1/+1
| | |
* | | Implement a bit more of the "object" path when loading mediaAnthony Ramine2017-10-102-5/+21
| | |
* | | Properly abort any ongoing resource selection on loading a new mediaAnthony Ramine2017-10-101-8/+10
| | |
* | | Update HTMLMediaElement.webidl according to specAnthony Ramine2017-10-101-23/+15
|/ /
* | Auto merge of #18790 - upsuper:scope, r=emiliobors-servo2017-10-091-2/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support :scope pseudo-class This fixes [bug 1406817](https://bugzilla.mozilla.org/show_bug.cgi?id=1406817). <!-- 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/18790) <!-- Reviewable:end -->
| * | Support :scope pseudo-class in Element::{matches,closest} in ServoXidorn Quan2017-10-091-2/+7
| | |
* | | Auto merge of #18792 - tigercosmos:img, r=jdmbors-servo2017-10-091-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix #18472:outdated png crate: various panics <!-- Please describe your changes on the following line: --> fix #18472:outdated png crate: various panics --- - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #18472 <!-- 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/18792) <!-- Reviewable:end -->
| * | | fix #18472:outdated png crate: various panicstigercosmos2017-10-091-1/+1
| |/ /
* | | Auto merge of #18747 - jdm:serializing-childrenonly, r=jdmbors-servo2017-10-093-5/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Serializing childrenonly Rebased from #17896. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #14975 (github issue number if applicable). - [x] There are tests for these changes <!-- 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/18747) <!-- Reviewable:end -->
| * | ChildrenOnly -> ChildrenOnly(Option<QualName>)Jyotsna Prakash2017-10-073-5/+8
| | | | | | | | | | | | use this updated type from html5ever
* | | Auto merge of #18758 - stuartnelson3:stn/dynamic-body-bgcolor, r=emiliobors-servo2017-10-081-0/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for dynamic bgcolor change - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- 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/18758) <!-- Reviewable:end -->
| * | Add support for dynamic bgcolor changeStuart Nelson2017-10-051-0/+8
| | |
* | | Auto merge of #18743 - Eijebong:base64, r=jdmbors-servo2017-10-051-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump base64 to 0.6 This allows us to update hyper to 0.10.13 (closer to 0.11) - [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 they're just a version bump <!-- 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/18743) <!-- Reviewable:end -->
| * | | Bump base64 to 0.6Bastien Orivel2017-10-041-1/+1
| | | | | | | | | | | | | | | | This allows us to update hyper to 0.10.13 (closer to 0.11)
* | | | Auto merge of #18742 - servo:media-metadata, r=jdmbors-servo2017-10-053-32/+11
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some low-key media improvements This just makes our code fail more gracefully. <!-- 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/18742) <!-- Reviewable:end -->