summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-13 05:27:03 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-13 05:27:03 +0000
commit8870844b951e707e0586a0210977b5b52838bd69 (patch)
treefe890a52f08f3a5683e645d80abdb4a9568f19dc /net-libs/webkit-gtk/files
parentRemove duplicate ChangeLog entry. (diff)
downloadgentoo-2-8870844b951e707e0586a0210977b5b52838bd69.tar.gz
gentoo-2-8870844b951e707e0586a0210977b5b52838bd69.tar.bz2
gentoo-2-8870844b951e707e0586a0210977b5b52838bd69.zip
Version bump with security fixes. Fix freebsd buuild failure (bug #417523, thanks to Alexis Ballier). Drop old.
(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/webkit-gtk/files')
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-1.8.0-svgimagebuffer-clip.patch114
-rw-r--r--net-libs/webkit-gtk/files/webkit-gtk-1.8.3-libdl.patch27
2 files changed, 27 insertions, 114 deletions
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.8.0-svgimagebuffer-clip.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.8.0-svgimagebuffer-clip.patch
deleted file mode 100644
index e93059f3aeb4..000000000000
--- a/net-libs/webkit-gtk/files/webkit-gtk-1.8.0-svgimagebuffer-clip.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-Index: /trunk/Source/WebCore/ChangeLog
-===================================================================
---- /trunk/Source/WebCore/ChangeLog (revision 110561)
-+++ /trunk/Source/WebCore/ChangeLog (revision 110563)
-@@ -1,2 +1,31 @@
-+2012-03-13 Stephen Chenney <schenney@chromium.org>
-+
-+ Crash in WebCore::GraphicsContext::paintingDisabled
-+ https://bugs.webkit.org/show_bug.cgi?id=80669
-+
-+ Reviewed by Nikolas Zimmermann.
-+
-+ The SVGImageBufferTools::clipToImageBuffer method deletes the clip
-+ image when it thinks it is not needed. However, there are cases when
-+ it is in fact still needed, particularly when the clip buffer is
-+ coming from higher up in the stack where it may be needed again.
-+
-+ So this patch adds a flag to only allow deletion of the image buffer
-+ if it was created at the most recent call site.
-+
-+ Tests: svg/custom/circular-clip-path-references-crash-expected.svg
-+ svg/custom/circular-clip-path-references-crash.svg
-+
-+ * rendering/svg/RenderSVGResourceClipper.cpp:
-+ (WebCore::RenderSVGResourceClipper::applyClippingToContext):
-+ * rendering/svg/RenderSVGResourceGradient.cpp:
-+ (WebCore::clipToTextMask):
-+ * rendering/svg/RenderSVGResourceMasker.cpp:
-+ (WebCore::RenderSVGResourceMasker::applyResource):
-+ * rendering/svg/SVGImageBufferTools.cpp:
-+ (WebCore::SVGImageBufferTools::clipToImageBuffer):
-+ * rendering/svg/SVGImageBufferTools.h:
-+ (SVGImageBufferTools):
-+
- 2012-03-13 Gavin Peters <gavinp@chromium.org>
-
-Index: /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.cpp
-===================================================================
---- /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.cpp (revision 109016)
-+++ /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.cpp (revision 110563)
-@@ -122,5 +122,5 @@
- }
-
--void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>& imageBuffer)
-+void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>& imageBuffer, bool safeToClear)
- {
- ASSERT(context);
-@@ -137,5 +137,5 @@
- // When nesting resources, with objectBoundingBox as content unit types, there's no use in caching the
- // resulting image buffer as the parent resource already caches the result.
-- if (!currentContentTransformation().isIdentity())
-+ if (safeToClear && !currentContentTransformation().isIdentity())
- imageBuffer.clear();
- }
-Index: /trunk/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
-===================================================================
---- /trunk/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp (revision 106108)
-+++ /trunk/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp (revision 110563)
-@@ -99,5 +99,5 @@
-
- targetRect = textRootBlock->repaintRectInLocalCoordinates();
-- SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, targetRect, imageBuffer);
-+ SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, targetRect, imageBuffer, false);
-
- AffineTransform matrix;
-Index: /trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
-===================================================================
---- /trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (revision 106108)
-+++ /trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (revision 110563)
-@@ -87,5 +87,6 @@
- ASSERT_UNUSED(resourceMode, resourceMode == ApplyToDefaultMode);
-
-- if (!m_masker.contains(object))
-+ bool missingMaskerData = !m_masker.contains(object);
-+ if (missingMaskerData)
- m_masker.set(object, new MaskerData);
-
-@@ -117,5 +118,5 @@
- return false;
-
-- SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, maskerData->maskImage);
-+ SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, maskerData->maskImage, missingMaskerData);
- return true;
- }
-Index: /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.h
-===================================================================
---- /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.h (revision 106157)
-+++ /trunk/Source/WebCore/rendering/svg/SVGImageBufferTools.h (revision 110563)
-@@ -43,5 +43,5 @@
-
- static void renderSubtreeToImageBuffer(ImageBuffer*, RenderObject*, const AffineTransform&);
-- static void clipToImageBuffer(GraphicsContext*, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>&);
-+ static void clipToImageBuffer(GraphicsContext*, const AffineTransform& absoluteTransform, const FloatRect& targetRect, OwnPtr<ImageBuffer>&, bool safeToClear);
-
- static void calculateTransformationToOutermostSVGCoordinateSystem(const RenderObject*, AffineTransform& absoluteTransform);
-Index: /trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
-===================================================================
---- /trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (revision 109097)
-+++ /trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (revision 110563)
-@@ -156,5 +156,6 @@
- const FloatRect& repaintRect, GraphicsContext* context)
- {
-- if (!m_clipper.contains(object))
-+ bool missingClipperData = !m_clipper.contains(object);
-+ if (missingClipperData)
- m_clipper.set(object, new ClipperData);
-
-@@ -202,5 +203,5 @@
- return false;
-
-- SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, clipperData->clipMaskImage);
-+ SVGImageBufferTools::clipToImageBuffer(context, absoluteTransform, repaintRect, clipperData->clipMaskImage, missingClipperData);
- return true;
- }
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.8.3-libdl.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.8.3-libdl.patch
new file mode 100644
index 000000000000..e422aa413740
--- /dev/null
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.8.3-libdl.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/show_bug.cgi?id=417523
+https://bugs.webkit.org/show_bug.cgi?id=96602
+
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 128398)
++++ configure.ac (working copy)
+@@ -268,6 +268,10 @@
+ AC_SUBST([OLE32_LIBS])
+
+
++AC_CHECK_FUNC([dlopen], [], [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
++AC_SUBST([DLOPEN_LIBS])
++
++
+ # determine the GTK+ version to use
+ AC_MSG_CHECKING([the GTK+ version to use])
+ AC_ARG_WITH([gtk],
+@@ -554,7 +558,7 @@
+ if test "$enable_webgl" = "yes" || test "$with_accelerated_compositing" = "opengl" ; then
+ AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
+ AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
+- OPENGL_LIBS="-lGL -ldl"
++ OPENGL_LIBS="-lGL $DLOPEN_LIBS"
+ fi
+ AC_SUBST([OPENGL_LIBS])
+