aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Report use statements that use {} with only one entryCullen Rhodes2016-05-2718-19/+18
|
* Auto merge of #11423 - servo:jdm-patch-2, r=mbrubeckbors-servo2016-05-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update spec link for timers. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes do not require tests because documentation only --- The specification link was broken. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11423) <!-- Reviewable:end -->
| * Update spec link for timers.Josh Matthews2016-05-251-1/+1
| |
* | Remove unused importConnor Brewster2016-05-261-1/+0
| |
* | Auto merge of #11432 - ab22:11402-implement-window-alert, r=KiChjangbors-servo2016-05-262-1/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 11402 implement window alert 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 #11402 Either: - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11432) <!-- Reviewable:end -->
| * | implement window alert with no paramsAbelardo E. Mendoza2016-05-262-1/+6
| |/
* | Auto merge of #11430 - ↵bors-servo2016-05-262-3/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asajeffrey:constellation-record-mozbrowser-parent-info, r=ConnorGBrewster Record the frame type (IFrame or MozBrowserIFrame) in the pipeline. 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 this is a refactoring Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. This is a first step towards supporting the notion of multiple top-level browsing contexts in Servo, by making the constellation aware of which content is loaded in a mozbrowser iframe. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11430) <!-- Reviewable:end -->
| * | Record the frame type (IFrame or MozBrowserIFrame) in the pipeline.Alan Jeffrey2016-05-262-3/+5
| | |
* | | Auto merge of #11367 - szeged:included_services, r=jdmbors-servo2016-05-262-1/+61
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend WebBluetooth with included services - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes do not require tests because there are no webbluetooth tests yet <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11367) <!-- Reviewable:end -->
| * | | Add included servicesAttila Dusnoki2016-05-242-1/+61
| | | |
* | | | Auto merge of #11372 - tschneidereit:parent-js-runtime-for-workers, r=noxbors-servo2016-05-262-5/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass a parent JS runtime when creating DOM Worker runtimes This enables sharing data with the parent runtime, decreasing memory usage and startup time. Also contains an update to current rust-mozjs, because that's required for this to work. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes don't fix a github issue Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because the changes don't change any observable behavior <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11372) <!-- Reviewable:end -->
| * | | | Pass a parent JS runtime when creating DOM Worker runtimesTill Schneidereit2016-05-242-5/+13
| | |/ / | |/| | | | | | | | | | This enables sharing data with the parent runtime, decreasing memory usage and startup time. Also contains an update to current rust-mozjs, because that's required for this to work.
* | | | Auto merge of #11370 - Ms2ger:IterableContext, r=jdmbors-servo2016-05-252-14/+6
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the IterableContext trait. 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 --faster` 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 refactoring Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. It serves no purpose. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11370) <!-- Reviewable:end -->
| * | | Remove the IterableContext trait.Ms2ger2016-05-242-14/+6
| |/ / | | | | | | | | | It serves no purpose.
* | | Auto merge of #11410 - Ms2ger:script-listener-thread, r=noxbors-servo2016-05-252-23/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the script listener thread. 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 --faster` 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 refactoring 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11410) <!-- Reviewable:end -->
| * | | Remove the script listener thread (fixes #11345).Ms2ger2016-05-252-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needed a separate thread in the chrome process because communication to the compositor is done through a trait object, and cross-process virtual calls are forbidden. Also, the fact that these messages are ultimately handled by the compositor is an implementation detail; conceptually, the relevant constellation is supposed to handle these messages. So instead, the script thread will now send the messages to the constellation, which will ask the compositor to handle them.
* | | | Restoring node dirty calls after properties are set to trigger mutationsDavid Raifaizen2016-05-251-4/+11
| | | |
* | | | Removed mutation calls from sync_property_with_attrs_style method in order ↵David Raifaizen2016-05-252-10/+23
| | | | | | | | | | | | | | | | to avoid reparsing serialized output
* | | | Changing update_inline_style to process multiple declarations at once to ↵David Raifaizen2016-05-252-19/+27
| | | | | | | | | | | | | | | | handle shorthand serialization better
* | | | Less cloning and dynamic dispatch.Simon Sapin2016-05-252-7/+18
| | | |
* | | | Shorthand serialization now takes iterators instead of array slice as argumentDavid Raifaizen2016-05-251-2/+2
| | | |
* | | | Converted serialization methods to implement the to_css trait, writing to ↵David Raifaizen2016-05-252-8/+7
| | | | | | | | | | | | | | | | string buffers to save string allocations for every result
* | | | Making fixes based on suggestions from nox and SimonSapinDavid Raifaizen2016-05-251-4/+5
| | | |
* | | | Added sync_property_with_attrs_style method to serialize style string when ↵David Raifaizen2016-05-251-62/+102
| | | | | | | | | | | | | | | | inline style is changed
* | | | Removed previously copied serialize_shorthand method as well as unnecessary ↵David Raifaizen2016-05-251-35/+3
|/ / / | | | | | | | | | calls to document.content_changed
* | | Auto merge of #11366 - Ms2ger:css_errors_store, r=SimonSapinbors-servo2016-05-251-8/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop storing CSS errors on the Document. 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 --faster` 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 removing dead code Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. They are never read. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11366) <!-- Reviewable:end -->
| * | | Stop storing CSS errors on the Document.Ms2ger2016-05-241-8/+0
| |/ / | | | | | | | | | They are never read.
* | | Auto merge of #11368 - izgzhen:fix-filemanager-exit, r=asajeffreybors-servo2016-05-241-2/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix FileManager thread panic and other misc improvements - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] There are tests for these changes Changes: - Add shut down logic for FileManager thread - Add an unit test for filemanager_thread <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11368) <!-- Reviewable:end -->
| * | | Fix FileManager thread panic and other misc improvementsZhen Zhang2016-05-241-2/+0
| | | | | | | | | | | | | | | | | | | | - Add shut down logic for FileManager thread - Add an unit test for filemanager_thread
* | | | Auto merge of #10796 - servo:character-data-surrogates, r=noxbors-servo2016-05-241-24/+92
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make /dom/nodes/CharacterData-surrogates.html not panic. It now fails since `DOMString` is currently based on `std::string::String` on the Rust side, which is strictly well-formed UTF-8 and can not contain unpaired surrogate code points. Fixes #10780 r? @Ms2ger <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10796) <!-- Reviewable:end -->
| * | | | Make /dom/nodes/CharacterData-surrogates.html not panic.Simon Sapin2016-05-241-24/+92
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | It now fails since DOMString is currently based on std::string::String on the Rust side, which is strictly well-formed UTF-8 and can not contain unpaired surrogate code points. Fixes #10780
* | | | Auto merge of #11287 - heycam:moz-binding, r=bholleybors-servo2016-05-244-4/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support -moz-binding in geckolib 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 --faster` 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 changes target stylo 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11287) <!-- Reviewable:end -->
| * | | | Add an extra data field to ParserContext.Cameron McCormack2016-05-244-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | This will be used for passing Gecko-specific information through the CSS parser in stylo.
* | | | | Parse HTMLInputElement attributesKeith Yeung2016-05-241-24/+25
| |/ / / |/| | |
* | | | Move DOMString back to scriptAnthony Ramine2016-05-24166-261/+457
| |/ / |/| | | | | | | | This entirely removes the 'non-geckolib' feature of the util crate.
* | | Auto merge of #11147 - danlrobertson:webgl-tex, r=emiliobors-servo2016-05-233-102/+248
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Impl copyTexImage2D and copyTexSubImage2D - [X] `./mach build` does not report any errors - [X] `./mach test-tidy` does not report any errors - [x] There are tests for these changes Implement copyTexImage2D and copyTexSubImage2D for WebGLRenderingContext. Feedback would be appreciated. I did my best to follow the [spec](https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8). Please let me know if I missed anything. I couldn't find tests for this. Let me know if I should create one. I'm more than happy to do so. As always any feedback, comments,or critiques are very welcome :smile: Part of #10209 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11147) <!-- Reviewable:end -->
| * | | Impl copyTexImage2D and copyTexSubImage2DDaniel Robertson2016-05-233-102/+248
| | | | | | | | | | | | | | | | | | | | Implement copyTexImage2D and copyTexSubImage2D for WebGLRenderingContext.
* | | | Auto merge of #11338 - Ms2ger:compositor-refcell, r=noxbors-servo2016-05-231-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take ScriptThread::compositor out of its RefCell. 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 --faster` 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 refactoring Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. There's no reason for it; IpcSender::send takes &self. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11338) <!-- Reviewable:end -->
| * | | | Take ScriptThread::compositor out of its RefCell.Ms2ger2016-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | There's no reason for it; IpcSender::send takes &self.
* | | | | Auto merge of #11324 - dzbarsky:sample_coverage, r=noxbors-servo2016-05-232-1/+6
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement SampleCoverage 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 --faster` 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 _____ 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11324) <!-- Reviewable:end -->
| * | | | Implement SampleCoverageDavid Zbarsky2016-05-222-1/+6
| | |/ / | |/| |
* | | | Auto merge of #11341 - nox:raf, r=pcwaltonbors-servo2016-05-231-13/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a simple Vec for the animation frame list Adding an animation frame list is now just pushing a new pair onto the vector, while canceling one is setting its callback to None. This means we can't send NoAnimationCallbacksPresent anymore to the constellation when all entries were cancelled, but I'm not sure that's very important anyway. The good downside of this change is that when running the callbacks, if no new one was queued during their execution, we can just swap back the original Vec into the Document in run_the_animation_frame_callbacks, thus reusing the original allocation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11341) <!-- Reviewable:end -->
| * | | | Use a simple Vec for the animation frame listAnthony Ramine2016-05-231-13/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding an animation frame list is now just pushing a new pair onto the vector, while canceling one is setting its callback to None. This means we can't send NoAnimationCallbacksPresent anymore to the constellation when all entries were cancelled, but I'm not sure that's very important anyway. The good downside of this change is that when running the callbacks, if no new one was queued during their execution, we can just swap back the original Vec into the Document in run_the_animation_frame_callbacks, thus reusing the original allocation.
* | | | Auto merge of #11333 - Manishearth:submit-submit-button, r=noxbors-servo2016-05-233-5/+46
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include <button type=submit> data whilst constructing the form dataset This makes it possible to close things in github (see https://github.com/Manishearth/mitochondria/issues/1) - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors Either: - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11333) <!-- Reviewable:end -->
| * | | Include <button type=submit> data whilst constructing the form datasetManish Goregaokar2016-05-233-5/+46
| |/ /
* | | Auto merge of #11225 - izgzhen:patch-input-element-file, r=Manishearthbors-servo2016-05-236-12/+84
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement file related functionalities in htmlinputelement and related - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes is related to #11131 - [x] These changes do not require tests because it is a partial implementation 1. Improve the `filemanager_thread` by adding type string and create `SelectedFile` 2. Fill several gaps in `htmlinputelement` implementation related to file type 3. Improve the `File` interface to accommodate the above changes 4. Integrate changes introduced by PR #11189 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11225) <!-- Reviewable:end -->
| * | Implement file-type functionalities in htmlinputelement and relatedZhen Zhang2016-05-236-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | Changes include: - Implement file selection and other DOM behaviours in htmlinputelement - Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads - Improve filemanager_thread, including adding type_string field to SelectedFile - Improve interfaces in FileList/File/Blob to accommodate the above changes
* | | Fix the doc on inheritance and castingAnthony Ramine2016-05-211-5/+5
| | |
* | | Auto merge of #10961 - creativcoder:custom_response_iface, r=jdmbors-servo2016-05-217-21/+132
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding interface for custom responses Fixes #10960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10961) <!-- Reviewable:end -->
| * | | adding interface for custom responsesRahul Sharma2016-05-207-21/+132
| | | |