Changeset 90200 in webkit
- Timestamp:
- Jun 30, 2011, 8:28:38 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 13 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/chromium-linux/platform/chromium/fast/text/text-stroke-with-border-expected.png (added)
-
LayoutTests/platform/chromium-linux/platform/chromium/fast/text/text-stroke-with-border-expected.txt (added)
-
LayoutTests/platform/chromium-mac/platform/chromium (added)
-
LayoutTests/platform/chromium-mac/platform/chromium/fast (added)
-
LayoutTests/platform/chromium-mac/platform/chromium/fast/text (added)
-
LayoutTests/platform/chromium-mac/platform/chromium/fast/text/text-stroke-with-border-expected.png (added)
-
LayoutTests/platform/chromium-mac/platform/chromium/fast/text/text-stroke-with-border-expected.txt (added)
-
LayoutTests/platform/chromium-win/platform/chromium (added)
-
LayoutTests/platform/chromium-win/platform/chromium/fast (added)
-
LayoutTests/platform/chromium-win/platform/chromium/fast/text (added)
-
LayoutTests/platform/chromium-win/platform/chromium/fast/text/text-stroke-with-border-expected.png (added)
-
LayoutTests/platform/chromium-win/platform/chromium/fast/text/text-stroke-with-border-expected.txt (added)
-
LayoutTests/platform/chromium/fast/text/text-stroke-with-border.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderObject.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90199 r90200 1 2011-06-30 Kenichi Ishibashi <bashi@chromium.org> 2 3 Reviewed by Simon Fraser. 4 5 [Chromium] -webkit-text-stroke doesn't affect with non-zero width border property 6 https://bugs.webkit.org/show_bug.cgi?id=63698 7 8 Added a test which ensures text stroke is rendered with non-zero width border. 9 10 * platform/chromium-linux/platform/chromium/fast/text/text-stroke-with-border-expected.png: Added. 11 * platform/chromium-linux/platform/chromium/fast/text/text-stroke-with-border-expected.txt: Added. 12 * platform/chromium-mac/platform/chromium/fast/text/text-stroke-with-border-expected.png: Added. 13 * platform/chromium-mac/platform/chromium/fast/text/text-stroke-with-border-expected.txt: Added. 14 * platform/chromium-win/platform/chromium/fast/text/text-stroke-with-border-expected.png: Added. 15 * platform/chromium-win/platform/chromium/fast/text/text-stroke-with-border-expected.txt: Added. 16 * platform/chromium/fast/text/text-stroke-with-border.html: Added. 17 1 18 2011-06-30 Andrew Scherkus <scherkus@chromium.org> 2 19 -
trunk/Source/WebCore/ChangeLog
r90188 r90200 1 2011-06-30 Kenichi Ishibashi <bashi@chromium.org> 2 3 Reviewed by Simon Fraser. 4 5 [Chromium] -webkit-text-stroke doesn't affect with non-zero width border property 6 https://bugs.webkit.org/show_bug.cgi?id=63698 7 8 Restore the stroke style when it is modified in RenderObject::drawLineForBoxSide() to show text stroke correctly. 9 10 Test: platform/chromium/fast/text/text-stroke-with-border.html 11 12 * rendering/RenderObject.cpp: 13 (WebCore::RenderObject::drawLineForBoxSide): Save/restore the stroke style. 14 1 15 2011-06-30 Gwang Yoon Hwang <ryumiel@company100.net> 2 16 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r90186 r90200 711 711 return; 712 712 case DOTTED: 713 case DASHED: 713 case DASHED: { 714 714 graphicsContext->setStrokeColor(color, m_style->colorSpace()); 715 715 graphicsContext->setStrokeThickness(width); 716 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle(); 716 717 graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke); 717 718 … … 731 732 } 732 733 graphicsContext->setShouldAntialias(wasAntialiased); 734 graphicsContext->setStrokeStyle(oldStrokeStyle); 733 735 } 734 736 break; 737 } 735 738 case DOUBLE: { 736 739 int third = (width + 1) / 3; 737 740 738 741 if (adjacentWidth1 == 0 && adjacentWidth2 == 0) { 742 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle(); 739 743 graphicsContext->setStrokeStyle(NoStroke); 740 744 graphicsContext->setFillColor(color, m_style->colorSpace()); … … 760 764 761 765 graphicsContext->setShouldAntialias(wasAntialiased); 766 graphicsContext->setStrokeStyle(oldStrokeStyle); 762 767 } else { 763 768 int adjacent1BigThird = ((adjacentWidth1 > 0) ? adjacentWidth1 + 1 : adjacentWidth1 - 1) / 3; … … 857 862 // fall through 858 863 case SOLID: { 864 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle(); 859 865 graphicsContext->setStrokeStyle(NoStroke); 860 866 graphicsContext->setFillColor(color, m_style->colorSpace()); … … 868 874 graphicsContext->drawRect(IntRect(x1, y1, x2 - x1, y2 - y1)); 869 875 graphicsContext->setShouldAntialias(wasAntialiased); 876 graphicsContext->setStrokeStyle(oldStrokeStyle); 870 877 return; 871 878 } … … 899 906 900 907 graphicsContext->drawConvexPolygon(4, quad, antialias); 908 graphicsContext->setStrokeStyle(oldStrokeStyle); 901 909 break; 902 910 }
Note:
See TracChangeset
for help on using the changeset viewer.