https://bugs.webkit.org/show_bug.cgi?id=57973 and https://bugs.webkit.org/show_bug.cgi?id=57973
WK2 icon database should be able to get a CGImage of a specific size Reviewed by Anders Carlsson. ../WebCore: * platform/graphics/BitmapImage.h: * platform/graphics/Image.h: (WebCore::Image::getFirstCGImageRefOfSize): * platform/graphics/cg/ImageCG.cpp: (WebCore::BitmapImage::getFirstCGImageRefOfSize): Walk the frames of the image until reaching the first frame of the requested size. ../WebKit2: * UIProcess/API/C/cg/WKIconDatabaseCG.cpp: (WKIconDatabaseTryGetCGImageForURL): Change this API to take a requested size, and find the first matching CGImage in the icon. * UIProcess/API/C/cg/WKIconDatabaseCG.h: git-svn-id: svn://svn.chromium.org/blink/trunk@83091 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment