Skip to content

Commit b3d9ffd

Browse files
committed
LibWeb/HTML: Update ImageRequest::prepare_for_presentation spec steps
Corresponds to: whatwg/html@ad28192 We don't implement this at all yet, it's still just FIXMEs.
1 parent 573d536 commit b3d9ffd

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Libraries/LibWeb/HTML/ImageRequest.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,9 @@ void ImageRequest::prepare_for_presentation(HTMLImageElement&)
111111
// FIXME: 5. Let resX be the value of exifTagMap's tag 0x011A (XResolution).
112112
// FIXME: 6. Let resY be the value of exifTagMap's tag 0x011B (YResolution).
113113
// FIXME: 7. Let resUnit be the value of exifTagMap's tag 0x0128 (ResolutionUnit).
114-
// FIXME: 8. If either dimX or dimY is not a positive integer, then return.
115-
// FIXME: 9. If either resX or resY is not a positive floating-point number, then return.
116-
// FIXME: 10. If resUnit is not equal to 2 (Inch), then return.
117-
// FIXME: 11. Let widthFromDensity be the value of physicalWidth, multiplied by 72 and divided by resX.
118-
// FIXME: 12. Let heightFromDensity be the value of physicalHeight, multiplied by 72 and divided by resY.
119-
// FIXME: 13. If widthFromDensity is not equal to dimX or heightFromDensity is not equal to dimY, then return.
120-
// FIXME: 14. If req's image data is CORS-cross-origin, then set img's intrinsic dimensions to dimX and dimY, scale img's pixel data accordingly, and return.
121-
// FIXME: 15. Set req's preferred density-corrected dimensions to a struct with its width set to dimX and its height set to dimY.
122-
// FIXME: 16. Update req's img element's presentation appropriately.
114+
// FIXME: 8. If all the following are true:
115+
// ...
116+
// FIXME: 9. Update req's img element's presentation appropriately.
123117
}
124118

125119
void ImageRequest::fetch_image(JS::Realm& realm, GC::Ref<Fetch::Infrastructure::Request> request)

0 commit comments

Comments
 (0)