-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=14185 Patch by Uday Kiran <udaykiran@motorola.com> on 2013-02-19 Reviewed by David Hyatt. Source/WebCore: Add rendering support for 'round' keyword of border-image-repeat CSS property http://dev.w3.org/csswg/css3-background/#border-image-repeat Rebased original patch by Benjamin Otte <otte@gnome.org> and made few fixes. Test: fast/borders/border-image-02.html * platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::drawTiledImage): * platform/graphics/GraphicsContext.h: (GraphicsContext): * platform/graphics/Image.cpp: (WebCore::Image::drawTiled): * platform/graphics/Image.h: (Image): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintNinePieceImage): For 'round' keyword, the image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does. LayoutTests: Added test for 'round' keyword of border-image-repeat CSS property http://dev.w3.org/csswg/css3-background/#border-image-repeat * fast/borders/border-image-02.html: Added. * platform/chromium-linux/fast/borders/border-image-02-expected.png: Added. * platform/chromium/TestExpectations: * platform/chromium/fast/borders/border-image-02-expected.txt: Added. * platform/efl/TestExpectations: * platform/gtk/fast/borders/border-image-02-expected.png: Added. * platform/gtk/fast/borders/border-image-02-expected.txt: Added. * platform/mac-wk2/TestExpectations: * platform/mac/TestExpectations: * platform/qt/TestExpectations: * platform/win/TestExpectations: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3a1d402a