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

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

Issue 2059163002: Schedule sibling invalidation sets for sibling insert/remove. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; 161 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
162 void ensureFullscreenUAStyle(); 162 void ensureFullscreenUAStyle();
163 163
164 void platformColorsChanged(); 164 void platformColorsChanged();
165 165
166 void classChangedForElement(const SpaceSplitString& changedClasses, Element& ); 166 void classChangedForElement(const SpaceSplitString& changedClasses, Element& );
167 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&); 167 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&);
168 void attributeChangedForElement(const QualifiedName& attributeName, Element& ); 168 void attributeChangedForElement(const QualifiedName& attributeName, Element& );
169 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&); 169 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI d, Element&);
170 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); 170 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&);
171 171 void scheduleSiblingInvalidationsForElement(Element&, Element& schedulingEle ment, unsigned minDirectAdjacent, bool invalidateSchedulingElement);
172 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element & insertedElement);
173 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element& removedElement, Element& afterElement);
174 void willRemoveChild(Node& child);
172 unsigned styleForElementCount() const { return m_styleForElementCount; } 175 unsigned styleForElementCount() const { return m_styleForElementCount; }
173 void incStyleForElementCount() { m_styleForElementCount++; } 176 void incStyleForElementCount() { m_styleForElementCount++; }
174 177
175 StyleResolverStats* stats() { return m_styleResolverStats.get(); } 178 StyleResolverStats* stats() { return m_styleResolverStats.get(); }
176 void setStatsEnabled(bool); 179 void setStatsEnabled(bool);
177 180
178 DECLARE_VIRTUAL_TRACE(); 181 DECLARE_VIRTUAL_TRACE();
179 182
180 DECLARE_TRACE_WRAPPERS(); 183 DECLARE_TRACE_WRAPPERS();
181 184
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 266
264 OwnPtr<StyleResolverStats> m_styleResolverStats; 267 OwnPtr<StyleResolverStats> m_styleResolverStats;
265 unsigned m_styleForElementCount = 0; 268 unsigned m_styleForElementCount = 0;
266 269
267 friend class StyleEngineTest; 270 friend class StyleEngineTest;
268 }; 271 };
269 272
270 } // namespace blink 273 } // namespace blink
271 274
272 #endif 275 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698