aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLImageElement.webidl
Commit message (Collapse)AuthorAgeFilesLines
* script: Move code generation and webidl files to new script_bindings crate. ↵Josh Matthews2025-01-241-61/+0
| | | | | (#35157) Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Implement HTMLImageElement decode (#31269)Taym Haddadi2024-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement HTMLImageElement decode Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Fix Decode doc link Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Temp * Decode HTML Image Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Fix doc link Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Move image decode to process_image_response_for_environment_change Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update some wpt test result Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Handle multiple image decode promises Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove unnecessary promise calls Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update more wpt test result Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Undo body-size-cross-origin.https.html.ini changes Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Reject decode when src and srcset are missing Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Revert "Reject decode when src and srcset are missing" This reverts commit 1b57ab978f9fc24facafc8af97ee8851d5142533. * Drain promises vec and run update_the_image_data when element is created Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * resolve decode promise in abort_request when request is CompletelyAvailable Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update wpt test Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Move storing promise in decode task Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove the resolve logic from decode task Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Revert "Remove the resolve logic from decode task" This reverts commit eee6096d50dbe46a22a5bbfd7f15c03988ed2f4b. * reject or reject current promise before storing it Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Add comment to explain why resolve promise when state is CompletelyAvailable Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Rename legacy extended attributes in webidlssagudev2023-02-191-2/+2
| | | | https://github.com/whatwg/webidl/pull/870
* Added referrerpolicy as relevant mutation for imgPeterZhizhin2020-05-071-0/+2
| | | | | | | | This fixes #26388. referrerPolicy is now calls onload for image mutations. Not all referrerPolicy attribute changes result in an image update event. Only valid changes are reflected. Referrerpolicy tests now pass.
* Convert [HTMLConstructor] as constructor extensionKagami Sascha Rosylight2019-10-191-1/+3
|
* Remove [PrimaryGlobal]Kagami Sascha Rosylight2019-10-031-1/+1
|
* Update WebIDL.py to 4166cae81546Manish Goregaokar2019-03-041-2/+2
| | | | | | https://hg.mozilla.org/integration/autoland/rev/4166cae81546f54accae807413f806d20bf30920 Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
* Update src/href attributes to be a USVStringDan Robertson2018-12-171-3/+3
| | | | | | | | | | | | The following IDLs have the src/href attributes typed as a DOMString while in the spec the attribute has been updated to be a USVString: - HTMLIFrameElement - HTMLImageElement - HTMLInputElement - HTMLLinkElement - HTMLMediaElement - HTMLScriptElement
* Update MPL license to https (part 2)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* implement missing steps for complete apinupurbaghel2018-09-201-2/+2
|
* Add CEReactions where neededConnor Brewster2017-07-181-2/+17
|
* Add HTMLConstructor attributes where neededConnor Brewster2017-06-151-1/+1
|
* Handle crossorigin in link and refactor crossorigin handlingmrnayak2017-01-131-1/+1
| | | | | | | | Implemented Step three and handled step four of obtain the resource part of 4.2.4 The link element. Link to spec : https://html.spec.whatwg.org/multipage/semantics.html#concept-link-obtain Refactored crossOrigin handling in HTMLScriptElement, HTMLImageElement
* Partial fix for #12415: expose interfaces of some HTML ElementsMaciej Skrzypkowski2016-07-281-1/+1
|
* Explicitly expose everything everywhere.Ms2ger2016-07-121-1/+1
|
* Remove modelines everywhere but tests/wptedunham2016-04-201-1/+0
|
* Implement image request concept for HTMLImageElement. Implement ↵akhan72016-04-121-2/+2
| | | | HTMLImageElement.currentSrc.
* Add CSSOM 'Extensions to the HTMLImageElement Interface' in WebIDL.Corey Farwell2016-04-111-0/+6
|
* Explicitly place '/' before fragment for multipage spec linksCorey Farwell2015-10-101-2/+2
| | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost
* Replace usage of old-style WHATWG spec linksCorey Farwell2015-10-101-2/+2
|
* Implement the Image NamedConstructor for HTMLImageElementJoel Teichroeb2015-06-241-1/+1
|
* Refactored image cache task - details below.Glenn Watson2015-04-231-3/+3
| | | | | | | | | | | | | | | | | | | | * 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.
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-2/+2
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Cargoify servoJack Moffitt2014-09-081-0/+34