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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 (*it)->collectFeaturesTo(features, visitedSharedStyleSheetContents); | 689 (*it)->collectFeaturesTo(features, visitedSharedStyleSheetContents); |
690 } | 690 } |
691 | 691 |
692 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 692 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
693 { | 693 { |
694 if (!document().isActive()) | 694 if (!document().isActive()) |
695 return; | 695 return; |
696 | 696 |
697 if (m_resolver) | 697 if (m_resolver) |
698 m_resolver->invalidateMatchedPropertiesCache(); | 698 m_resolver->invalidateMatchedPropertiesCache(); |
699 document().setNeedsStyleRecalc(SubtreeStyleChange); | 699 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
700 } | 700 } |
701 | 701 |
702 void StyleEngine::trace(Visitor* visitor) | 702 void StyleEngine::trace(Visitor* visitor) |
703 { | 703 { |
704 #if ENABLE(OILPAN) | 704 #if ENABLE(OILPAN) |
705 visitor->trace(m_document); | 705 visitor->trace(m_document); |
706 visitor->trace(m_injectedAuthorStyleSheets); | 706 visitor->trace(m_injectedAuthorStyleSheets); |
707 visitor->trace(m_authorStyleSheets); | 707 visitor->trace(m_authorStyleSheets); |
708 visitor->trace(m_documentStyleSheetCollection); | 708 visitor->trace(m_documentStyleSheetCollection); |
709 visitor->trace(m_styleSheetCollectionMap); | 709 visitor->trace(m_styleSheetCollectionMap); |
710 visitor->trace(m_scopedStyleResolvers); | 710 visitor->trace(m_scopedStyleResolvers); |
711 visitor->trace(m_resolver); | 711 visitor->trace(m_resolver); |
712 visitor->trace(m_fontSelector); | 712 visitor->trace(m_fontSelector); |
713 visitor->trace(m_textToSheetCache); | 713 visitor->trace(m_textToSheetCache); |
714 visitor->trace(m_sheetToTextCache); | 714 visitor->trace(m_sheetToTextCache); |
715 visitor->trace(m_xslStyleSheet); | 715 visitor->trace(m_xslStyleSheet); |
716 #endif | 716 #endif |
717 CSSFontSelectorClient::trace(visitor); | 717 CSSFontSelectorClient::trace(visitor); |
718 } | 718 } |
719 | 719 |
720 } | 720 } |
OLD | NEW |