Show
Ignore:
Timestamp:
08/13/08 13:49:09 (5 months ago)
Author:
odole
Message:

merge with webkit revision 35706

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/WebCore/rendering/RenderContainer.cpp

    r418 r436  
    393393} 
    394394 
     395static void invalidateCountersInContainer(RenderObject* container) 
     396{ 
     397    if (!container) 
     398        return; 
     399    container = findBeforeAfterParent(container); 
     400    if (!container) 
     401        return; 
     402    for (RenderObject* content = container->firstChild(); content; content = content->nextSibling()) { 
     403        if (content->isCounter()) 
     404            static_cast<RenderCounter*>(content)->invalidate(); 
     405    } 
     406} 
     407 
     408void RenderContainer::invalidateCounters() 
     409{ 
     410    invalidateCountersInContainer(beforeAfterContainer(RenderStyle::BEFORE)); 
     411    invalidateCountersInContainer(beforeAfterContainer(RenderStyle::AFTER)); 
     412} 
     413 
    395414void RenderContainer::appendChildNode(RenderObject* newChild, bool fullAppend) 
    396415{