| 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 | |
| 730 void StyleEngine::platformColorsChanged() | 725 void StyleEngine::platformColorsChanged() |
| 731 { | 726 { |
| 732 if (m_resolver) | 727 if (m_resolver) |
| 733 m_resolver->invalidateMatchedPropertiesCache(); | 728 m_resolver->invalidateMatchedPropertiesCache(); |
| 734 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); | 729 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); |
| 735 } | 730 } |
| 736 | 731 |
| 737 void StyleEngine::trace(Visitor* visitor) | 732 void StyleEngine::trace(Visitor* visitor) |
| 738 { | 733 { |
| 739 #if ENABLE(OILPAN) | 734 #if ENABLE(OILPAN) |
| 740 visitor->trace(m_document); | 735 visitor->trace(m_document); |
| 741 visitor->trace(m_injectedAuthorStyleSheets); | 736 visitor->trace(m_injectedAuthorStyleSheets); |
| 742 visitor->trace(m_authorStyleSheets); | 737 visitor->trace(m_authorStyleSheets); |
| 743 visitor->trace(m_documentStyleSheetCollection); | 738 visitor->trace(m_documentStyleSheetCollection); |
| 744 visitor->trace(m_styleSheetCollectionMap); | 739 visitor->trace(m_styleSheetCollectionMap); |
| 745 visitor->trace(m_resolver); | 740 visitor->trace(m_resolver); |
| 746 visitor->trace(m_dirtyTreeScopes); | 741 visitor->trace(m_dirtyTreeScopes); |
| 747 visitor->trace(m_activeTreeScopes); | 742 visitor->trace(m_activeTreeScopes); |
| 748 visitor->trace(m_fontSelector); | 743 visitor->trace(m_fontSelector); |
| 749 visitor->trace(m_textToSheetCache); | 744 visitor->trace(m_textToSheetCache); |
| 750 visitor->trace(m_sheetToTextCache); | 745 visitor->trace(m_sheetToTextCache); |
| 751 #endif | 746 #endif |
| 752 CSSFontSelectorClient::trace(visitor); | 747 CSSFontSelectorClient::trace(visitor); |
| 753 } | 748 } |
| 754 | 749 |
| 755 } | 750 } |
| OLD | NEW |