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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2089063005: Schedule sibling invalidation sets for sibling insert/remove. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed minDirectAdjacent optimization. Created 4 years, 5 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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; 162 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
163 void ensureFullscreenUAStyle(); 163 void ensureFullscreenUAStyle();
164 164
165 void platformColorsChanged(); 165 void platformColorsChanged();
166 166
167 void classChangedForElement(const SpaceSplitString& changedClasses, Element& ); 167 void classChangedForElement(const SpaceSplitString& changedClasses, Element& );
168 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&); 168 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&);
169 void attributeChangedForElement(const QualifiedName& attributeName, Element& ); 169 void attributeChangedForElement(const QualifiedName& attributeName, Element& );
170 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&); 170 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&);
171 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); 171 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&);
172 172 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul ingParent);
173 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element & insertedElement);
174 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element& removedElement, Element& afterElement);
173 unsigned styleForElementCount() const { return m_styleForElementCount; } 175 unsigned styleForElementCount() const { return m_styleForElementCount; }
174 void incStyleForElementCount() { m_styleForElementCount++; } 176 void incStyleForElementCount() { m_styleForElementCount++; }
175 177
176 StyleResolverStats* stats() { return m_styleResolverStats.get(); } 178 StyleResolverStats* stats() { return m_styleResolverStats.get(); }
177 void setStatsEnabled(bool); 179 void setStatsEnabled(bool);
178 180
179 DECLARE_VIRTUAL_TRACE(); 181 DECLARE_VIRTUAL_TRACE();
180 182
181 DECLARE_TRACE_WRAPPERS(); 183 DECLARE_TRACE_WRAPPERS();
182 184
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 266
265 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 267 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
266 unsigned m_styleForElementCount = 0; 268 unsigned m_styleForElementCount = 0;
267 269
268 friend class StyleEngineTest; 270 friend class StyleEngineTest;
269 }; 271 };
270 272
271 } // namespace blink 273 } // namespace blink
272 274
273 #endif 275 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698