Changeset 73125 in webkit
- Timestamp:
- Dec 2, 2010 5:39:21 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73122 r73125 1 2010-12-02 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] GraphicsContext::strokeRect() taints the context's lineWidth 6 https://bugs.webkit.org/show_bug.cgi?id=50269 7 8 * fast/canvas/canvas-lineWidth-intact-after-strokeRect-expected.txt: Added. 9 * fast/canvas/canvas-lineWidth-intact-after-strokeRect.html: Added. 10 * fast/canvas/script-tests/canvas-lineWidth-intact-after-strokeRect.js: Added. 11 1 12 2010-12-02 Alexander Pavlov <apavlov@chromium.org> 2 13 -
trunk/WebCore/ChangeLog
r73123 r73125 1 2010-12-02 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] GraphicsContext::strokeRect() taints the context's lineWidth 6 https://bugs.webkit.org/show_bug.cgi?id=50269 7 8 Test: fast/canvas/canvas-lineWidth-intact-after-strokeRect.html 9 10 * platform/graphics/qt/GraphicsContextQt.cpp: 11 (WebCore::GraphicsContext::strokeRect): Restore the context's 12 original stroke thickness after painting. 13 1 14 2010-12-02 Renata Hodovan <reni@webkit.org> 2 15 -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r73123 r73125 1043 1043 } 1044 1044 1045 void GraphicsContext::strokeRect(const FloatRect& rect, float width)1045 void GraphicsContext::strokeRect(const FloatRect& rect, float lineWidth) 1046 1046 { 1047 1047 if (paintingDisabled()) … … 1050 1050 Path path; 1051 1051 path.addRect(rect); 1052 setStrokeThickness(width); 1052 1053 float previousStrokeThickness = strokeThickness(); 1054 1055 if (lineWidth != previousStrokeThickness) 1056 setStrokeThickness(lineWidth); 1057 1053 1058 strokePath(path); 1059 1060 if (lineWidth != previousStrokeThickness) 1061 setStrokeThickness(previousStrokeThickness); 1054 1062 } 1055 1063
Note: See TracChangeset
for help on using the changeset viewer.