[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:22:38 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 1695b82067e56631b4d5bbb6df9c3c3b91e5148c
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jan 29 22:00:23 2003 +0000

    	Back out my removal of the layer optimization.  The rest of
    	the code is not prepared to deal with child elements overriding
    	visibility, or with invisible layers sitting on top of
    	visible ones.
    
            * khtml/rendering/render_layer.cpp:
            (RenderLayer::constructZTree):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3494 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 83b88e5..b28f992 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,13 @@
+2003-01-29  David Hyatt  <hyatt at apple.com>
+
+	Back out my removal of the layer optimization.  The rest of
+	the code is not prepared to deal with child elements overriding
+	visibility, or with invisible layers sitting on top of
+	visible ones.
+	
+        * khtml/rendering/render_layer.cpp:
+        (RenderLayer::constructZTree):
+
 2003-01-28  David Hyatt  <hyatt at apple.com>
 
 	Fix yet another bug with makeChildrenNonInline that caused the
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 83b88e5..b28f992 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,13 @@
+2003-01-29  David Hyatt  <hyatt at apple.com>
+
+	Back out my removal of the layer optimization.  The rest of
+	the code is not prepared to deal with child elements overriding
+	visibility, or with invisible layers sitting on top of
+	visible ones.
+	
+        * khtml/rendering/render_layer.cpp:
+        (RenderLayer::constructZTree):
+
 2003-01-28  David Hyatt  <hyatt at apple.com>
 
 	Fix yet another bug with makeChildrenNonInline that caused the
diff --git a/WebCore/khtml/rendering/render_layer.cpp b/WebCore/khtml/rendering/render_layer.cpp
index 412b065..8ab7383 100644
--- a/WebCore/khtml/rendering/render_layer.cpp
+++ b/WebCore/khtml/rendering/render_layer.cpp
@@ -455,6 +455,14 @@ RenderLayer::constructZTree(QRect overflowClipRect, QRect posClipRect,
     
     // This variable stores the result we will hand back.
     RenderZTreeNode* returnNode = 0;
+
+    // FIXME: A child render object or layer could override visibility.  Don't remove this
+    // optimization though until nodeAtPoint is patched as well.
+    //
+    // If a layer isn't visible, then none of its child layers are visible either.
+    // Don't build this branch of the z-tree, since these layers should not be painted.
+    if (renderer()->style()->visibility() != VISIBLE)
+        return 0;
     
     // Compute this layer's absolute position, so that we can compare it with our
     // damage rect and avoid repainting the layer if it falls outside that rect.

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list