Commit 218c4e41 authored by hyatt's avatar hyatt
Browse files

Use the layer's bounds as the damage rect not the object's.

	The layer knows about the overflow out of the object.  The
	object does not.  Duh.

	Fixes disney.com bustage.

        Reviewed by sullivan

        * khtml/rendering/render_layer.cpp:
        (RenderLayer::constructZTree):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f9030452
2002-12-16 David Hyatt <hyatt@apple.com>
Use the layer's bounds as the damage rect not the object's.
The layer knows about the overflow out of the object. The
object does not. Duh.
Fixes disney.com bustage.
Reviewed by sullivan
* khtml/rendering/render_layer.cpp:
(RenderLayer::constructZTree):
2002-12-16 David Hyatt <hyatt@apple.com>
Code needs to go in calcMinMaxWidth instead, so parents computing
......
2002-12-16 David Hyatt <hyatt@apple.com>
Use the layer's bounds as the damage rect not the object's.
The layer knows about the overflow out of the object. The
object does not. Duh.
Fixes disney.com bustage.
Reviewed by sullivan
* khtml/rendering/render_layer.cpp:
(RenderLayer::constructZTree):
2002-12-16 David Hyatt <hyatt@apple.com>
Code needs to go in calcMinMaxWidth instead, so parents computing
......
......@@ -350,7 +350,7 @@ RenderLayer::constructZTree(QRect overflowClipRect, QRect posClipRect,
// layers are clipped according to the overflowClipRect.
QRect clipRectToApply = m_object->isPositioned() ? posClipRect : overflowClipRect;
QRect damageRect = eventProcessing ? clipRectToApply :
clipRectToApply.intersect(QRect(x,y,m_object->width(), m_object->height()));
clipRectToApply.intersect(layerBounds);
// If we establish a clip rect, then we want to intersect that rect
// with the damage rect to form a new damage rect.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment