diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-01-22 14:13:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 13:13:48 +0000 |
commit | 5c1723c9833c133e1af641533293e63d8723f8d3 (patch) | |
tree | c37778936ee0ffe88379632f5627cbb18710acda /components/script/dom/htmlimageelement.rs | |
parent | d7de206dbd459e8c8bf121f73755d12569c6cc55 (diff) | |
download | servo-5c1723c9833c133e1af641533293e63d8723f8d3.tar.gz servo-5c1723c9833c133e1af641533293e63d8723f8d3.zip |
rustdoc: Fix many rustdoc errors (#31147)
This fixes many rustdoc errors that occur due to raw URLs in rustdoc
comments as well as unescaped Rust code that should be in backticks.
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 91ba8dc2499..baef87bff4c 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -425,7 +425,7 @@ impl HTMLImageElement { self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage); } - /// Step 24 of https://html.spec.whatwg.org/multipage/#update-the-image-data + /// Step 24 of <https://html.spec.whatwg.org/multipage/#update-the-image-data> fn process_image_response(&self, image: ImageResponse) { // TODO: Handle multipart/x-mixed-replace let (trigger_image_load, trigger_image_error) = match (image, self.image_request.get()) { @@ -674,7 +674,7 @@ impl HTMLImageElement { source_size_list.evaluate(&device, quirks_mode) } - /// https://html.spec.whatwg.org/multipage/#matches-the-environment + /// <https://html.spec.whatwg.org/multipage/#matches-the-environment> fn matches_environment(&self, media_query: String) -> bool { let document = document_from_node(self); let quirks_mode = document.quirks_mode(); @@ -1019,7 +1019,7 @@ impl HTMLImageElement { ScriptThread::await_stable_state(Microtask::ImageElement(task)); } - /// Step 2-12 of https://html.spec.whatwg.org/multipage/#img-environment-changes + /// Step 2-12 of <https://html.spec.whatwg.org/multipage/#img-environment-changes> fn react_to_environment_changes_sync_steps(&self, generation: u32) { // TODO reduce duplicacy of this code @@ -1814,7 +1814,8 @@ where return (s, ""); } -/// Parse an `srcset` attribute - https://html.spec.whatwg.org/multipage/#parsing-a-srcset-attribute. +/// Parse an `srcset` attribute: +/// <https://html.spec.whatwg.org/multipage/#parsing-a-srcset-attribute>. pub fn parse_a_srcset_attribute(input: &str) -> Vec<ImageSource> { let mut url_len = 0; let mut candidates: Vec<ImageSource> = vec![]; |