Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 203463007: Recompute overflow after transform changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests had been missing Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 inheritHtmlAndBodyElementStyles(change); 1805 inheritHtmlAndBodyElementStyles(change);
1806 dirtyElementsForLayerUpdate(); 1806 dirtyElementsForLayerUpdate();
1807 if (documentElement->shouldCallRecalcStyle(change)) 1807 if (documentElement->shouldCallRecalcStyle(change))
1808 documentElement->recalcStyle(change); 1808 documentElement->recalcStyle(change);
1809 while (dirtyElementsForLayerUpdate()) 1809 while (dirtyElementsForLayerUpdate())
1810 documentElement->recalcStyle(NoChange); 1810 documentElement->recalcStyle(NoChange);
1811 } 1811 }
1812 1812
1813 ensureStyleResolver().printStats(); 1813 ensureStyleResolver().printStats();
1814 1814
1815 view()->recalcOverflowAfterStyleChange();
1815 view()->updateCompositingLayersAfterStyleChange(); 1816 view()->updateCompositingLayersAfterStyleChange();
1816 1817
1817 clearChildNeedsStyleRecalc(); 1818 clearChildNeedsStyleRecalc();
1818 1819
1819 if (m_styleEngine->hasResolver()) { 1820 if (m_styleEngine->hasResolver()) {
1820 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc. 1821 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc.
1821 StyleResolver& resolver = m_styleEngine->ensureResolver(); 1822 StyleResolver& resolver = m_styleEngine->ensureResolver();
1822 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ()); 1823 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ());
1823 resolver.clearStyleSharingList(); 1824 resolver.clearStyleSharingList();
1824 } 1825 }
(...skipping 3667 matching lines...) Expand 10 before | Expand all | Expand 10 after
5492 } 5493 }
5493 5494
5494 void Document::invalidateNodeListCaches(const QualifiedName* attrName) 5495 void Document::invalidateNodeListCaches(const QualifiedName* attrName)
5495 { 5496 {
5496 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end( ); 5497 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end( );
5497 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument. begin(); it != end; ++it) 5498 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument. begin(); it != end; ++it)
5498 (*it)->invalidateCache(attrName); 5499 (*it)->invalidateCache(attrName);
5499 } 5500 }
5500 5501
5501 } // namespace WebCore 5502 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698