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

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: rebase 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 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 inheritHtmlAndBodyElementStyles(change); 1846 inheritHtmlAndBodyElementStyles(change);
1847 dirtyElementsForLayerUpdate(); 1847 dirtyElementsForLayerUpdate();
1848 if (documentElement->shouldCallRecalcStyle(change)) 1848 if (documentElement->shouldCallRecalcStyle(change))
1849 documentElement->recalcStyle(change); 1849 documentElement->recalcStyle(change);
1850 while (dirtyElementsForLayerUpdate()) 1850 while (dirtyElementsForLayerUpdate())
1851 documentElement->recalcStyle(NoChange); 1851 documentElement->recalcStyle(NoChange);
1852 } 1852 }
1853 1853
1854 ensureStyleResolver().printStats(); 1854 ensureStyleResolver().printStats();
1855 1855
1856 view()->recalcOverflowAfterStyleChange();
1856 view()->updateCompositingLayersAfterStyleChange(); 1857 view()->updateCompositingLayersAfterStyleChange();
1857 1858
1858 clearChildNeedsStyleRecalc(); 1859 clearChildNeedsStyleRecalc();
1859 1860
1860 if (m_styleEngine->hasResolver()) { 1861 if (m_styleEngine->hasResolver()) {
1861 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc. 1862 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc.
1862 StyleResolver& resolver = m_styleEngine->ensureResolver(); 1863 StyleResolver& resolver = m_styleEngine->ensureResolver();
1863 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ()); 1864 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ());
1864 resolver.clearStyleSharingList(); 1865 resolver.clearStyleSharingList();
1865 } 1866 }
(...skipping 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after
5575 (*it)->invalidateCache(attrName); 5576 (*it)->invalidateCache(attrName);
5576 } 5577 }
5577 5578
5578 void Document::trace(Visitor* visitor) 5579 void Document::trace(Visitor* visitor)
5579 { 5580 {
5580 Supplementable<Document>::trace(visitor); 5581 Supplementable<Document>::trace(visitor);
5581 ContainerNode::trace(visitor); 5582 ContainerNode::trace(visitor);
5582 } 5583 }
5583 5584
5584 } // namespace WebCore 5585 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698