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

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

Issue 250773002: Reland "Recompute overflow after transform changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@build_hack
Patch Set: again... Created 6 years, 7 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
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 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 inheritHtmlAndBodyElementStyles(change); 1876 inheritHtmlAndBodyElementStyles(change);
1877 dirtyElementsForLayerUpdate(); 1877 dirtyElementsForLayerUpdate();
1878 if (documentElement->shouldCallRecalcStyle(change)) 1878 if (documentElement->shouldCallRecalcStyle(change))
1879 documentElement->recalcStyle(change); 1879 documentElement->recalcStyle(change);
1880 while (dirtyElementsForLayerUpdate()) 1880 while (dirtyElementsForLayerUpdate())
1881 documentElement->recalcStyle(NoChange); 1881 documentElement->recalcStyle(NoChange);
1882 } 1882 }
1883 1883
1884 ensureStyleResolver().printStats(); 1884 ensureStyleResolver().printStats();
1885 1885
1886 view()->recalcOverflowAfterStyleChange();
1886 view()->updateCompositingLayersAfterStyleChange(); 1887 view()->updateCompositingLayersAfterStyleChange();
1887 1888
1888 clearChildNeedsStyleRecalc(); 1889 clearChildNeedsStyleRecalc();
1889 1890
1890 if (m_styleEngine->hasResolver()) { 1891 if (m_styleEngine->hasResolver()) {
1891 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc. 1892 // Pseudo element removal and similar may only work with these flags sti ll set. Reset them after the style recalc.
1892 StyleResolver& resolver = m_styleEngine->ensureResolver(); 1893 StyleResolver& resolver = m_styleEngine->ensureResolver();
1893 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ()); 1894 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet ());
1894 resolver.clearStyleSharingList(); 1895 resolver.clearStyleSharingList();
1895 } 1896 }
(...skipping 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after
5657 { 5658 {
5658 visitor->trace(m_styleSheetList); 5659 visitor->trace(m_styleSheetList);
5659 visitor->trace(m_visibilityObservers); 5660 visitor->trace(m_visibilityObservers);
5660 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5661 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5661 Supplementable<Document>::trace(visitor); 5662 Supplementable<Document>::trace(visitor);
5662 TreeScope::trace(visitor); 5663 TreeScope::trace(visitor);
5663 ContainerNode::trace(visitor); 5664 ContainerNode::trace(visitor);
5664 } 5665 }
5665 5666
5666 } // namespace WebCore 5667 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/compositing/repaint/should-not-repaint-composited-transform-expected.txt ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698