Created attachment 191922 [details] screen-shot of this bug (Linux. EFL using cairo) in "http://old.hempton.com/examples/scale9grid/", you can see the border-image looks like cracked. Screen-shot of MiniBrowser is attched.
Created attachment 191924 [details] proposal patch for cairo, when it draws bitmap image, it has Antialiasing. so when it's not aligned, it shows up like this bug. when it doesn't need antialiasing, it has to draw with CAIRO_ANTIALIAS_NONE. for skia, it's working like this. and I agree that. I attached my proposal.
Created attachment 191932 [details] proposed patch proposed patch. No-Antialias for drawing bitmap like it does for skia.
Comment on attachment 191932 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=191932&action=review > Source/WebCore/platform/graphics/cairo/BitmapImageCairo.cpp:132 > + cairo_antialias_t savedAntialiasRule = cairo_get_antialias(cr); IMHO, context->save() already saves antialias state, so you don't need to save it here because there is context->restore() right after your change.
you're right. It's going to be more simple and nice. modified patch will be.
Created attachment 194786 [details] patch modified patch
Created attachment 199889 [details] patch rebase patch