Skip to content

Commit

Permalink
Unreviewed crash fix after r124135.
Browse files Browse the repository at this point in the history
* platform/graphics/cairo/PathCairo.cpp:
(WebCore::Path::Path): Ensure the Cairo path when acquiring its context,
crashes ensue otherwise.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
zandobersek committed Jul 31, 2012
1 parent ff22ab6 commit 8106072
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,11 @@
2012-07-31 Zan Dobersek <zandobersek@gmail.com>

Unreviewed crash fix after r124135.

* platform/graphics/cairo/PathCairo.cpp:
(WebCore::Path::Path): Ensure the Cairo path when acquiring its context,
crashes ensue otherwise.

2012-07-31 Yoshifumi Inoue <yosin@chromium.org>

Change Element::isReadOnlyFormControl to Element::shouldMatchReadOnlySelector/shouldMatchReadWriteSelector or HTMLFormControlElement::readOnly
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/cairo/PathCairo.cpp
Expand Up @@ -56,7 +56,7 @@ Path::Path(const Path& other)
if (other.isNull())
return;

cairo_t* cr = platformPath()->context();
cairo_t* cr = ensurePlatformPath()->context();
OwnPtr<cairo_path_t> pathCopy = adoptPtr(cairo_copy_path(other.platformPath()->context()));
cairo_append_path(cr, pathCopy.get());
}
Expand Down

0 comments on commit 8106072

Please sign in to comment.