Skip to content
Permalink
Browse files
2010-04-10 Stephan Aßmus <superstippi@gmx.de>
        Reviewed by Eric Seidel.

        [Haiku] Fix crash in Gradient::fill()
        https://bugs.webkit.org/show_bug.cgi?id=37386

        Covered by existing tests.

        * platform/graphics/haiku/GradientHaiku.cpp:
        (WebCore::Gradient::fill):
            - Make sure the platform gradient is already cached before
              dereferencing its pointer.

Canonical link: https://commits.webkit.org/48709@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
eseidel committed Apr 10, 2010
1 parent a192156 commit f5d5ed11de0bcc02abf542d4fc72bfd6558107d9
Showing 2 changed files with 15 additions and 1 deletion.
@@ -1,3 +1,17 @@
2010-04-10 Stephan Aßmus <superstippi@gmx.de>

Reviewed by Eric Seidel.

[Haiku] Fix crash in Gradient::fill()
https://bugs.webkit.org/show_bug.cgi?id=37386

Covered by existing tests.

* platform/graphics/haiku/GradientHaiku.cpp:
(WebCore::Gradient::fill):
- Make sure the platform gradient is already cached before
dereferencing its pointer.

2010-04-10 Stephan Aßmus <superstippi@gmx.de>

Reviewed by Eric Seidel.
@@ -66,7 +66,7 @@ PlatformGradient Gradient::platformGradient()

void Gradient::fill(GraphicsContext* context, const FloatRect& rect)
{
context->platformContext()->FillRect(rect, *m_gradient);
context->platformContext()->FillRect(rect, *platformGradient());
}

} // namespace WebCore

0 comments on commit f5d5ed1

Please sign in to comment.