Changeset 146878 in webkit


Ignore:
Timestamp:
Mar 26, 2013 6:51:24 AM (11 years ago)
Author:
allan.jensen@digia.com
Message:

[Qt] Poor rounding in GraphicsContext::drawLineForText
https://bugs.webkit.org/show_bug.cgi?id=113301

Reviewed by Jocelyn Turcotte.

Round the position of the line decoration, so lines on subpixel
coordinates are not always rounded up.

  • platform/graphics/qt/GraphicsContextQt.cpp:

(WebCore::GraphicsContext::drawLineForText):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r146875 r146878  
     12013-03-26  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        [Qt] Poor rounding in GraphicsContext::drawLineForText
     4        https://bugs.webkit.org/show_bug.cgi?id=113301
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        Round the position of the line decoration, so lines on subpixel
     9        coordinates are not always rounded up.
     10
     11        * platform/graphics/qt/GraphicsContextQt.cpp:
     12        (WebCore::GraphicsContext::drawLineForText):
     13
    1142013-03-26  Vsevolod Vlasov  <vsevik@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r145810 r146878  
    10341034#endif // defined(Q_WS_X11)
    10351035
    1036     // FIXME: Loss of precision here. Might consider rounding.
    1037     drawLine(IntPoint(startPoint.x(), startPoint.y()), IntPoint(endPoint.x(), endPoint.y()));
     1036    drawLine(roundedIntPoint(startPoint), roundedIntPoint(endPoint));
    10381037}
    10391038
Note: See TracChangeset for help on using the changeset viewer.