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, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 void StyleEngine::didRemoveShadowRoot(ShadowRoot* shadowRoot) | 417 void StyleEngine::didRemoveShadowRoot(ShadowRoot* shadowRoot) |
418 { | 418 { |
419 m_styleSheetCollectionMap.remove(shadowRoot); | 419 m_styleSheetCollectionMap.remove(shadowRoot); |
420 } | 420 } |
421 | 421 |
422 void StyleEngine::appendActiveAuthorStyleSheets() | 422 void StyleEngine::appendActiveAuthorStyleSheets() |
423 { | 423 { |
424 ASSERT(isMaster()); | 424 ASSERT(isMaster()); |
425 | 425 |
426 m_resolver->setBuildScopedStyleTreeInDocumentOrder(true); | 426 m_resolver->setBuildScopedStyleTreeInDocumentOrder(true); |
427 m_resolver->appendAuthorStyleSheets(0, m_documentStyleSheetCollection.active
AuthorStyleSheets()); | 427 m_resolver->appendAuthorStyleSheets(m_documentStyleSheetCollection.activeAut
horStyleSheets()); |
428 | 428 |
429 TreeScopeSet::iterator begin = m_activeTreeScopes.begin(); | 429 TreeScopeSet::iterator begin = m_activeTreeScopes.begin(); |
430 TreeScopeSet::iterator end = m_activeTreeScopes.end(); | 430 TreeScopeSet::iterator end = m_activeTreeScopes.end(); |
431 for (TreeScopeSet::iterator it = begin; it != end; ++it) { | 431 for (TreeScopeSet::iterator it = begin; it != end; ++it) { |
432 if (TreeScopeStyleSheetCollection* collection = m_styleSheetCollectionMa
p.get(*it)) { | 432 if (TreeScopeStyleSheetCollection* collection = m_styleSheetCollectionMa
p.get(*it)) { |
433 m_resolver->setBuildScopedStyleTreeInDocumentOrder(!collection->scop
ingNodesForStyleScoped()); | 433 m_resolver->setBuildScopedStyleTreeInDocumentOrder(!collection->scop
ingNodesForStyleScoped()); |
434 m_resolver->appendAuthorStyleSheets(0, collection->activeAuthorStyle
Sheets()); | 434 m_resolver->appendAuthorStyleSheets(collection->activeAuthorStyleShe
ets()); |
435 } | 435 } |
436 } | 436 } |
437 m_resolver->finishAppendAuthorStyleSheets(); | 437 m_resolver->finishAppendAuthorStyleSheets(); |
438 m_resolver->setBuildScopedStyleTreeInDocumentOrder(false); | 438 m_resolver->setBuildScopedStyleTreeInDocumentOrder(false); |
439 } | 439 } |
440 | 440 |
441 void StyleEngine::createResolver() | 441 void StyleEngine::createResolver() |
442 { | 442 { |
443 // It is a programming error to attempt to resolve style on a Document | 443 // It is a programming error to attempt to resolve style on a Document |
444 // which is not in a frame. Code which hits this should have checked | 444 // which is not in a frame. Code which hits this should have checked |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 visitor->trace(m_authorStyleSheets); | 635 visitor->trace(m_authorStyleSheets); |
636 visitor->trace(m_documentStyleSheetCollection); | 636 visitor->trace(m_documentStyleSheetCollection); |
637 visitor->trace(m_styleSheetCollectionMap); | 637 visitor->trace(m_styleSheetCollectionMap); |
638 visitor->trace(m_resolver); | 638 visitor->trace(m_resolver); |
639 visitor->trace(m_fontSelector); | 639 visitor->trace(m_fontSelector); |
640 visitor->trace(m_textToSheetCache); | 640 visitor->trace(m_textToSheetCache); |
641 visitor->trace(m_sheetToTextCache); | 641 visitor->trace(m_sheetToTextCache); |
642 } | 642 } |
643 | 643 |
644 } | 644 } |
OLD | NEW |