aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Introduce VirtualMethods::children_changed()Anthony Ramine2015-07-251-0/+1
|/ | | | | | | | | This virtual method mimics the behaviour of mutation observers and make it more viable than the older child_inserted(), which didn't cover removed nodes and was called as many times as there were inserted nodes. A few other shortcomings where remove_child() was called directly instead of Node::remove() were also fixed while at it.
* script: Increase our file descriptor limit on Linux.Patrick Walton2015-07-231-0/+22
| | | | | We've had problems with this before, and I think it's starting to cause problems again.
* Reject websocket protocol requests that don't match ↵Josh Matthews2015-07-221-0/+1
| | | | https://tools.ietf.org/html/rfc6455#section-4.1 .
* compositing: Make the constellation messages serializable.Patrick Walton2015-07-181-0/+1
|
* Wire up the JS engine's memory reporting.Nicholas Nethercote2015-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SpiderMonkey provides an extremely fine-grained breakdown of memory usage, but for Servo we aggregate the measurements into a small number of coarse buckets, which seems appropriate for the current level of detail provided by Servo's memory profiler. Sample output: ``` | 10.99 MiB -- pages | 7.75 MiB -- url(http://html5demos.com/worker) | 4.63 MiB -- js | 2.00 MiB -- gc-heap | 0.94 MiB -- decommitted | 0.92 MiB -- used | 0.09 MiB -- unused | 0.05 MiB -- admin | 1.44 MiB -- malloc-heap | 1.19 MiB -- non-heap | [...] | 3.24 MiB -- url(http://html5demos.com/js/worker-cruncher.js) | 3.24 MiB -- js | 1.17 MiB -- malloc-heap | 1.06 MiB -- non-heap | 1.00 MiB -- gc-heap | 0.69 MiB -- used | 0.19 MiB -- decommitted | 0.09 MiB -- unused | 0.03 MiB -- admin ``` Most of the changes are plumbing to get the script and worker tasks communicating with the memory profiler task.
* script: Split `Pipeline::create` into chrome process and contentPatrick Walton2015-07-141-0/+1
| | | | | | | | | | | | process parts. This will make it easier to adapt to IPC. The trickiest part here was to make script tasks spawn new layout tasks directly instead of having the pipeline do it for them. The latter approach will not work in multiprocess mode, because layout and script must run in the same address space and the pipeline cannot inject tasks into another process.
* layout: Make the `LayoutControlChan` use IPC.Patrick Walton2015-07-141-0/+1
|
* Add a `-Z replace-surrogates` command-line option.Simon Sapin2015-07-131-0/+2
| | | | See #6564.
* Add servo Image type. Remove rust-png dependency from script, gfx, layout.Glenn Watson2015-07-071-1/+0
|
* Implement window.crypto.getRandomValues()Tim Taubert2015-07-031-0/+1
|
* Check the result of JS_Init.Ms2ger2015-07-021-1/+1
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-0/+1
| | | | fixes #6524
* Stop using position_elem.Ms2ger2015-06-271-1/+0
| | | | It is unstable and not really better than the stable alternative.
* Stop using Vec::from_raw_buf.Ms2ger2015-06-261-1/+0
|