mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Revert "Reject decode when src and srcset are missing"
This reverts commit 1b57ab978f9fc24facafc8af97ee8851d5142533.
This commit is contained in:
parent
c117c01b0e
commit
3bf6a5bbf8
1 changed files with 0 additions and 5 deletions
|
@ -1173,7 +1173,6 @@ impl HTMLImageElement {
|
|||
// Step 2 for <https://html.spec.whatwg.org/multipage/#dom-img-decode>
|
||||
fn react_to_decode_image_sync_steps(&self) {
|
||||
let document = document_from_node(self);
|
||||
let elem = self.upcast::<Element>();
|
||||
// Step 2.1 of <https://html.spec.whatwg.org/multipage/#dom-img-decode>
|
||||
if !document.is_fully_active() ||
|
||||
matches!(self.current_request.borrow().state, State::Broken)
|
||||
|
@ -1184,10 +1183,6 @@ impl HTMLImageElement {
|
|||
State::CompletelyAvailable
|
||||
) {
|
||||
self.resolve_image_decode_promises();
|
||||
} else if !elem.has_attribute(&local_name!("src")) &&
|
||||
!elem.has_attribute(&local_name!("srcset"))
|
||||
{
|
||||
self.reject_image_decode_promises();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue