aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcanvaselement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+1
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Expose WebGL-related interfaces only in WindowAnthony Ramine2016-11-301-1/+1
|
* 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-2/+4
|/ | | | rebase + marked the necessary new code as unsafe
* canvas: Cleanup CanvasData and layout and script messages.Emilio Cobos Álvarez2016-11-071-8/+9
|
* Update to string-cache 0.3Simon Sapin2016-11-031-9/+9
|
* Make WebGLRenderingContext::new take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Make CanvasRenderingContext2d::new take a &GlobalScopeAnthony Ramine2016-10-061-1/+2
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Don't bother with the global in ImageData::get_image_dataAnthony Ramine2016-08-301-2/+1
|
* Update rust-mozjs dependencyGuillaume Gomez2016-08-241-5/+13
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Move HTMLCanvasData to script_layout_interface.Ms2ger2016-06-201-6/+1
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+1
|
* Remove JS::from_rootedAnthony Ramine2016-05-311-2/+2
|
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-3/+3
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Removed unused importsPer Lundberg2016-05-151-1/+0
| | | | This fixes #11185.
* Change old references of ecoal95Emilio Cobos Álvarez2016-03-231-1/+1
|
* Remove HTMLCanvasData::renderer_id.Ms2ger2016-03-211-13/+10
|
* Add WebRender integration to Servo.Glenn Watson2016-02-181-3/+10
| | | | | | | | WebRender is an experimental GPU accelerated rendering backend for Servo. The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used). WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-2/+2
|
* task -> threadrohan.prinja2016-01-101-2/+2
|
* Use Option::cloned() in HTMLCanvasElement::GetContext().Ms2ger2016-01-071-1/+1
|
* Generate PartialEq automaticallyGuillaume Gomez2016-01-031-6/+0
|
* Handle toDataURL with no contextDavid Zbarsky2015-12-241-24/+30
|
* Add origin-clean flag tracking for canvasDavid Zbarsky2015-12-171-8/+18
|
* Auto merge of #8728 - dzbarsky:reset_bitmpa, r=dzbarskybors-servo2015-12-041-1/+1
|\ | | | | | | | | | | | | | | | | | | Reset canvas state when changing bitmap dimensions Ran http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-canvas-element/initial.reset.2dstate.html?force=1#88 to confirm that this code is being executed, but the test still fails because the font isn't implemented and the expando doesn't get reset. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8728) <!-- Reviewable:end -->
| * Reset canvas state when changing bitmap dimensionsDavid Zbarsky2015-11-301-1/+1
| |
* | Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+2
|/
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-3/+3
| | | | | | | | | | | 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.
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-2/+2
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Use throw_type_error and throw_range_error from js.Ms2ger2015-11-121-1/+2
|
* Auto merge of #8243 - eefriedman:canvas-width-height, r=Ms2gerbors-servo2015-11-041-41/+24
|\ | | | | | | | | | | | | | | | | | | Simplify implementation of '<canvas>' 'width' and 'height' attributes. Strictly speaking, this affects correctness for extremely large width and height values... but that's unlikely to matter in practice. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8243) <!-- Reviewable:end -->
| * Simplify implementation of '<canvas>' 'width' and 'height' attributes.Eli Friedman2015-11-021-41/+24
| |
* | Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* | merge from masterrohan.prinja2015-11-031-2/+2
|\|
| * Removed JS::root Fixes #8251nxnfufunezn2015-10-311-2/+2
| |
* | more cleanuprohan.prinja2015-10-301-0/+2
| |
* | rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
| |
* | remove unneeded import + reexport InheritTypes from inheritancerohan.prinja2015-10-301-1/+0
| |
* | more refactoringrohan.prinja2015-10-301-1/+1
| |
* | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-2/+1
|/
* Implement HTMLCanvasElement#toDataURLDavid Zbarsky2015-10-261-0/+44
|
* Pass all the data layout needs from canvas elements at once.Ms2ger2015-10-261-35/+28
|
* Cleanup some code in htmlcanvaselement.rs.Ms2ger2015-10-231-13/+8
|
* Clean up the cast callsAnthony Ramine2015-10-211-6/+3
|
* Introduce trait CastableAnthony Ramine2015-10-211-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-1/+1
|