Changeset 193743 in webkit


Ignore:
Timestamp:
Dec 8, 2015 1:17:38 AM (8 years ago)
Author:
fred.wang@free.fr
Message:

[cairo] Solid stroke of lines with thickness less than 1 pixel broken after r191658
https://bugs.webkit.org/show_bug.cgi?id=151947

Reviewed by Martin Robinson.

Source/WebCore:

Test: mathml/presentation/radical-bar-visibility.html

  • platform/graphics/cairo/GraphicsContextCairo.cpp:

(WebCore::GraphicsContext::drawLine): Force a minimal thickness of 1px

LayoutTests:

Add a test to check that the radical overbar appears on the screen when it has thickness less than 1px.

  • mathml/presentation/radical-bar-visibility-expected-mismatch.html: Added.
  • mathml/presentation/radical-bar-visibility.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r193689 r193743  
     12015-12-08  Frederic Wang  <fred.wang@free.fr>
     2
     3        [cairo] Solid stroke of lines with thickness less than 1 pixel broken after r191658
     4        https://bugs.webkit.org/show_bug.cgi?id=151947
     5
     6        Reviewed by Martin Robinson.
     7
     8        Add a test to check that the radical overbar appears on the screen when it has thickness less than 1px.
     9
     10        * mathml/presentation/radical-bar-visibility-expected-mismatch.html: Added.
     11        * mathml/presentation/radical-bar-visibility.html: Added.
     12
    1132015-12-07  Brady Eidson  <beidson@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r193723 r193743  
     12015-12-08  Frederic Wang  <fred.wang@free.fr>
     2
     3        [cairo] Solid stroke of lines with thickness less than 1 pixel broken after r191658
     4        https://bugs.webkit.org/show_bug.cgi?id=151947
     5
     6        Reviewed by Martin Robinson.
     7
     8        Test: mathml/presentation/radical-bar-visibility.html
     9
     10        * platform/graphics/cairo/GraphicsContextCairo.cpp:
     11        (WebCore::GraphicsContext::drawLine): Force a minimal thickness of 1px
     12
    1132015-12-08  Gwang Yoon Hwang  <yoon@igalia.com>
    214
  • trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp

    r192574 r193743  
    312312        const double dashedLine[2] = { static_cast<double>(patternWidth), static_cast<double>(patternWidth) };
    313313        cairo_set_dash(cairoContext, dashedLine, 2, patternOffset);
    314     } else
     314    } else {
    315315        setSourceRGBAFromColor(cairoContext, strokeColor);
     316        if (thickness < 1)
     317            cairo_set_line_width(cairoContext, 1);
     318    }
     319
    316320
    317321    FloatPoint p1 = point1;
Note: See TracChangeset for help on using the changeset viewer.