| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 void didAttach(); | 172 void didAttach(); |
| 173 void didDetach(); | 173 void didDetach(); |
| 174 bool shouldClearResolver() const; | 174 bool shouldClearResolver() const; |
| 175 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode
); | 175 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode
); |
| 176 unsigned resolverAccessCount() const; | 176 unsigned resolverAccessCount() const; |
| 177 | 177 |
| 178 void collectDocumentActiveStyleSheets(StyleSheetCollectionBase&); | 178 void collectDocumentActiveStyleSheets(StyleSheetCollectionBase&); |
| 179 void markDocumentDirty(); | 179 void markDocumentDirty(); |
| 180 | 180 |
| 181 static PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, T
extPosition startPosition, bool createdByParser); |
| 182 static void removeSheet(StyleSheetContents*); |
| 183 static void clearSheetCache(); |
| 184 |
| 181 private: | 185 private: |
| 182 StyleEngine(Document&); | 186 StyleEngine(Document&); |
| 183 | 187 |
| 184 StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 188 StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
| 185 StyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 189 StyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
| 186 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); | 190 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); |
| 187 void resolverThrowawayTimerFired(Timer<StyleEngine>*); | 191 void resolverThrowawayTimerFired(Timer<StyleEngine>*); |
| 188 | 192 |
| 189 void markTreeScopeDirty(TreeScope&); | 193 void markTreeScopeDirty(TreeScope&); |
| 190 | 194 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 unsigned m_lastResolverAccessCount; | 242 unsigned m_lastResolverAccessCount; |
| 239 Timer<StyleEngine> m_resolverThrowawayTimer; | 243 Timer<StyleEngine> m_resolverThrowawayTimer; |
| 240 OwnPtr<StyleResolver> m_resolver; | 244 OwnPtr<StyleResolver> m_resolver; |
| 241 | 245 |
| 242 RefPtr<CSSFontSelector> m_fontSelector; | 246 RefPtr<CSSFontSelector> m_fontSelector; |
| 243 }; | 247 }; |
| 244 | 248 |
| 245 } | 249 } |
| 246 | 250 |
| 247 #endif | 251 #endif |
| OLD | NEW |