aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix clamping of scroll position in window.scrollByMartin Robinson2017-05-111-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | For rightward and downward overflow the spec says: Let x be max(0, min(x, viewport scrolling area width - viewport width)). Let y be max(0, min(y, viewport scrolling area height - viewport height)). Previously, those operations were reversed, which created negative overflow even when the overflow direction was downward. This change ensures that Servo matches spec behavior.
* / Bug 1355343: Take all the snapshots into account. r=bholleyEmilio Cobos Álvarez2017-05-102-9/+43
|/ | | | | | | | | | | | | | | | | I've chosen this approach mainly because there's no other good way to guarantee the model is correct than holding the snapshots alive until a style refresh. What I tried before this (storing them in a sort of "immutable element data") is a pain, since we call into style from the frame constructor and other content notifications, which makes keeping track of which snapshots should be cleared an which shouldn't an insane task. Ideally we'd have a single entry-point for style, but that's not the case right now, and changing that requires pretty non-trivial changes to the frame constructor. MozReview-Commit-ID: FF1KWZv2iBM Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Stylo: Bug 1355408 - add support for @-moz-documentFernando Jiménez Moreno2017-05-091-0/+1
|
* Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)Simon Sapin2017-05-083-20/+20
|
* Auto merge of #16697 - cbrewster:history_throw, r=KiChjangbors-servo2017-05-042-12/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make History attributes and methods throw <!-- Please describe your changes on the following line: --> All History methods and attributes should throw a `SecurityError` if the document associated with the `History` object is not fully active. https://html.spec.whatwg.org/multipage/browsers.html#history-3 --- <!-- 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: --> - [ ] 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/16697) <!-- Reviewable:end -->
| * Make History attributes and methods throwConnor Brewster2017-05-022-12/+26
| |
* | Auto merge of #16706 - alicemaz:master, r=noxbors-servo2017-05-041-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump base64 to 0.4.2 <!-- Please describe your changes on the following line: --> we have just released a security patch for base64 (preventing integer overflow when sizing a buffer for encoded output). this bumps the version in the three Cargo.toml files that pull it in. there should be no observable difference in behavior, no non-malicious input should be able to trigger this state --- <!-- 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: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it is a small fix to a dependency with no practical difference in operation from previous. <!-- 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/16706) <!-- Reviewable:end -->
| * | Bump base64 to 0.4.2Alice Maz2017-05-031-1/+1
| | |
* | | Fix unsafe Heap constructor usage in DOM objects Imanol Fernandez2017-05-047-82/+80
| | |
* | | Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-03108-451/+353
|\ \ \
| * \ \ Auto merge of #16689 - servo:m5e, r=noxbors-servo2017-05-0392-423/+320
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Upgrade to html5ever 0.16 <!-- 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/16689) <!-- Reviewable:end -->
| | * | Upgrade to html5ever 0.16Simon Sapin2017-05-0292-423/+320
| | |/
| * / Fix up script and layout.Bobby Holley2017-05-0225-25/+33
| |/
* / Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-0375-267/+226
|/
* Stop using unstable slice_patterns featureMatt Brubeck2017-05-012-4/+3
|
* Auto merge of #16658 - n0max:remove-index-size-error, r=emiliobors-servo2017-04-291-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove IndexSizeError in CanvasRenderingContext2D::drawImage <!-- Please describe your changes on the following line: --> The current spec don't expect the IndexSizeError if the rectangle is empty. --- <!-- 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 #10600 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes <!-- 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/16658) <!-- Reviewable:end -->
| * Remove IndexSizeError in CanvasRenderingContext2D::drawImagen0max2017-04-291-2/+2
| |
* | Auto merge of #16590 - MortimerGoro:texture_rgb, r=emiliobors-servo2017-04-281-28/+83
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix WebGL premultiplied alpha. Fix texImage2D calls with RGB images. Fix WebGL premultiplied alpha testcases. Fix broken textures in some WebGL demos (e.g. Three.js). This was caused by WebGL::texImage2D calls with RGB formats. Alpha must be removed from the rgba8 pixel vector before submitting the data to the GPU. --- <!-- 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/16590) <!-- Reviewable:end -->
| * | Fix WebGL premultiplied alpha. Fix texImage2D calls with RGB images.Imanol Fernandez2017-04-281-28/+83
| |/
* | Auto merge of #16609 - nox:quirks, r=Manishearth,emiliobors-servo2017-04-2713-17/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement unitless length quirk The Gecko side doesn't propagate its quirks mode yet. <!-- 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/16609) <!-- Reviewable:end -->
| * | Propagate quirks mode all the way to ParserContextAnthony Ramine2017-04-2712-16/+44
| | | | | | | | | | | | The quirks mode is still not properly propagated in geckolib.
| * | Make Stylist::quirks_mode hold a QuirksModeAnthony Ramine2017-04-261-1/+1
| | |
* | | Bug 1331047: Implement the new traversal semantics for stylo. r=bholley,hiroEmilio Cobos Álvarez2017-04-271-6/+6
|/ / | | | | | | | | MozReview-Commit-ID: 4BXx9JpGZKX Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* | Auto merge of #16618 - emilio:dirty-doc, r=noxbors-servo2017-04-261-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script: Ensure we don't suppress reflows when stylesheets are dirty. I suspect this will prevent some intermittentness in #16617 <!-- 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/16618) <!-- Reviewable:end -->
| * | script: Ensure we don't suppress reflows when stylesheets are dirty.Emilio Cobos Álvarez2017-04-261-0/+1
| | |
* | | Keep custom-ident and string separate in animation/keyframes name.Simon Sapin2017-04-261-7/+7
| | |
* | | Add initial style system support for @counter-style rulesSimon Sapin2017-04-261-0/+1
| | |
* | | Use CustomIdent for animation-name and @keyframesSimon Sapin2017-04-261-10/+4
|/ /
* | Fix various build warningsAaron Cunningham2017-04-244-0/+4
| | | | | | | | | | | | This should remove six separate warnings when building servo. One of the warnings was an unused mut, and the other were various dead code warnings
* | Auto merge of #16589 - servo:cssparserup, r=emiliobors-servo2017-04-241-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update to cssparser 0.13 https://github.com/servo/rust-cssparser/pull/140 <!-- 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/16589) <!-- Reviewable:end -->
| * | Update to cssparser 0.13Simon Sapin2017-04-251-1/+1
| |/
* | Auto merge of #16530 - metajack:kill-domrectlist, r=noxbors-servo2017-04-246-77/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove DOMRectList and use sequences instead. DOMRectList was removed last back in 2015. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=26200 for details. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they are covered by existing 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/16530) <!-- Reviewable:end -->
| * | Remove DOMRectList and use sequences instead.Jack Moffitt2017-04-196-77/+7
| | | | | | | | | | | | | | | DOMRectList was removed last back in 2015. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=26200 for details.
* | | Auto merge of #16592 - avadacatavra:globalscope, r=jdmbors-servo2017-04-247-8/+42
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added origin to globalscope <!-- Please describe your changes on the following line: --> Replaces #16561 --- <!-- 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: --> - [ ] 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/16592) <!-- Reviewable:end -->
| * | added origin to globalscopeddh2017-04-247-8/+42
| | |
* | | stylo: Add basic system font support, use for font-size and font-familyManish Goregaokar2017-04-211-1/+1
| | |
* | | Fix highp precision in shaders & Implement WebGL::GetShaderPrecisionFormatImanol Fernandez2017-04-213-2/+26
|/ /
* | Auto merge of #16531 - mrobinson:clip-id, r=glennwbors-servo2017-04-202-7/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate ScrollRootId Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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/16531) <!-- Reviewable:end -->
| * | Eliminate ScrollRootIdMartin Robinson2017-04-202-7/+9
| | | | | | | | | | | | | | | | | | | | | Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future.
* | | Auto merge of #16472 - cu1t:#14095-fix-xml-doc-namespaces, r=noxbors-servo2017-04-201-1/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix namespaces of elements created in XML documents Correctly implement following step of [Dom Document Spec](https://dom.spec.whatwg.org/#dom-document-createelement): > Let namespace be the HTML namespace, if the context object is an HTML document or context object’s content type is "application/xhtml+xml", and null otherwise. Note, this will make following test in `tests/wpt/web-platform-tests/dom/nodes/Document-constructor.html` to fail, so related .ini file added to mark it as such: ``` test(function() { var doc = new Document(); var a = doc.createElement("a"); // In UTF-8: 0xC3 0xA4 a.href = "http://example.org/?\u00E4"; assert_equals(a.href, "http://example.org/?%C3%A4"); }, "new Document(): URL parsing") ``` I'm not very familiar with specs, but from quick look at it, I'm doubtfull that it is valid in the first place. This is an "application/xml" document, so I don't see why it should encode a.href. Firefox also fails that. --- <!-- 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 #14095 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because because there are already tests which were being ignored <!-- 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/16472) <!-- Reviewable:end -->
| * | Fix namespaces of elements created in XML documentscu1t2017-04-191-1/+8
| | |
* | | Auto merge of #16519 - emilio:unused-import, r=emiliobors-servo2017-04-191-1/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | dom/medialist: remove unused import. <!-- 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/16519) <!-- Reviewable:end -->
| * | | dom/medialist: remove unused `Default` import.Emilio Cobos Álvarez2017-04-191-1/+0
| | | |
| * | | stylo: Add basic system font support, use for font-size and font-familyManish Goregaokar2017-04-181-1/+1
| | |/ | |/|
* | | Auto merge of #16495 - coalman:tidy-brace-alignment, r=emiliobors-servo2017-04-197-13/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make tidy check that opening and closing braces that begin a line do … …so with proper alignment. --- <!-- 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 #16486 (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/16495) <!-- Reviewable:end -->
| * | | Fix indentation errors in servo rust code that tidy now finds.coalman2017-04-187-13/+13
| |/ /
* / / Introduce SelectorInner and use it for top-level matching.Bobby Holley2017-04-182-6/+6
|/ / | | | | | | MozReview-Commit-ID: DxG6USsPIkh
* | Auto merge of #16497 - bjorn3:patch-1, r=noxbors-servo2017-04-171-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix indentation of a `}` <!-- Please describe your changes on the following line: --> Fix indentation of a `}` (see https://github.com/servo/servo/pull/16293/files/8dfef0416f8a67cd96087a75a9129b998469f7be#r111661247) --- <!-- 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: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because just an indentation change <!-- 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/16497) <!-- Reviewable:end -->
| * | Fix indentation of a `}`bjorn32017-04-171-1/+1
| | |
* | | Bug 1341372 - Part 2: Support has_css_transitions.Boris Chiou2017-04-171-0/+4
|/ / | | | | | | | | | | | | | | Add one FFI to check if there is any transition in CSSTransitionCollection. This will be used to check if we need to update transition and if we should compute the after-change style. MozReview-Commit-ID: 6HpVAtrx6Rc