aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-1/+1
|
* Auto merge of #8506 - nox:finish-ranges, r=dzbarskybors-servo2015-12-261-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | Properly propagate changes when range or trees are mutated Does the same thing as #6817, but storing Range instances directly in their start and end containers. Cc @dzbarsky <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506) <!-- Reviewable:end -->
| * Properly propagate changes when range or trees are mutatedAnthony Ramine2015-12-251-1/+0
| |
* | Move LayerKind and ScrollPolicy enums to gfx_traitsBrandon Fairchild2015-12-201-0/+1
|/ | | | | | This also moves LayerId and LayerProperties to gfx_traits. Fixes #8836.
* Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-101-1/+0
|
* Remove two "#![feature]" that are now stableAlex Gaynor2015-12-091-2/+0
|
* Update rustc to the 2015-12-09 nightly.Ms2ger2015-12-091-0/+1
|
* Prepare infrastructure for XML parser.jsharda2015-12-041-0/+1
|
* now using external ref_slice instead of the std versionJason Williams2015-12-031-1/+1
|
* Add check up on extern crate order and sort extern crates alphabeticallyGuillaume Gomez2015-11-281-10/+10
|
* Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-251-0/+2
| | | | ParserContext
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-2/+1
| | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* refactor(script): move SetDOMProxyInformation() call to lib.rsRizky Luthfianto2015-11-211-0/+3
|
* Use the conversion traits from js.Ms2ger2015-11-121-1/+0
|
* Move EventState to rust-selectors.Bobby Holley2015-10-301-1/+1
|
* Implement HTMLCanvasElement#toDataURLDavid Zbarsky2015-10-261-0/+1
|
* Auto merge of #8086 - froydnj:premultiply-tables, r=jdmbors-servo2015-10-211-0/+1
|\ | | | | | | | | | | | | | | | | | | add (un)premultiply tables for canvas {Get,Put}ImageData operations Pretty straightforward use of lookup tables to replace a bunch of expensive float operations. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8086) <!-- Reviewable:end -->
| * add un-premultiply table for GetImageDataNathan Froyd2015-10-201-0/+1
| | | | | | | | Fixes #6969.
* | Timers are scheduled by a dedicated per-constellation thread.benshu2015-10-211-1/+0
| |
* | Introduce trait CastableAnthony Ramine2015-10-211-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Support the updated spidermonkey bindingsMichael Wu2015-10-141-1/+2
|
* Set a reasonable max count on open files and don't panic if set failsConnor Imes2015-10-131-5/+27
|
* Auto merge of #7777 - KiChjang:caseless-group-name-match, r=jdmbors-servo2015-10-021-0/+1
|\ | | | | | | | | | | | | | | | | | | Add support for caseless group name matching in HTML input elements Fixes #7749 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7777) <!-- Reviewable:end -->
| * Add support for caseless group name matching in HTML input elementsKeith Yeung2015-10-021-0/+1
| |
* | Split Au type into separate crate, with minimal dependencies.Glenn Watson2015-10-011-0/+1
|/
* Use util::str::str_join in more placesCorey Farwell2015-09-281-1/+0
| | | | | Instead of intermediate allocations of `Vec`s, we should utilize `str_join` which operates on iterators
* fixed the 'as_slice' deprecated warningRavi Shankar2015-09-261-1/+0
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-27/+25
|
* Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev.Manish Goregaokar2015-09-231-5/+0
|
* Issue #7390 correct the order of mod declarationHugo Thiessard2015-09-181-4/+4
|
* Fixed serialize_list to no longer append an additional space at the end of ↵Martin Tomasi2015-09-021-0/+1
| | | | the string
* Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)Simon Sapin2015-09-021-0/+1
|
* make test-tidy check that = have space after themerneyja2015-09-011-3/+3
|
* webgl: Add shader validation and translationecoal952015-08-301-0/+1
| | | | | | | | 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).
* Fix CharacterDataMethods to count UTF-16 code units, not code points.Simon Sapin2015-08-281-0/+2
|
* Move RegisterBindings::RegisterProxyHandlers call into script::initJoão Oliveira2015-08-241-0/+6
| | | | closes #7336
* Auto merge of #7097 - boghison:memtypes, r=jdmbors-servo2015-08-131-0/+1
|\ | | | | | | | | | | | | | | | | | | Measure heap memory usage for more types. Fixes #6951 Also adds HeapSizeOf implementations/derive for some types. I've used "Cannot calculate Heap size" as a reason everywhere, because my imagination is rather limited. If you'd like me to change this message for specific types, please write something like this: "Trusted - Cannot calculate Heap size for Trusted" so that it would be easier for me to replace them through a script :) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7097) <!-- Reviewable:end -->
| * Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
| |
* | Simplify devtools frame marker notification. Record each frame tick based on ↵Josh Matthews2015-08-121-0/+1
|/ | | | a single message sent from the script task that ticked.
* Auto merge of #6778 - nox:childnodes, r=jdmbors-servo2015-08-101-0/+1
|\ | | | | | | | | | | | | | | | | | | Optimise Node.childNodes <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6778) <!-- Reviewable:end -->
| * Optimise Node.childNodesAnthony Ramine2015-08-091-0/+1
| | | | | | | | | | We use the virtual method children_changed() to propagate changes in the children list to the NodeList tied to Node.childNodes.
* | Update submodules and don't call setrlimit on AndroidLars Bergstrom2015-08-071-2/+2
| |
* | Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-0/+1
| | | | | | | | frame treese in script tasks.
* | Auto merge of #6741 - servo:fix-setpropertypriority, r=pcwaltonbors-servo2015-08-011-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix CSSStyleDeclaration::setPropertyPriority and some refactoring r? @Ms2ger <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6741) <!-- Reviewable:end -->
| * | Remove some PropertyDeclaration cloning.Simon Sapin2015-07-311-0/+1
| | |
* | | Persuading devtools to communicate with the workers; r=jdmRavi Shankar2015-08-011-1/+0
| |/ |/|
* | Use local slice_charsJack Moffitt2015-07-311-1/+0
|/ | | | | | | StrExt::slice_chars is deprecated and will be removed in Rust. This lifts the implementation from Rust libstd and puts it in util::str. This fixes a bunch of deprecation warnings in Servo.
* Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapinbors-servo2015-07-301-1/+1
|\ | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) This builds and passes unit tests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850) <!-- Reviewable:end -->
| * Remove usage of the deprecated OwnedAsciiExtSimon Sapin2015-07-301-1/+1
| |
* | Remove unused script -> layout_traits dependencyMatt Brubeck2015-07-281-1/+0
| |