[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
commit-queue at webkit.org
commit-queue at webkit.org
Wed Dec 22 12:44:36 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 1852403189850fddcf73e9e3b780f28be86eeecf
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sat Aug 28 01:58:15 2010 +0000
2010-08-27 Patrick Gansterer <paroga at paroga.com>
Reviewed by Adam Roben.
Remove unnecessary AlphaBlend in PasteboardWin.
https://bugs.webkit.org/show_bug.cgi?id=44720
Replacing AlphaBlend with BitBlt is safe because testing showed that alpha
never survives copy-and-paste on Windows in any browser, and StretchBlt
was a overkill since the source and destination size are always equal.
* platform/win/PasteboardWin.cpp:
(WebCore::Pasteboard::writeImage):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 15b5959..e16b872 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,17 @@
+2010-08-27 Patrick Gansterer <paroga at paroga.com>
+
+ Reviewed by Adam Roben.
+
+ Remove unnecessary AlphaBlend in PasteboardWin.
+ https://bugs.webkit.org/show_bug.cgi?id=44720
+
+ Replacing AlphaBlend with BitBlt is safe because testing showed that alpha
+ never survives copy-and-paste on Windows in any browser, and StretchBlt
+ was a overkill since the source and destination size are always equal.
+
+ * platform/win/PasteboardWin.cpp:
+ (WebCore::Pasteboard::writeImage):
+
2010-08-26 Zhenyao Mo <zmo at google.com>
Reviewed by Kenneth Russell.
diff --git a/WebCore/platform/win/PasteboardWin.cpp b/WebCore/platform/win/PasteboardWin.cpp
index 03ecd36..c065f04 100644
--- a/WebCore/platform/win/PasteboardWin.cpp
+++ b/WebCore/platform/win/PasteboardWin.cpp
@@ -230,14 +230,7 @@ void Pasteboard::writeImage(Node* node, const KURL&, const String&)
HGDIOBJ oldSource = SelectObject(sourceDC, coreBitmap);
image->getHBITMAP(coreBitmap);
-#if !defined(NO_ALPHABLEND)
- BLENDFUNCTION bf = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
- AlphaBlend(compatibleDC, 0, 0, image->width(), image->height(),
- sourceDC, 0, 0, image->width(), image->height(), bf);
-#else
- StretchBlt(compatibleDC, 0, 0, image->width(), image->height(),
- sourceDC, 0, 0, image->width(), image->height(), SRCCOPY);
-#endif
+ BitBlt(compatibleDC, 0, 0, image->width(), image->height(), sourceDC, 0, 0, SRCCOPY);
SelectObject(sourceDC, oldSource);
DeleteObject(coreBitmap);
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list