2007-06-04 Alp Toker <alp.toker@collabora.co.uk>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2007 23:43:38 +0000 (23:43 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2007 23:43:38 +0000 (23:43 +0000)
commitd7ace46bd24995bb9b7012b0844ff77e64c5eb85
tree7b42360b86f813d08c016881702a31bd02a54b85
parenta3a60374d972e128621b4cb92a0a119e1f2a03dc
2007-06-04  Alp Toker  <alp.toker@collabora.co.uk>

        Reviewed by Anders.

        http://bugs.webkit.org/show_bug.cgi?id=13986
        Cairo graphics fixes and cleanups

        * platform/graphics/ImageBuffer.h:
        * platform/graphics/cairo/ImageBufferCairo.cpp:
        (WebCore::ImageBuffer::surface): Provide surface() accessor.
        * platform/graphics/cairo/AffineTransformCairo.cpp:
        (WebCore::AffineTransform::rotate): Convert from degrees to radians to
        fix rotation.
        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::drawRect): Add save/restore.
        (WebCore::GraphicsContext::rotate): Rename parameter to "radians" to
        avoid further confusion.
        * platform/graphics/cairo/PathCairo.cpp:
        (WebCore::Path::boundingRect): The cairo_fill_extents() parameters do
        not describe a point/size but rather the two control points of the
        rectangular region.
        (WebCore::Path::contains): Remove needless casts.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/ImageBuffer.h
WebCore/platform/graphics/cairo/AffineTransformCairo.cpp
WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
WebCore/platform/graphics/cairo/ImageBufferCairo.cpp
WebCore/platform/graphics/cairo/PathCairo.cpp