| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 for (TreeScopeSet::iterator it = treeScopes.begin(); it != treeScopes.en
d(); ++it) { | 374 for (TreeScopeSet::iterator it = treeScopes.begin(); it != treeScopes.en
d(); ++it) { |
| 375 TreeScope* treeScope = *it; | 375 TreeScope* treeScope = *it; |
| 376 ASSERT(treeScope != m_document); | 376 ASSERT(treeScope != m_document); |
| 377 ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeS
tyleSheetCollection*>(styleSheetCollectionFor(*treeScope)); | 377 ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeS
tyleSheetCollection*>(styleSheetCollectionFor(*treeScope)); |
| 378 ASSERT(collection); | 378 ASSERT(collection); |
| 379 collection->updateActiveStyleSheets(this, updateMode); | 379 collection->updateActiveStyleSheets(this, updateMode); |
| 380 if (!collection->hasStyleSheetCandidateNodes()) | 380 if (!collection->hasStyleSheetCandidateNodes()) |
| 381 treeScopesRemoved.add(treeScope); | 381 treeScopesRemoved.add(treeScope); |
| 382 } | 382 } |
| 383 if (!treeScopesRemoved.isEmpty()) | 383 m_activeTreeScopes.removeAll(treeScopesRemoved); |
| 384 for (HashSet<TreeScope*>::iterator it = treeScopesRemoved.begin(); i
t != treeScopesRemoved.end(); ++it) | |
| 385 m_activeTreeScopes.remove(*it); | |
| 386 } | 384 } |
| 387 | 385 |
| 388 InspectorInstrumentation::activeStyleSheetsUpdated(&m_document); | 386 InspectorInstrumentation::activeStyleSheetsUpdated(&m_document); |
| 389 m_usesRemUnits = m_documentStyleSheetCollection.usesRemUnits(); | 387 m_usesRemUnits = m_documentStyleSheetCollection.usesRemUnits(); |
| 390 | 388 |
| 391 m_dirtyTreeScopes.clear(); | 389 m_dirtyTreeScopes.clear(); |
| 392 m_documentScopeDirty = false; | 390 m_documentScopeDirty = false; |
| 393 | 391 |
| 394 return requiresFullStyleRecalc; | 392 return requiresFullStyleRecalc; |
| 395 } | 393 } |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 visitor->trace(m_authorStyleSheets); | 635 visitor->trace(m_authorStyleSheets); |
| 638 visitor->trace(m_documentStyleSheetCollection); | 636 visitor->trace(m_documentStyleSheetCollection); |
| 639 visitor->trace(m_styleSheetCollectionMap); | 637 visitor->trace(m_styleSheetCollectionMap); |
| 640 visitor->trace(m_resolver); | 638 visitor->trace(m_resolver); |
| 641 visitor->trace(m_fontSelector); | 639 visitor->trace(m_fontSelector); |
| 642 visitor->trace(m_textToSheetCache); | 640 visitor->trace(m_textToSheetCache); |
| 643 visitor->trace(m_sheetToTextCache); | 641 visitor->trace(m_sheetToTextCache); |
| 644 } | 642 } |
| 645 | 643 |
| 646 } | 644 } |
| OLD | NEW |