| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 { | 74 { |
| 75 ASSERT(!m_document->inStyleRecalc()); | 75 ASSERT(!m_document->inStyleRecalc()); |
| 76 ASSERT(m_resolver); | 76 ASSERT(m_resolver); |
| 77 | 77 |
| 78 for (TreeScope* treeScope : m_activeTreeScopes) | 78 for (TreeScope* treeScope : m_activeTreeScopes) |
| 79 treeScope->styleSheets().updateActiveStyleSheets(*m_resolver); | 79 treeScope->styleSheets().updateActiveStyleSheets(*m_resolver); |
| 80 | 80 |
| 81 m_document->renderView()->style()->font().update(fontSelector()); | 81 m_document->renderView()->style()->font().update(fontSelector()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 unsigned StyleEngine::resolverAccessCount() const | |
| 85 { | |
| 86 return m_resolver->accessCount(); | |
| 87 } | |
| 88 | |
| 89 void StyleEngine::resolverChanged() | 84 void StyleEngine::resolverChanged() |
| 90 { | 85 { |
| 91 if (!m_document->isActive()) | 86 if (!m_document->isActive()) |
| 92 return; | 87 return; |
| 93 updateActiveStyleSheets(); | 88 updateActiveStyleSheets(); |
| 94 } | 89 } |
| 95 | 90 |
| 96 void StyleEngine::clearFontCache() | 91 void StyleEngine::clearFontCache() |
| 97 { | 92 { |
| 98 m_fontSelector->fontFaceCache()->clearCSSConnected(); | 93 m_fontSelector->fontFaceCache()->clearCSSConnected(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 m_sheetToTextCache.remove(contents); | 137 m_sheetToTextCache.remove(contents); |
| 143 } | 138 } |
| 144 | 139 |
| 145 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 140 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 146 { | 141 { |
| 147 m_resolver->invalidateMatchedPropertiesCache(); | 142 m_resolver->invalidateMatchedPropertiesCache(); |
| 148 m_document->setNeedsStyleRecalc(SubtreeStyleChange); | 143 m_document->setNeedsStyleRecalc(SubtreeStyleChange); |
| 149 } | 144 } |
| 150 | 145 |
| 151 } | 146 } |
| OLD | NEW |