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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 UnorderedTreeScopeSet& treeScopesRemoved); | 308 UnorderedTreeScopeSet& treeScopesRemoved); |
309 | 309 |
310 bool shouldSkipInvalidationFor(const Element&) const; | 310 bool shouldSkipInvalidationFor(const Element&) const; |
311 void scheduleRuleSetInvalidationsForElement( | 311 void scheduleRuleSetInvalidationsForElement( |
312 Element&, | 312 Element&, |
313 const HeapHashSet<Member<RuleSet>>&); | 313 const HeapHashSet<Member<RuleSet>>&); |
314 void invalidateSlottedElements(HTMLSlotElement&); | 314 void invalidateSlottedElements(HTMLSlotElement&); |
315 | 315 |
316 void updateViewport(); | 316 void updateViewport(); |
317 void updateActiveStyleSheets(); | 317 void updateActiveStyleSheets(); |
| 318 void updateGlobalRuleSet() { |
| 319 DCHECK(!needsActiveStyleSheetUpdate()); |
| 320 m_globalRuleSet.update(document()); |
| 321 } |
318 const MediaQueryEvaluator& ensureMediaQueryEvaluator(); | 322 const MediaQueryEvaluator& ensureMediaQueryEvaluator(); |
319 | 323 |
320 Member<Document> m_document; | 324 Member<Document> m_document; |
321 bool m_isMaster; | 325 bool m_isMaster; |
322 | 326 |
323 // Track the number of currently loading top-level stylesheets needed for | 327 // Track the number of currently loading top-level stylesheets needed for |
324 // layout. Sheets loaded using the @import directive are not included in this | 328 // layout. Sheets loaded using the @import directive are not included in this |
325 // count. We use this count of pending sheets to detect when we can begin | 329 // count. We use this count of pending sheets to detect when we can begin |
326 // attaching elements and when it is safe to execute scripts. | 330 // attaching elements and when it is safe to execute scripts. |
327 int m_pendingScriptBlockingStylesheets = 0; | 331 int m_pendingScriptBlockingStylesheets = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 370 |
367 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 371 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
368 unsigned m_styleForElementCount = 0; | 372 unsigned m_styleForElementCount = 0; |
369 | 373 |
370 friend class StyleEngineTest; | 374 friend class StyleEngineTest; |
371 }; | 375 }; |
372 | 376 |
373 } // namespace blink | 377 } // namespace blink |
374 | 378 |
375 #endif | 379 #endif |
OLD | NEW |