Changeset 116069 in webkit
- Timestamp:
- May 3, 2012 10:52:37 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116068 r116069 1 2012-05-03 David Barr <davidbarr@chromium.org> 2 3 Antialias single-edge solid borders 4 https://bugs.webkit.org/show_bug.cgi?id=85031 5 6 Reviewed by Simon Fraser. 7 8 * fast/css/border-solid-single-edge-antialias-expected.png: Added. 9 * fast/css/border-solid-single-edge-antialias-expected.txt: Added. 10 * fast/css/border-solid-single-edge-antialias.html: Added. 11 * platform/chromium/test_expectations.txt: 12 * platform/efl/test_expectations.txt: 13 * platform/gtk/test_expectations.txt: 14 * platform/mac/test_expectations.txt: 15 * platform/qt/test_expectations.txt: 16 * platform/win/test_expectations.txt: 17 1 18 2012-05-03 Raphael Kubo da Costa <rakuco@webkit.org> 2 19 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r116047 r116069 3884 3884 BUGWK85212 : ietestcenter/css3/flexbox/flexbox-layout-002.htm = IMAGE 3885 3885 BUGWK85213 : ietestcenter/css3/flexbox/flexbox-ordinal-group-001.htm = CRASH IMAGE 3886 3887 // Requires rebaseline after bug 85031 3888 BUGWK85565 : fast/block/float/016.html = IMAGE 3889 BUGWK85565 WIN LINUX: fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/LayoutTests/platform/efl/test_expectations.txt
r116037 r116069 267 267 BUGWK85212 : ietestcenter/css3/flexbox/flexbox-layout-002.htm = IMAGE 268 268 BUGWK85213 : ietestcenter/css3/flexbox/flexbox-ordinal-group-001.htm = CRASH IMAGE 269 270 // Requires rebaseline after bug 85031 271 BUGWK85565 : fast/block/float/016.html = IMAGE 272 BUGWK85565 : fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/LayoutTests/platform/gtk/test_expectations.txt
r116037 r116069 1528 1528 // End of Tests failing 1529 1529 ////////////////////////////////////////////////////////////////////////////////////////// 1530 1531 // Requires rebaseline after bug 85031 1532 BUGWK85565 : fast/block/float/016.html = IMAGE 1533 BUGWK85565 : fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/LayoutTests/platform/mac/test_expectations.txt
r116063 r116069 202 202 BUGWK85212 : ietestcenter/css3/flexbox/flexbox-layout-002.htm = IMAGE 203 203 BUGWK85213 : ietestcenter/css3/flexbox/flexbox-ordinal-group-001.htm = CRASH IMAGE 204 205 // Requires rebaseline after bug 85031 206 BUGWK85565 : fast/block/float/016.html = IMAGE 207 BUGWK85565 : fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/LayoutTests/platform/qt/test_expectations.txt
r116037 r116069 65 65 BUGWK85212 : ietestcenter/css3/flexbox/flexbox-layout-002.htm = IMAGE 66 66 BUGWK85213 : ietestcenter/css3/flexbox/flexbox-ordinal-group-001.htm = CRASH IMAGE 67 68 // Requires rebaseline after bug 85031 69 BUGWK85565 : fast/block/float/016.html = IMAGE 70 BUGWK85565 : fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/LayoutTests/platform/win/test_expectations.txt
r113785 r116069 1 1 // This file is intentionally left blank. Until the Apple win port supports new-run-webkit-tests (https://bugs.webkit.org/show_bug.cgi?id=38756) 2 2 // this file does nothing. 3 4 // Requires rebaseline after bug 85031 5 BUGWK85565 : fast/block/float/016.html = IMAGE 6 BUGWK85565 : fast/css/border-solid-single-edge-antialias.html = IMAGE -
trunk/Source/WebCore/ChangeLog
r116066 r116069 1 2012-05-03 David Barr <davidbarr@chromium.org> 2 3 Antialias single-edge solid borders 4 https://bugs.webkit.org/show_bug.cgi?id=85031 5 6 Reviewed by Simon Fraser. 7 8 Antialiasing is avoided for adjacent edges due to artifacts at the seam. 9 There are no such artifacts for single-edge borders so enable antialiasing. 10 11 Test: fast/css/border-solid-single-edge-antialias.html 12 13 * rendering/RenderBoxModelObject.cpp: 14 (WebCore::RenderBoxModelObject::paintBorder): 15 1 16 2012-05-03 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r115846 r116069 1851 1851 bool haveAllSolidEdges = true; 1852 1852 bool haveAllDoubleEdges = true; 1853 bool allEdgesVisible = true;1853 int numEdgesVisible = 4; 1854 1854 bool allEdgesShareColor = true; 1855 1855 int firstVisibleEdge = -1; … … 1858 1858 const BorderEdge& currEdge = edges[i]; 1859 1859 if (currEdge.presentButInvisible()) { 1860 allEdgesVisible = false;1860 --numEdgesVisible; 1861 1861 allEdgesShareColor = false; 1862 1862 continue; … … 1864 1864 1865 1865 if (!currEdge.width) { 1866 allEdgesVisible = false;1866 --numEdgesVisible; 1867 1867 continue; 1868 1868 } … … 1891 1891 if ((haveAllSolidEdges || haveAllDoubleEdges) && allEdgesShareColor && innerBorder.isRenderable()) { 1892 1892 // Fast path for drawing all solid edges and all unrounded double edges 1893 if ( allEdgesVisible&& (outerBorder.isRounded() || haveAlphaColor)1893 if (numEdgesVisible == 4 && (outerBorder.isRounded() || haveAlphaColor) 1894 1894 && (haveAllSolidEdges || (!outerBorder.isRounded() && !innerBorder.isRounded()))) { 1895 1895 Path path; … … 1950 1950 } 1951 1951 // Avoid creating transparent layers 1952 if (haveAllSolidEdges && !allEdgesVisible&& !outerBorder.isRounded() && haveAlphaColor) {1952 if (haveAllSolidEdges && numEdgesVisible != 4 && !outerBorder.isRounded() && haveAlphaColor) { 1953 1953 Path path; 1954 1954 … … 1980 1980 } 1981 1981 1982 bool antialias = shouldAntialiasLines(graphicsContext); 1982 // If only one edge visible antialiasing doesn't create seams 1983 bool antialias = shouldAntialiasLines(graphicsContext) || numEdgesVisible == 1; 1983 1984 if (haveAlphaColor) 1984 1985 paintTranslucentBorderSides(graphicsContext, style, outerBorder, innerBorder, edges, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias);
Note: See TracChangeset
for help on using the changeset viewer.