Show
Ignore:
Timestamp:
08/06/08 13:29:36 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35588

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/WebCore/dom/Element.cpp

    r418 r431  
    786786        } 
    787787 
    788         if (ch != NoChange) 
     788        if (ch != NoChange) { 
    789789            setRenderStyle(newStyle); 
    790         else if (changed() && (document()->usesSiblingRules() || document()->usesDescendantRules())) { 
     790        } else if (changed() && (styleChangeType() != AnimationStyleChange) && (document()->usesSiblingRules() || document()->usesDescendantRules())) { 
    791791            // Although no change occurred, we use the new style so that the cousin style sharing code won't get 
    792792            // fooled into believing this style is the same.  This is only necessary if the document actually uses 
     
    797797            else 
    798798                setRenderStyle(newStyle); 
    799         } 
     799        } else if (styleChangeType() == AnimationStyleChange) 
     800             setRenderStyle(newStyle); 
    800801 
    801802        newStyle->deref(document()->renderArena()); 
    802803 
    803804        if (change != Force) { 
    804             if ((document()->usesDescendantRules() || hasPositionalRules) && styleChangeType() == FullStyleChange) 
     805            if ((document()->usesDescendantRules() || hasPositionalRules) && styleChangeType() >= FullStyleChange) 
    805806                change = Force; 
    806807            else