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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 300 } |
301 | 301 |
302 void StyleEngine::updateActiveStyleSheets(StyleResolverUpdateMode updateMode) | 302 void StyleEngine::updateActiveStyleSheets(StyleResolverUpdateMode updateMode) |
303 { | 303 { |
304 ASSERT(isMaster()); | 304 ASSERT(isMaster()); |
305 ASSERT(!document().inStyleRecalc()); | 305 ASSERT(!document().inStyleRecalc()); |
306 | 306 |
307 if (!document().isActive()) | 307 if (!document().isActive()) |
308 return; | 308 return; |
309 | 309 |
| 310 TRACE_EVENT0("blink,blink_style", "StyleEngine::updateActiveStyleSheets"); |
| 311 |
310 if (shouldUpdateDocumentStyleSheetCollection(updateMode)) | 312 if (shouldUpdateDocumentStyleSheetCollection(updateMode)) |
311 documentStyleSheetCollection()->updateActiveStyleSheets(*this, updateMod
e); | 313 documentStyleSheetCollection()->updateActiveStyleSheets(*this, updateMod
e); |
312 | 314 |
313 if (shouldUpdateShadowTreeStyleSheetCollection(updateMode)) { | 315 if (shouldUpdateShadowTreeStyleSheetCollection(updateMode)) { |
314 UnorderedTreeScopeSet treeScopesRemoved; | 316 UnorderedTreeScopeSet treeScopesRemoved; |
315 | 317 |
316 if (updateMode == FullStyleUpdate) { | 318 if (updateMode == FullStyleUpdate) { |
317 for (TreeScope* treeScope : m_activeTreeScopes) | 319 for (TreeScope* treeScope : m_activeTreeScopes) |
318 updateActiveStyleSheetsInShadow(updateMode, treeScope, treeScope
sRemoved); | 320 updateActiveStyleSheetsInShadow(updateMode, treeScope, treeScope
sRemoved); |
319 } else { | 321 } else { |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 visitor->trace(m_dirtyTreeScopes); | 792 visitor->trace(m_dirtyTreeScopes); |
791 visitor->trace(m_activeTreeScopes); | 793 visitor->trace(m_activeTreeScopes); |
792 visitor->trace(m_fontSelector); | 794 visitor->trace(m_fontSelector); |
793 visitor->trace(m_textToSheetCache); | 795 visitor->trace(m_textToSheetCache); |
794 visitor->trace(m_sheetToTextCache); | 796 visitor->trace(m_sheetToTextCache); |
795 #endif | 797 #endif |
796 CSSFontSelectorClient::trace(visitor); | 798 CSSFontSelectorClient::trace(visitor); |
797 } | 799 } |
798 | 800 |
799 } // namespace blink | 801 } // namespace blink |
OLD | NEW |