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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 715 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
716 { | 716 { |
717 if (!document().isActive()) | 717 if (!document().isActive()) |
718 return; | 718 return; |
719 | 719 |
720 if (m_resolver) | 720 if (m_resolver) |
721 m_resolver->invalidateMatchedPropertiesCache(); | 721 m_resolver->invalidateMatchedPropertiesCache(); |
722 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); | 722 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
723 } | 723 } |
724 | 724 |
| 725 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) |
| 726 { |
| 727 m_fontSelector = fontSelector; |
| 728 } |
| 729 |
725 void StyleEngine::platformColorsChanged() | 730 void StyleEngine::platformColorsChanged() |
726 { | 731 { |
727 if (m_resolver) | 732 if (m_resolver) |
728 m_resolver->invalidateMatchedPropertiesCache(); | 733 m_resolver->invalidateMatchedPropertiesCache(); |
729 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); | 734 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); |
730 } | 735 } |
731 | 736 |
732 void StyleEngine::trace(Visitor* visitor) | 737 void StyleEngine::trace(Visitor* visitor) |
733 { | 738 { |
734 #if ENABLE(OILPAN) | 739 #if ENABLE(OILPAN) |
735 visitor->trace(m_document); | 740 visitor->trace(m_document); |
736 visitor->trace(m_injectedAuthorStyleSheets); | 741 visitor->trace(m_injectedAuthorStyleSheets); |
737 visitor->trace(m_authorStyleSheets); | 742 visitor->trace(m_authorStyleSheets); |
738 visitor->trace(m_documentStyleSheetCollection); | 743 visitor->trace(m_documentStyleSheetCollection); |
739 visitor->trace(m_styleSheetCollectionMap); | 744 visitor->trace(m_styleSheetCollectionMap); |
740 visitor->trace(m_resolver); | 745 visitor->trace(m_resolver); |
741 visitor->trace(m_dirtyTreeScopes); | 746 visitor->trace(m_dirtyTreeScopes); |
742 visitor->trace(m_activeTreeScopes); | 747 visitor->trace(m_activeTreeScopes); |
743 visitor->trace(m_fontSelector); | 748 visitor->trace(m_fontSelector); |
744 visitor->trace(m_textToSheetCache); | 749 visitor->trace(m_textToSheetCache); |
745 visitor->trace(m_sheetToTextCache); | 750 visitor->trace(m_sheetToTextCache); |
746 #endif | 751 #endif |
747 CSSFontSelectorClient::trace(visitor); | 752 CSSFontSelectorClient::trace(visitor); |
748 } | 753 } |
749 | 754 |
750 } | 755 } |
OLD | NEW |