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