⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 145443 in webkit


Ignore:
Timestamp:
Mar 11, 2013, 5:48:27 PM (14 years ago)
Author:
cevans@google.com
Message:

Merge 142760
BUG=172993
Review URL: ​https://codereview.chromium.org/12558011

Location:
branches/chromium/1410
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/chromium/1410/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r144665 r145443  
    331331    // A continuation of this RenderObject should be destroyed at subclasses.
    332332    ASSERT(!continuation());
    333 
    334     if (isPositioned()) {
    335         if (RenderView* view = this->view()) {
    336             if (FrameView* frameView = view->frameView()) {
    337                 if (style()->hasViewportConstrainedPosition())
    338                     frameView->removeViewportConstrainedObject(this);
    339             }
    340         }
    341     }
    342333
    343334    // If this is a first-letter object with a remaining text fragment then the
  • branches/chromium/1410/Source/WebCore/rendering/RenderLayerModelObject.cpp

    r139920 r145443  
    7777void RenderLayerModelObject::willBeDestroyed()
    7878{
     79    if (isPositioned()) {
     80        // Don't use this->view() because the document's renderView has been set to 0 during destruction.
     81        if (Frame* frame = this->frame()) {
     82            if (FrameView* frameView = frame->view()) {
     83                if (style()->hasViewportConstrainedPosition())
     84                    frameView->removeViewportConstrainedObject(this);
     85            }
     86        }
     87    }
     88
    7989    // RenderObject::willBeDestroyed calls back to destroyLayer() for layer destruction
    8090    RenderObject::willBeDestroyed();
Note: See TracChangeset for help on using the changeset viewer.