aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into calcSimon Sapin2015-09-01175-3282/+2780
|\
| * 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
| | |
| * | Enforce linking to spec for method implementations via macrosCorey Farwell2015-08-3122-8/+117
| | |
| * | Make test-tidy check that braces have spaces before or after themwilmoz2015-08-315-14/+14
| | |
| * | Auto merge of #7466 - nox:rootedvec-from-iter, r=Ms2gerbors-servo2015-08-312-3/+14
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | 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-312-3/+14
| | |
| * | Auto merge of #7407 - nox:childnodes-replace, r=jdmbors-servo2015-08-301-1/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimise most basic case of .replaceChild() when updating childNodes <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7407) <!-- Reviewable:end -->
| | * | Optimise most basic case of .replaceChild() when updating childNodesAnthony Ramine2015-08-271-1/+4
| | | |
| * | | Auto merge of #7228 - nox:urlutils-setters, r=jdmbors-servo2015-08-304-51/+220
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement setters in URLUtils This fixes #6145 and takes care of most of #4250. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7228) <!-- Reviewable:end -->
| | * | | Implement setters in URLUtilsAnthony Ramine2015-08-304-51/+220
| | | | |
| * | | | 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 #7445 - JoshTheGoldfish:Issue6934, r=Manishearthbors-servo2015-08-302-1/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #6934 - Implement onerror event handler for AbstractWorker Please review. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7445) <!-- Reviewable:end -->
| | * | | | Implemented onerror event handler for AbstractWorkererneyja2015-08-302-1/+2
| | | |/ / | | |/| |
| * | | | Auto merge of #7442 - ecoal95:shader-validation, r=jdmbors-servo2015-08-301-8/+49
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WebGL shader validation and translation r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7442) <!-- Reviewable:end -->
| | * | | | webgl: Add shader validation and translationecoal952015-08-301-8/+49
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds angle-based validation and translation to WebGL shaders. The changes to the tex_image_2d test is neccessary (it was not valid GLES 2.0 shader language).
| * | | | Auto merge of #7432 - jdm:dashedprops, r=noxbors-servo2015-08-305-13/+141
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 dashed CSS properties to CSSStyleDeclaration.Josh Matthews2015-08-281-0/+104
| | | | |
| | * | | Add infrastructure for supporting dashed CSS property names on ↵Josh Matthews2015-08-284-13/+37
| | | | | | | | | | | | | | | | | | | | CSSStyleDeclaration.
| * | | | Auto merge of #7433 - frewsxcv:formdata-get, r=noxbors-servo2015-08-301-13/+6
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup, refactor FormDataMethods::Get <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7433) <!-- Reviewable:end -->
| | * | | Cleanup, refactor FormDataMethods::GetCorey Farwell2015-08-281-13/+6
| | | | |
| * | | | Prefer JSTrue/JSFalse to 1/0Corey Farwell2015-08-281-9/+9
| | | | |
| * | | | Send the start and end half of a TimelineMarker to the devtools ↵Ms2ger2015-08-281-8/+7
| | | | | | | | | | | | | | | | | | | | PullTimelineMarkers thread together.
| * | | | Auto merge of #7391 - jdm:prefs, r=Ms2gerbors-servo2015-08-283-10/+13
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace catch-all experimental flag with fine-grained boolean prefere… …nces initialized from a JSON document. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7391) <!-- Reviewable:end -->
| | * | | | Replace catch-all experimental flag with fine-grained boolean preferences ↵Josh Matthews2015-08-283-10/+13
| | | |/ / | | |/| | | | | | | | | | | | initialized from a JSON document.
| * | | | Auto merge of #7431 - frewsxcv:dom-methods-cleanup, r=Ms2gerbors-servo2015-08-2816-52/+0
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge adjacent identical `impl` sections Prior to #7416 and #7401, many of these `impl` sections were not identical <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7431) <!-- Reviewable:end -->
| | * | | Merge adjacent identical `impl` sectionsCorey Farwell2015-08-2816-52/+0
| | |/ / | | | | | | | | | | | | | | | | Prior to #7416 and #7401, many of these `impl` sections were not identical
| * / / Fix CharacterDataMethods to count UTF-16 code units, not code points.Simon Sapin2015-08-281-28/+65
| |/ /
| * | Time distribution across script event categories.benshu2015-08-288-24/+31
| | |
| * | Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-2799-1192/+1192
| | |
| * | Auto merge of #7389 - frewsxcv:implement-nihilistic-methods, r=noxbors-servo2015-08-274-4/+35
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement 'do nothing' methods on Window and Document <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7389) <!-- Reviewable:end -->
| | * | Implement 'do nothing' methods on Window and DocumentCorey Farwell2015-08-274-4/+35
| | |/
| * | Remove AttributeHandlersAnthony Ramine2015-08-2728-118/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On components/script/*.rs: # Remove imports. /^ *use dom::element::\{.*AttributeHandlers/ { s/\{AttributeHandlers, /\{/ s/, AttributeHandlers//g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::element::\{?AttributeHandlers\}?;$/d # Remove AttributeHandlers. /^pub trait AttributeHandlers \{$/,/^\}$/D # Patch AttributeHandlers methods. /^impl<'a> AttributeHandlers for &'a Element \{/,/^\}$/ { s/^impl<'a> AttributeHandlers for &'a Element \{/impl Element {/ /^ *fn /s/\(self([,)])/\(\&self\1/ /^ *fn.*\(&self/s/fn/pub fn/ } The few error cases were then fixed by hand.
| * | Remove reference to helper traits from documentationAnthony Ramine2015-08-271-8/+2
| | |
| * | Remove SinkHelpersAnthony Ramine2015-08-271-1/+16
| | | | | | | | | | | | Method get_or_create() is now directly on servohtmlparser::Sink.
| * | Remove dead code that surfaced when moved outside helper traitAnthony Ramine2015-08-272-17/+1
| | |
| * | Remove helper traitsAnthony Ramine2015-08-2784-1263/+584
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-27154-226/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-27154-226/+2
| | | | | | | | | | | | closes #7357
| * | Auto merge of #7387 - Yoric:2240-2, r=Ms2gerbors-servo2015-08-272-24/+31
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-262-24/+31
| | | | | | | | | | | | | | | | 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
| * | | Mention tracking issue for implementing document.allCorey Farwell2015-08-261-0/+1
| | | |