aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove doublepointer in VirtualMethods, and from_borrowed_refManish Goregaokar2015-08-271-3/+3
| | | | | | | | | Most of the heavy lifting done by: ``` $ ls *rs | xargs gawk -i inplace '/let .*: &&.*from_borrowed_ref/{sub("&&", "\\&");sub("_borrowed_","_");} {print $0}' $ ls *rs | xargs gawk -i inplace "/impl.*VirtualMethods/{in_vm=1; sub(/<'a>/,\"\");sub(/&'a /,\"\")} /^}\$/{in_vm=0;} in_vm{\$0=gensub(/\\*self([^.])/,\"self\\\1\",\"g\"); sub(/from_borrowed_ref/,\"from_ref\")} {print}" ```
* sort all usesJohann Tuffe2015-08-201-3/+3
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-2/+2
|
* Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-5/+4
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Add spec linksBogdan Cuza2015-07-281-0/+8
|
* script: Make the `ImageCacheTask` use IPC.Patrick Walton2015-07-261-13/+28
| | | | | This necessitated getting rid of the boxed trait object that was being be passed between the script task and the image cache task.
* Implement the Image NamedConstructor for HTMLImageElementJoel Teichroeb2015-06-241-0/+17
|
* Upgrade to SM 39Michael Wu2015-06-191-25/+24
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-3/+8
| | | | Part of https://github.com/servo/servo/issues/6041
* net: Don't load the placeholder image for background images, only forPatrick Walton2015-05-201-3/+8
| | | | | | | | | | | | image fragments. This also changes the way the placeholder is handled in the image cache task to decode it up front instead of each time an image fails to load, both because it was more convenient to implement that way and because it saves CPU cycles to do so. This matches the behavior of Gecko and WebKit. It improves the look of our cached copy of Wikipedia.
* Make HTMLImageElement name attribute use an atomAnthony Ramine2015-05-141-2/+3
|
* Replace Au-related free functions in util::geometry with Au methods.Simon Sapin2015-05-051-3/+2
|
* Auto merge of #5877 - glennw:img-cache-tidy, r=pcwaltonbors-servo2015-04-281-14/+0
|\ | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5877) <!-- Reviewable:end -->
| * Remove node dirty on img width/height that is no longer needed.Glenn Watson2015-04-281-14/+0
| |
* | Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
|/ | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Remove as_slice() calls from script.Ms2ger2015-04-261-1/+1
|
* Replace the Str implementation for AttrValue by a Deref implementation.Ms2ger2015-04-251-1/+1
|
* Refactored image cache task - details below.Glenn Watson2015-04-231-11/+92
| | | | | | | | | | | | | | | | | | | | * Simpler image cache API for clients to use. * Significantly fewer threads. * One thread for image cache task (multiplexes commands, decoder threads and async resource requests). * 4 threads for decoder worker tasks. * Removed ReflowEvent hacks in script and layout tasks. * Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe. * Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow. * Add reflow batching for when multiple images load quickly. * Reduces the number of paints loading wikipedia from ~95 to ~35. * Reasonably simple to add proper prefetch support in a follow up PR. * Async loaded images always construct Image fragments now, instead of generic. * Image fragments support the image not being present. * Simpler implementation of synchronous image loading for reftests. * Removed image holder. * image.onload support. * image NaturalWidth and NaturalHeight support. * Updated WPT expectations.
* Implements drawImage for html image as ImageSourceDiego Marcos2015-04-071-0/+10
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-1/+1
| | | | Fixes #4476
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-0/+2
|
* Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-101-6/+4
|
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-0/+1
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Import net as net rather than servo_net.Ms2ger2015-02-101-1/+1
|
* LayoutJS<T> implements Layout*Helpers instead of JS<T>.Tetsuharu OHZEKI2015-02-011-2/+2
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-2/+2
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Don't shadow lifetimes in script.Ms2ger2015-01-281-1/+1
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-19/+19
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-1/+3
| | | | into_string has been removed from Rust.
* auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyukibors-servo2015-01-041-1/+1
|\ | | | | | | In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
| * Qualify image_cache_task::Msg.Ms2ger2015-01-041-1/+1
| |
* | auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2gerbors-servo2015-01-041-4/+5
|\ \ | |/ |/|
| * Add HTMLElementTypeId enum (fixes #3625)Megha Gupta2015-01-021-4/+5
| |
* | Remove unsound Root::deref() calls in HTML elements.Ms2ger2015-01-011-0/+1
| |
* | Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-2/+2
|/ | | | This changes those calls that were already sound.
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-271-6/+0
|\ | | | | | | | | | | Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
| * Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+0
| | | | | | | | | | | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* | script: to_string() -> into_string()Manish Goregaokar2014-12-271-1/+1
|/
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-7/+7
|
* script: Add some workarounds for image cache task racesPatrick Walton2014-12-151-1/+15
|
* Close #84Guillaume Bort2014-11-071-3/+0
| | | | | | | | | | | | | Actually <img> elements in <noscript> are not prefetched anymore. Probably because html5ever already parses the <noscript> content as raw text data if `scripting_enabled` is activated. See https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs# L126 Also, added a test to the images cache.
* Pass an Atom to VirtualMethods::parse_plain_attribute.Ms2ger2014-11-051-2/+3
|
* Fix a layout method to use borrow_for_layout()Keegan McAllister2014-10-241-1/+1
|
* Move the methods on bare Document onto DocumentHelpers.Ms2ger2014-10-231-1/+1
|
* Usage of JSRef<Attr> in before_remove_attr & after_set_attrBruno de Oliveira Abinader2014-10-221-13/+18
| | | | | JSRef<Attr> does not require allocating a DOMString for value, which are unused in most cases. It also provides more access to Attr data.
* Use DOMRefCell for HTMLImageElement.Tetsuharu OHZEKI2014-10-221-4/+3
|
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-10-141-4/+4
| | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Privatize WindowTim Taubert2014-10-131-1/+1
|