Changeset 47526 in webkit


Ignore:
Timestamp:
Aug 19, 2009 1:56:09 PM (15 years ago)
Author:
pkasting@chromium.org
Message:

Unreviewed (build fix for Skia).

https://bugs.webkit.org/show_bug.cgi?id=28268

  • platform/graphics/skia/GraphicsContextSkia.cpp:

(WebCore::GraphicsContext::drawLine):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r47525 r47526  
     12009-08-19  Peter Kasting  <pkasting@google.com>
     2
     3        Unreviewed (build fix for Skia).
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=28268
     6
     7        * platform/graphics/skia/GraphicsContextSkia.cpp:
     8        (WebCore::GraphicsContext::drawLine):
     9
    1102009-08-19  Jan Michael Alonzo  <jmalonzo@webkit.org>
    211
  • trunk/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r47498 r47526  
    522522
    523523    SkPaint paint;
    524     if (!isPointSkiaSafe(getCTM(), pts[0]) || !isPointSkiaSafe(getCTM(), pts[1]))
     524    if (!isPointSkiaSafe(getCTM(), point1) || !isPointSkiaSafe(getCTM(), point2))
    525525        return;
    526526
     
    533533    // be the sum of the displacement component vectors give or take 1 -
    534534    // probably worth the speed up of no square root, which also won't be exact.
    535     FloatPoint disp = p2 - p1;
    536     int length = SkScalarRound(disp.x() + disp.y());
     535    FloatSize disp = p2 - p1;
     536    int length = SkScalarRound(disp.width() + disp.height());
    537537    platformContext()->setupPaintForStroking(&paint, 0, length);
    538538
Note: See TracChangeset for help on using the changeset viewer.