Changeset 73125 in webkit


Ignore:
Timestamp:
Dec 2, 2010 5:39:21 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-02 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] GraphicsContext::strokeRect() taints the context's lineWidth
https://bugs.webkit.org/show_bug.cgi?id=50269

  • fast/canvas/canvas-lineWidth-intact-after-strokeRect-expected.txt: Added.
  • fast/canvas/canvas-lineWidth-intact-after-strokeRect.html: Added.
  • fast/canvas/script-tests/canvas-lineWidth-intact-after-strokeRect.js: Added.

2010-12-02 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] GraphicsContext::strokeRect() taints the context's lineWidth
https://bugs.webkit.org/show_bug.cgi?id=50269

Test: fast/canvas/canvas-lineWidth-intact-after-strokeRect.html

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::strokeRect): Restore the context's original stroke thickness after painting.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r73122 r73125  
     12010-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
    1122010-12-02  Alexander Pavlov  <apavlov@chromium.org>
    213
  • trunk/WebCore/ChangeLog

    r73123 r73125  
     12010-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
    1142010-12-02  Renata Hodovan  <reni@webkit.org>
    215
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r73123 r73125  
    10431043}
    10441044
    1045 void GraphicsContext::strokeRect(const FloatRect& rect, float width)
     1045void GraphicsContext::strokeRect(const FloatRect& rect, float lineWidth)
    10461046{
    10471047    if (paintingDisabled())
     
    10501050    Path path;
    10511051    path.addRect(rect);
    1052     setStrokeThickness(width);
     1052
     1053    float previousStrokeThickness = strokeThickness();
     1054
     1055    if (lineWidth != previousStrokeThickness)
     1056        setStrokeThickness(lineWidth);
     1057
    10531058    strokePath(path);
     1059
     1060    if (lineWidth != previousStrokeThickness)
     1061        setStrokeThickness(previousStrokeThickness);
    10541062}
    10551063
Note: See TracChangeset for help on using the changeset viewer.