OLD | NEW |
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); | 176 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); |
177 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul
ingParent, unsigned minDirectAdjacent); | 177 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul
ingParent, unsigned minDirectAdjacent); |
178 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element
& insertedElement); | 178 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element
& insertedElement); |
179 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element&
removedElement, Element& afterElement); | 179 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element&
removedElement, Element& afterElement); |
180 unsigned styleForElementCount() const { return m_styleForElementCount; } | 180 unsigned styleForElementCount() const { return m_styleForElementCount; } |
181 void incStyleForElementCount() { m_styleForElementCount++; } | 181 void incStyleForElementCount() { m_styleForElementCount++; } |
182 | 182 |
183 StyleResolverStats* stats() { return m_styleResolverStats.get(); } | 183 StyleResolverStats* stats() { return m_styleResolverStats.get(); } |
184 void setStatsEnabled(bool); | 184 void setStatsEnabled(bool); |
185 | 185 |
| 186 void purgeMemory(); |
| 187 |
186 DECLARE_VIRTUAL_TRACE(); | 188 DECLARE_VIRTUAL_TRACE(); |
187 | 189 |
188 DECLARE_TRACE_WRAPPERS(); | 190 DECLARE_TRACE_WRAPPERS(); |
189 | 191 |
190 private: | 192 private: |
191 // CSSFontSelectorClient implementation. | 193 // CSSFontSelectorClient implementation. |
192 void fontsNeedUpdate(CSSFontSelector*) override; | 194 void fontsNeedUpdate(CSSFontSelector*) override; |
193 | 195 |
194 private: | 196 private: |
195 StyleEngine(Document&); | 197 StyleEngine(Document&); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 274 |
273 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 275 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
274 unsigned m_styleForElementCount = 0; | 276 unsigned m_styleForElementCount = 0; |
275 | 277 |
276 friend class StyleEngineTest; | 278 friend class StyleEngineTest; |
277 }; | 279 }; |
278 | 280 |
279 } // namespace blink | 281 } // namespace blink |
280 | 282 |
281 #endif | 283 #endif |
OLD | NEW |