Title: [120561] trunk/Source/WebCore
- Revision
- 120561
- Author
- [email protected]
- Date
- 2012-06-17 19:28:13 -0700 (Sun, 17 Jun 2012)
Log Message
Don't mark main frame layer opaque if the frame view is transparent
https://bugs.webkit.org/show_bug.cgi?id=88234
Patch by Arvid Nilsson <[email protected]> on 2012-06-17
Reviewed by Simon Fraser.
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (120560 => 120561)
--- trunk/Source/WebCore/ChangeLog 2012-06-18 02:22:12 UTC (rev 120560)
+++ trunk/Source/WebCore/ChangeLog 2012-06-18 02:28:13 UTC (rev 120561)
@@ -1,3 +1,13 @@
+2012-06-17 Arvid Nilsson <[email protected]>
+
+ Don't mark main frame layer opaque if the frame view is transparent
+ https://bugs.webkit.org/show_bug.cgi?id=88234
+
+ Reviewed by Simon Fraser.
+
+ * rendering/RenderLayerBacking.cpp:
+ (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
+
2012-06-17 Philip Rogers <[email protected]>
Prevent crash in SVGDocumentExtensions::removeAllElementReferencesForTarget.
Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (120560 => 120561)
--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp 2012-06-18 02:22:12 UTC (rev 120560)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp 2012-06-18 02:28:13 UTC (rev 120561)
@@ -166,7 +166,11 @@
m_graphicsLayer = createGraphicsLayer(layerName);
if (m_isMainFrameRenderViewLayer) {
- m_graphicsLayer->setContentsOpaque(true);
+ bool isTransparent = false;
+ if (FrameView* frameView = toRenderView(renderer())->frameView())
+ isTransparent = frameView->isTransparent();
+
+ m_graphicsLayer->setContentsOpaque(!isTransparent);
m_graphicsLayer->setAppliesPageScale();
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes