aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
...
* Make (dictionary)::empty() safeManish Goregaokar2018-07-062-10/+50
| | | | | | | | | It currently works by constructing from null (which will throw a runtime error if there are non-defaultable members). This changes it so that we no longer need a JSContext to construct this, so it can be safely constructed. In the case of non-defaultable members, this method simply does not exist.
* Auto merge of #21118 - servo:webgl, r=emiliobors-servo2018-07-051-1/+2
|\ | | | | | | | | | | | | | | | | | | | | Store vertex attribs data in DOM and optimise GetVertexAttrib This is not an extremely useful change on its own but those things need to be stored on the DOM side to implement some draw checks anyway. <!-- 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/21118) <!-- Reviewable:end -->
| * Store active attribs in DOM and optimise active attributes APIsAnthony Ramine2018-07-051-1/+2
| |
* | Assert that DOM structs have the correct first fieldManish Goregaokar2018-07-032-1/+56
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOM structs embed their parent type as their first field. This introduces a `.parent()` method to the DOM struct that returns its first field, and codegens a type assert that ensures that `.parent()` returns the parent struct. This generates: On `#[dom_struct]`: ```rust impl HasParent for Type { type Parent = ParentType; fn as_parent(&self) -> ParentType { &self.first_field } } ``` In the codegen files: ```rust impl Type { fn __assert_parent_type(&self) { let _: &ParentType = self.as_parent(); } } ````
* Implement read methods on FileReaderSyncJonas Reinwald2018-06-041-0/+3
|
* Updated to mozjs v0.7.1.Alan Jeffrey2018-05-303-10/+10
|
* Implement history stateConnor Brewster2018-04-161-2/+2
|
* Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)Simon Sapin2018-04-091-1/+1
|
* Update the WebIDL parserAnthony Ramine2018-04-0312-244/+104
|
* Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-1/+2
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-2816-200/+262
|
* TextDecoder: streaming decode, ignoreBOMAndrew Shu2018-03-261-1/+4
| | | | | | https://encoding.spec.whatwg.org/#dom-textdecoder-decode https://encoding.spec.whatwg.org/#dom-textdecoder-ignorebom
* Unify argument auto rooting in codegenIgor Matuszewski2018-03-231-11/+8
|
* Adapt uniform[fv] and similar to accept typed array argsIgor Matuszewski2018-03-231-1/+5
|
* Use unsafe Heap::handle wherever neededIgor Matuszewski2018-03-231-1/+2
|
* Add safe `handle` function for rooted heap valuesIgor Matuszewski2018-03-231-2/+12
|
* Root `any` members in dictionariesIgor Matuszewski2018-03-163-17/+37
|
* Root JS object members in dictionariesIgor Matuszewski2018-03-161-5/+3
|
* Use helper `is_typed_array` functionIgor Matuszewski2018-03-141-5/+11
|
* Support nullable typed arrays in codegenIgor Matuszewski2018-03-141-2/+3
|
* WIP: Accept typed array arguments in codegenIgor Matuszewski2018-03-142-2/+64
|
* Support objects in WebIDL unionsIgor Matuszewski2018-03-132-13/+19
| | | | Fixes #17011
* remove mozbrowser codePaul Rouget2018-02-131-2/+2
|
* remove forcetouch supportPaul Rouget2018-02-111-2/+1
|
* style: Rename StylesheetSet to DocumentStylesheetSet.Emilio Cobos Álvarez2018-02-091-2/+2
| | | | MozReview-Commit-ID: 5Xl1eRLu1VF
* Make JSTraceable for DomRefCell<T> panic if cell is mutably borrowed (see ↵Anthony Ramine2018-01-262-13/+1
| | | | #19871)
* Auto merge of #19868 - CYBAI:specific-assertion, r=emiliobors-servo2018-01-253-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [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 it should not break anything <!-- 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/19868) <!-- Reviewable:end -->
| * Use specific negative assertion for DOM bindings utilsCYBAI2018-01-261-1/+1
| |
| * Use specific assertion for DOM binding refcountedCYBAI2018-01-261-1/+1
| |
| * Use specific assertion for DOM binding interfaceCYBAI2018-01-261-4/+4
| |
* | Make the private callback methods taking a raw this pointer unsafeAnthony Ramine2018-01-251-10/+12
| |
* | Kill dead callback codegen codeAnthony Ramine2018-01-251-61/+4
| |
* | Make callbacks' new methods unsafeAnthony Ramine2018-01-251-2/+2
|/ | | | They take raw pointers to contexts and objects.
* Use safe NonZero constructor instead of an explicit null checkSimon Sapin2018-01-221-2/+1
|
* Replace NonZero<*{const,mut} _> with std::ptr::NonNullSimon Sapin2018-01-222-32/+33
|
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-225-42/+7
|
* Auto merge of #19397 - cbrewster:create_element_for_token, r=jdm,noxbors-servo2018-01-171-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the create an element for token algorithm <!-- 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 #19392 and fix #19393 (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/19397) <!-- Reviewable:end -->
| * Add a check for when the js execution stack is emptyConnor Brewster2018-01-111-0/+6
| |
* | implement range input sanitizationtigercosmos2018-01-171-12/+33
|/
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-106-33/+33
| | | | https://github.com/rust-lang/rust/issues/46906
* input type=number validationsNathan2018-01-091-0/+10
|
* Auto merge of #19602 - tigercosmos:r1, r=KiChjangbors-servo2018-01-071-0/+92
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement valid DatetimeLocal input <!-- Please describe your changes on the following line: --> implement valid Date time Local input part of #19172 --- <!-- 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 #19587 fix #19603(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/19602) <!-- Reviewable:end -->
| * implement valid Date time Local inputtigercosmos2018-01-071-0/+92
| |
* | Root sequence<{any,object}> IDL arguments using CustomAutoRooterIgor Matuszewski2018-01-051-5/+38
|/ | | | Also pulls in mozjs 0.1.10 to support the change.
* implement valid week stringtigercosmos2017-12-171-1/+66
|
* Update euclid, azure, skia, offscreen_gl_context, plane-split, webrenderSimon Sapin2017-12-081-2/+2
|
* implement "Date type inputs", "Month type inputs"tigercosmos2017-12-051-0/+101
|
* Added time input sanitization:Simon Wörner2017-12-041-0/+71
| | | | | | - Implemented is_valid_time_string for DOMString. - Use is_valid_time_string for sanitize_value with time input. - Improved input type change test
* Fixed tidy-test errorsolmanz2017-11-171-5/+9
|
* Moved pop_current_element_queue() and push_new_element_queue() to ↵olmanz2017-11-163-11/+11
| | | | htmlconstructor.rs