aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* script: Stop reallocating so much when converting DOM strings to JSPatrick Walton2015-09-271-1/+2
| | | | | | values. `size_hint()` in `utf16_units()` seems busted, so we do it ourselves.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-2412-61/+51
|
* Remove deprecated 'creator' WebIDL attributeCorey Farwell2015-09-212-6/+0
| | | | According to @Ms2ger, the 'creator' attribute was merged into 'setter'
* Python 'is' operator should not be used to check valueCorey Farwell2015-09-201-3/+3
| | | | 'is' checks reference. '==' checks value
* Remove parens around Python 'assert' statementCorey Farwell2015-09-201-7/+7
| | | | 'assert' is a statement, not a function
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-1912-39/+19
| | | | This merges import blocks that were reported by tidy as unmerged.
* Issue #7390 correct the order of mod declarationHugo Thiessard2015-09-181-7/+6
|
* Implement a global_object_for_reflector method.Ms2ger2015-09-161-0/+5
|
* Remove the outdated no_move annotation from GlobalRoot.Ms2ger2015-09-161-1/+0
|
* Auto merge of #7606 - nox:move-typeid, r=jdmbors-servo2015-09-137-6/+45
|\ | | | | | | | | | | | | | | | | | | Move the type_id fields to DOMClass Cc @michaelwu. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7606) <!-- Reviewable:end -->
| * Introduce [Abstract] to mark non-leaf interfacesAnthony Ramine2015-09-134-2/+16
| | | | | | | | | | | | | | Some interfaces like Node, CharacterData and HTMLTableCellElement are never instantiated directly, only their descendant interfaces are. Those are marked with [Abstract] to set their type_id to None instead of having dummy values in the TypeId enums.
| * Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-124-5/+30
| |
* | Stop implementing Reflectable for JS<T> (fixes #2285).Ms2ger2015-09-132-13/+6
| | | | | | | | It's not generally safe to expose the contents of a JS<T>.
* | Stop requiring that the type argument to RootedVec implements Reflectable.Ms2ger2015-09-131-8/+6
|/ | | | It is sufficient that it implements JSTraceable.
* Link to Servo issue instead of Gecko bugCorey Farwell2015-09-101-1/+1
|
* Use OS-agnostic filesystem paths in PythonCorey Farwell2015-09-082-5/+5
| | | | This will eventually need to be done for #1908
* Auto merge of #7547 - connorimes:move_script_profiling, r=jdmbors-servo2015-09-081-2/+4
|\ | | | | | | | | | | | | | | | | | | Combine script profiling with profile crates. Fixes #7514. The script crate had its own built-in profiling which was basically doing the same thing as the profile crate. This wraps the internal profiling around the main profile functionality. Script-related tasks are now added to the ProfilerCategory enum. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7547) <!-- Reviewable:end -->
| * Combine script profiling with profile crates. Fixes #7514.Connor Imes2015-09-041-2/+4
| |
* | Remove needless returnsManish Goregaokar2015-09-043-11/+11
| |
* | Elide most 'b lifetimesManish Goregaokar2015-09-041-1/+1
| |
* | Elide most 'a lifetimesManish Goregaokar2015-09-044-16/+16
|/
* Allow 'script' component to enter a 'built' stateCorey Farwell2015-09-022-6/+9
| | | | | | | | | | | | | After this pull request merged: https://github.com/servo/servo/pull/7209 the 'script' component would never enter a 'built' state. In other words, if one calls `mach build`, lets it complete, then calls `mach build` again, the 'script' component would rebuild even though we supposedly just built it. This was due to the `ParserResults.pkl` getting placed in the `components/script` directory instead of the output directory, causing cargo to think that there were unbuilt files.
* Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)Simon Sapin2015-09-022-6/+6
|
* Auto merge of #7209 - frewsxcv:codegen-build-cleanup, r=metajackbors-servo2015-09-012-80/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup/refactor build scripts for DOM codegen Prior to this commit, the script codegen makefile relied on an intermediary pythonpath.py file that handled python dependencies and incorporated a couple hacks to get the codegen building working. This commit removes that intermediary file and attempts to make the script codegen build process cleaner. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7209) <!-- Reviewable:end -->
| * Cleanup/refactor build scripts for DOM codegenCorey Farwell2015-08-142-80/+15
| | | | | | | | | | | | | | | | Prior to this commit, the script codegen makefile relied on an intermediary pythonpath.py file that handled python dependencies and incorporated a couple hacks to get the codegen building working. This commit removes that intermediary file and attempts to make the script codegen build process cleaner.
| * Add missing parameter to usageString in GlobalGen.pyCorey Farwell2015-08-141-1/+1
| |
* | Auto merge of #7468 - JoshTheGoldfish:Issue7460, r=jdmbors-servo2015-09-011-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Making test-tidy check that = have space after them For issue #7460. Need to ensure compatibility with #7390. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7468) <!-- Reviewable:end -->
| * | make test-tidy check that = have space after themerneyja2015-09-011-1/+1
| | |
* | | Auto merge of #7466 - nox:rootedvec-from-iter, r=Ms2gerbors-servo2015-08-311-1/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Implement FromIterator<Root<A>> for RootedVec<JS<A>> (fixes #5117) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7466) <!-- Reviewable:end -->
| * | Implement FromIterator<Root<A>> for RootedVec<JS<A>> (fixes #5117)Anthony Ramine2015-08-311-1/+13
| | |
* | | Auto merge of #7455 - nox:rm-unused-warnings, r=jdmbors-servo2015-08-302-29/+31
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Do not allow some warnings in codegen anymore This fixes #395. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7455) <!-- Reviewable:end -->
| * | Do not allow unreachable_code in codegen anymoreAnthony Ramine2015-08-302-6/+2
| | |
| * | Do not allow dead_code in codegen anymoreAnthony Ramine2015-08-302-5/+2
| | |
| * | Do not allow unused_parens in codegen anymoreAnthony Ramine2015-08-302-6/+5
| | |
| * | Do not allow unused_mut in codegen anymoreAnthony Ramine2015-08-302-9/+10
| | |
| * | Do not allow unused_unsafe in codegen anymoreAnthony Ramine2015-08-302-9/+18
| | |
* | | Auto merge of #7432 - jdm:dashedprops, r=noxbors-servo2015-08-302-13/+31
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Add dashed CSS properties in CSSStyleDeclaration <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7432) <!-- Reviewable:end -->
| * | Add infrastructure for supporting dashed CSS property names on ↵Josh Matthews2015-08-282-13/+31
| | | | | | | | | | | | CSSStyleDeclaration.
* | | Prefer JSTrue/JSFalse to 1/0Corey Farwell2015-08-281-9/+9
|/ /
* | Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-1/+1
| |
* | Remove helper traitsAnthony Ramine2015-08-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* | Auto merge of #7361 - jxs:master, r=Ms2gerbors-servo2015-08-271-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | make dom_struct derive HeapSizeOf closes #7357 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7361) <!-- Reviewable:end -->
| * | make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-0/+1
| | | | | | | | | | | | closes #7357
* | | Auto merge of #7387 - Yoric:2240-2, r=Ms2gerbors-servo2015-08-271-22/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2240 - NamedGetter and NamedSetter do not assume that the arg is named `name` I'm not totally sure about how to test this. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7387) <!-- Reviewable:end -->
| * | | Fixes #2240 - NamedGetter and NamedSetter do not assume that the argument is ↵David Rajchenbach-Teller2015-08-261-22/+29
| | | | | | | | | | | | | | | | named `name`
* | | | Auto merge of #7395 - Manishearth:doc-inherit, r=noxbors-servo2015-08-261-3/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document InheritTypes <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7395) <!-- Reviewable:end -->
| * | | | Document InheritTypesManish Goregaokar2015-08-271-3/+11
| | | | |
* | | | | Remove get_unsound_ref_forever functionJoão Oliveira2015-08-271-5/+0
| |_|/ / |/| | | | | | | | | | | closes #7383
* | | | Auto merge of #7397 - Manishearth:doublepointer-meet-fire, r=noxbors-servo2015-08-261-13/+0
|\| | | | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Remove doublepointer in VirtualMethods, and from_borrowed_ref <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7397) <!-- Reviewable:end -->
| * | remove to_borrowed_ref, fix ActivatableManish Goregaokar2015-08-271-8/+0
| | |