Changeset 26865 in webkit


Ignore:
Timestamp:
Oct 22, 2007 12:31:01 AM (17 years ago)
Author:
hyatt
Message:

Fix for 15596, regression from my transform changes. Preserve null checks on the clip rects calls for parent(),
since the method is called on orphaned layers. This is not very well understood.

Reviewed by eric

  • rendering/RenderLayer.cpp: (WebCore::RenderLayer::calculateClipRects): (WebCore::RenderLayer::calculateRects):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r26864 r26865  
     12007-10-22  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for 15596, regression from my transform changes.  Preserve null checks on the clip rects calls for parent(),
     4        since the method is called on orphaned layers.  This is not very well understood.
     5
     6        Reviewed by eric
     7
     8        * rendering/RenderLayer.cpp:
     9        (WebCore::RenderLayer::calculateClipRects):
     10        (WebCore::RenderLayer::calculateRects):
     11
    1122007-10-21  Mark Rowe  <mrowe@apple.com>
    213
  • trunk/WebCore/rendering/RenderLayer.cpp

    r26843 r26865  
    17421742        return; // We have the correct cached value.
    17431743
    1744     if (rootLayer == this) {
     1744    if (rootLayer == this || !parent()) {
    17451745        // The root layer's clip rect is always just its dimensions.
    17461746        m_clipRects = new (m_object->renderArena()) ClipRects(IntRect(0,0,width(),height()));
     
    18121812                                 IntRect& backgroundRect, IntRect& foregroundRect, IntRect& outlineRect) const
    18131813{
    1814     if (rootLayer != this) {
     1814    if (rootLayer != this && parent()) {
    18151815        parent()->calculateClipRects(rootLayer);
    18161816
Note: See TracChangeset for help on using the changeset viewer.