aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmldocument.rs
Commit message (Collapse)AuthorAgeFilesLines
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-7/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-11/+11
|
* Format script componentchansuke2018-09-191-37/+46
|
* Updated content_type of Document and XMLDocument from DOCString to MimeNupur Baghel2018-02-091-2/+3
|
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-2/+3
|
* Use FetchCanceller for document loadsManish Goregaokar2017-11-221-1/+2
|
* Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-161-3/+3
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-11/+14
| | | | | | | | | | | | | | | | | | | | 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.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-4/+3
|
* Allow windows to share browsing contexts.Alan Jeffrey2017-01-281-6/+5
|
* The constellation notifies the script thread about documents becoming ↵Alan Jeffrey2017-01-271-0/+5
| | | | inactive, active and fully active.
* Pass the Document's origin to its constructor.Ms2ger2016-12-231-0/+5
| | | | CC #10963.
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Urlmageddon <!-- Please describe your changes on the following line: --> Still needs a bunch of code in net to be converted in order to get more advantage of this for images and stuff, but meanwhile this should help quite a bit with #13778. Still wanted to get this in. r? @SimonSapin <!-- 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/14246) <!-- Reviewable:end -->
| * Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
| |
* | script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-1/+2
|/ | | | rebase + marked the necessary new code as unsafe
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Use Option<T> to return from gettersAnthony Ramine2016-08-301-3/+2
| | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-301-1/+3
|
* script: Obtain referrer policy from headerAravind Gollakota2016-07-151-0/+1
|
* Implement Document.referrerNazım Can Altınova2016-07-141-1/+2
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Removed unused importsPer Lundberg2016-05-151-2/+2
| | | | This fixes #11185.
* Use upcast() in XMLDocument methods.Ms2ger2016-04-111-3/+3
|
* Remove unused import from xmldocument.Ms2ger2016-04-111-1/+0
|
* issue #10141 : Document::location set null for documents without a browsing ↵shubham_jain2016-04-091-2/+2
| | | | context. r=Ms2ger
* Suppress reflows before RefreshTick or FirstLoadJack Moffitt2016-03-031-1/+0
| | | | | | | | | | | | | This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. Unfortunately, hit_test and mouse_over did not do reflows if they were necessary, and so by suppressing the initial spurious reflows, these methods started to panic without a display list to query. This patch also transforms these into queries similar to the other existing queries.
* removed XMLDocument constructor according to specRahul Sharma2016-03-031-16/+0
|
* Make it possible for XMLDocuments to have a browsing context.Josh Matthews2016-02-201-1/+6
|
* Store a pointer to the browsing context in the Document.Ms2ger2016-02-111-0/+1
|
* Implement [Unforgeable]Anthony Ramine2015-12-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. Given the unforgeable holder object has the same prototype as actual instances of the interface, the finalize hook needs to check its slot pointer for nullity before dropping it. The new failing test isn't related to Unforgeable attributes, but to the fact that all Document instances currently have a Location, even if their window isn't in a browsing context.
* Add XMLDocument objectGuillaume Gomez2015-11-271-0/+97