| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void StyleEngine::removeTreeScope(TreeScope& scope) | 68 void StyleEngine::removeTreeScope(TreeScope& scope) |
| 69 { | 69 { |
| 70 m_activeTreeScopes.remove(&scope); | 70 m_activeTreeScopes.remove(&scope); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void StyleEngine::updateActiveStyleSheets() | 73 void StyleEngine::updateActiveStyleSheets() |
| 74 { | 74 { |
| 75 ASSERT(!m_document->inStyleRecalc()); | 75 ASSERT(!m_document->inStyleRecalc()); |
| 76 ASSERT(m_resolver); | 76 ASSERT(m_resolver); |
| 77 | 77 |
| 78 StyleResolver& resolver = m_document->ensureStyleResolver(); | 78 m_resolver->resetMediaQueryAffectedByViewportChange(); |
| 79 | |
| 80 resolver.resetMediaQueryAffectedByViewportChange(); | |
| 81 | 79 |
| 82 for (TreeScope* treeScope : m_activeTreeScopes) | 80 for (TreeScope* treeScope : m_activeTreeScopes) |
| 83 treeScope->scopedStyleResolver().updateActiveStyleSheets(); | 81 treeScope->scopedStyleResolver().updateActiveStyleSheets(); |
| 84 | 82 |
| 85 updateDocumentFonts(); | 83 updateDocumentFonts(); |
| 86 } | 84 } |
| 87 | 85 |
| 88 void StyleEngine::resolverChanged() | 86 void StyleEngine::resolverChanged() |
| 89 { | 87 { |
| 90 if (!m_document->isActive()) | 88 if (!m_document->isActive()) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 m_sheetToTextCache.remove(contents); | 158 m_sheetToTextCache.remove(contents); |
| 161 } | 159 } |
| 162 | 160 |
| 163 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 161 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 164 { | 162 { |
| 165 m_resolver->invalidateMatchedPropertiesCache(); | 163 m_resolver->invalidateMatchedPropertiesCache(); |
| 166 m_document->setNeedsStyleRecalc(SubtreeStyleChange); | 164 m_document->setNeedsStyleRecalc(SubtreeStyleChange); |
| 167 } | 165 } |
| 168 | 166 |
| 169 } | 167 } |
| OLD | NEW |