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

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

Issue 2235723002: Use invalidation sets for nth invalidations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment ::before/::after Created 4 years, 4 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void platformColorsChanged(); 169 void platformColorsChanged();
170 170
171 void classChangedForElement(const SpaceSplitString& changedClasses, Element& ); 171 void classChangedForElement(const SpaceSplitString& changedClasses, Element& );
172 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&); 172 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&);
173 void attributeChangedForElement(const QualifiedName& attributeName, Element& ); 173 void attributeChangedForElement(const QualifiedName& attributeName, Element& );
174 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&); 174 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&);
175 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); 175 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&);
176 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul ingParent, unsigned minDirectAdjacent); 176 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul ingParent, unsigned minDirectAdjacent);
177 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element & insertedElement); 177 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element & insertedElement);
178 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element& removedElement, Element& afterElement); 178 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element& removedElement, Element& afterElement);
179 void scheduleNthPseudoInvalidations(ContainerNode&);
180
179 unsigned styleForElementCount() const { return m_styleForElementCount; } 181 unsigned styleForElementCount() const { return m_styleForElementCount; }
180 void incStyleForElementCount() { m_styleForElementCount++; } 182 void incStyleForElementCount() { m_styleForElementCount++; }
181 183
182 StyleResolverStats* stats() { return m_styleResolverStats.get(); } 184 StyleResolverStats* stats() { return m_styleResolverStats.get(); }
183 void setStatsEnabled(bool); 185 void setStatsEnabled(bool);
184 186
185 DECLARE_VIRTUAL_TRACE(); 187 DECLARE_VIRTUAL_TRACE();
186 188
187 DECLARE_TRACE_WRAPPERS(); 189 DECLARE_TRACE_WRAPPERS();
188 190
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 273
272 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 274 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
273 unsigned m_styleForElementCount = 0; 275 unsigned m_styleForElementCount = 0;
274 276
275 friend class StyleEngineTest; 277 friend class StyleEngineTest;
276 }; 278 };
277 279
278 } // namespace blink 280 } // namespace blink
279 281
280 #endif 282 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.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