[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e
weinig at apple.com
weinig at apple.com
Fri Jan 21 14:43:58 UTC 2011
The following commit has been merged in the debian/experimental branch:
commit bccab0da90d697efd68b5ef16b3b48e5f3287c21
Author: weinig at apple.com <weinig at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Dec 28 01:39:28 2010 +0000
WebKit2 snapshots should contain accelerated content
<rdar://problem/8807393>
https://bugs.webkit.org/show_bug.cgi?id=51660
Reviewed by Anders Carlsson.
When creating a snapshot, flatten the layer tree for painting so that
accelerated content is included in the snapshot.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::snapshotInViewCoordinates):
(WebKit::WebPage::snapshotInDocumentCoordinates):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 6886d29..2dfb09f 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,18 @@
+2010-12-27 Sam Weinig <sam at webkit.org>
+
+ Reviewed by Anders Carlsson.
+
+ WebKit2 snapshots should contain accelerated content
+ <rdar://problem/8807393>
+ https://bugs.webkit.org/show_bug.cgi?id=51660
+
+ When creating a snapshot, flatten the layer tree for painting so that
+ accelerated content is included in the snapshot.
+
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::snapshotInViewCoordinates):
+ (WebKit::WebPage::snapshotInDocumentCoordinates):
+
2010-12-27 Daniel Bates <dbates at rim.com>
Attempt to fix the WebKit2 Windows build after changeset 74698
diff --git a/WebKit2/WebProcess/WebPage/WebPage.cpp b/WebKit2/WebProcess/WebPage/WebPage.cpp
index 571321c..96b701d 100644
--- a/WebKit2/WebProcess/WebPage/WebPage.cpp
+++ b/WebKit2/WebProcess/WebPage/WebPage.cpp
@@ -596,6 +596,9 @@ PassRefPtr<WebImage> WebPage::snapshotInViewCoordinates(const IntRect& rect, Ima
frameView->updateLayoutAndStyleIfNeededRecursive();
+ PaintBehavior oldBehavior = frameView->paintBehavior();
+ frameView->setPaintBehavior(oldBehavior | PaintBehaviorFlattenCompositingLayers);
+
RefPtr<WebImage> snapshot = WebImage::create(rect.size(), options);
OwnPtr<WebCore::GraphicsContext> graphicsContext = snapshot->backingStore()->createGraphicsContext();
@@ -604,6 +607,8 @@ PassRefPtr<WebImage> WebPage::snapshotInViewCoordinates(const IntRect& rect, Ima
frameView->paint(graphicsContext.get(), rect);
graphicsContext->restore();
+ frameView->setPaintBehavior(oldBehavior);
+
return snapshot.release();
}
@@ -615,6 +620,9 @@ PassRefPtr<WebImage> WebPage::snapshotInDocumentCoordinates(const IntRect& rect,
frameView->updateLayoutAndStyleIfNeededRecursive();
+ PaintBehavior oldBehavior = frameView->paintBehavior();
+ frameView->setPaintBehavior(oldBehavior | PaintBehaviorFlattenCompositingLayers);
+
RefPtr<WebImage> snapshot = WebImage::create(rect.size(), options);
OwnPtr<WebCore::GraphicsContext> graphicsContext = snapshot->backingStore()->createGraphicsContext();
@@ -623,6 +631,8 @@ PassRefPtr<WebImage> WebPage::snapshotInDocumentCoordinates(const IntRect& rect,
frameView->paintContents(graphicsContext.get(), rect);
graphicsContext->restore();
+ frameView->setPaintBehavior(oldBehavior);
+
return snapshot.release();
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list