| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 InspectorInstrumentation::activeStyleSheetsUpdated(m_document); | 392 InspectorInstrumentation::activeStyleSheetsUpdated(m_document); |
| 393 m_usesRemUnits = documentStyleSheetCollection()->usesRemUnits(); | 393 m_usesRemUnits = documentStyleSheetCollection()->usesRemUnits(); |
| 394 | 394 |
| 395 m_dirtyTreeScopes.clear(); | 395 m_dirtyTreeScopes.clear(); |
| 396 m_documentScopeDirty = false; | 396 m_documentScopeDirty = false; |
| 397 | 397 |
| 398 return requiresFullStyleRecalc; | 398 return requiresFullStyleRecalc; |
| 399 } | 399 } |
| 400 | 400 |
| 401 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > StyleEngine::activeStyle
SheetsForInspector() const | 401 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> > StyleEngine::activeSt
yleSheetsForInspector() const |
| 402 { | 402 { |
| 403 if (m_activeTreeScopes.isEmpty()) | 403 if (m_activeTreeScopes.isEmpty()) |
| 404 return documentStyleSheetCollection()->styleSheetsForStyleSheetList(); | 404 return documentStyleSheetCollection()->activeAuthorStyleSheets(); |
| 405 | 405 |
| 406 WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheets; | 406 WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> > activeStyleSheets; |
| 407 | 407 |
| 408 activeStyleSheets.appendVector(documentStyleSheetCollection()->styleSheetsFo
rStyleSheetList()); | 408 activeStyleSheets.appendVector(documentStyleSheetCollection()->activeAuthorS
tyleSheets()); |
| 409 | 409 |
| 410 TreeScopeSet::const_iterator begin = m_activeTreeScopes.begin(); | 410 TreeScopeSet::const_iterator begin = m_activeTreeScopes.begin(); |
| 411 TreeScopeSet::const_iterator end = m_activeTreeScopes.end(); | 411 TreeScopeSet::const_iterator end = m_activeTreeScopes.end(); |
| 412 for (TreeScopeSet::const_iterator it = begin; it != end; ++it) { | 412 for (TreeScopeSet::const_iterator it = begin; it != end; ++it) { |
| 413 if (TreeScopeStyleSheetCollection* collection = m_styleSheetCollectionMa
p.get(*it)) | 413 if (TreeScopeStyleSheetCollection* collection = m_styleSheetCollectionMa
p.get(*it)) |
| 414 activeStyleSheets.appendVector(collection->styleSheetsForStyleSheetL
ist()); | 414 activeStyleSheets.appendVector(collection->activeAuthorStyleSheets()
); |
| 415 } | 415 } |
| 416 | 416 |
| 417 // FIXME: Inspector needs a vector which has all active stylesheets. | 417 // FIXME: Inspector needs a vector which has all active stylesheets. |
| 418 // However, creating such a large vector might cause performance regression. | 418 // However, creating such a large vector might cause performance regression. |
| 419 // Need to implement some smarter solution. | 419 // Need to implement some smarter solution. |
| 420 return activeStyleSheets; | 420 return activeStyleSheets; |
| 421 } | 421 } |
| 422 | 422 |
| 423 void StyleEngine::didRemoveShadowRoot(ShadowRoot* shadowRoot) | 423 void StyleEngine::didRemoveShadowRoot(ShadowRoot* shadowRoot) |
| 424 { | 424 { |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 visitor->trace(m_documentStyleSheetCollection); | 646 visitor->trace(m_documentStyleSheetCollection); |
| 647 visitor->trace(m_styleSheetCollectionMap); | 647 visitor->trace(m_styleSheetCollectionMap); |
| 648 visitor->trace(m_resolver); | 648 visitor->trace(m_resolver); |
| 649 visitor->trace(m_fontSelector); | 649 visitor->trace(m_fontSelector); |
| 650 visitor->trace(m_textToSheetCache); | 650 visitor->trace(m_textToSheetCache); |
| 651 visitor->trace(m_sheetToTextCache); | 651 visitor->trace(m_sheetToTextCache); |
| 652 CSSFontSelectorClient::trace(visitor); | 652 CSSFontSelectorClient::trace(visitor); |
| 653 } | 653 } |
| 654 | 654 |
| 655 } | 655 } |
| OLD | NEW |