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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 664 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
665 { | 665 { |
666 if (!document().isActive()) | 666 if (!document().isActive()) |
667 return; | 667 return; |
668 | 668 |
669 if (m_resolver) | 669 if (m_resolver) |
670 m_resolver->invalidateMatchedPropertiesCache(); | 670 m_resolver->invalidateMatchedPropertiesCache(); |
671 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); | 671 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
672 } | 672 } |
673 | 673 |
| 674 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) |
| 675 { |
| 676 m_fontSelector = fontSelector; |
| 677 } |
| 678 |
674 void StyleEngine::trace(Visitor* visitor) | 679 void StyleEngine::trace(Visitor* visitor) |
675 { | 680 { |
676 #if ENABLE(OILPAN) | 681 #if ENABLE(OILPAN) |
677 visitor->trace(m_document); | 682 visitor->trace(m_document); |
678 visitor->trace(m_injectedAuthorStyleSheets); | 683 visitor->trace(m_injectedAuthorStyleSheets); |
679 visitor->trace(m_authorStyleSheets); | 684 visitor->trace(m_authorStyleSheets); |
680 visitor->trace(m_documentStyleSheetCollection); | 685 visitor->trace(m_documentStyleSheetCollection); |
681 visitor->trace(m_styleSheetCollectionMap); | 686 visitor->trace(m_styleSheetCollectionMap); |
682 visitor->trace(m_resolver); | 687 visitor->trace(m_resolver); |
683 visitor->trace(m_fontSelector); | 688 visitor->trace(m_fontSelector); |
684 visitor->trace(m_textToSheetCache); | 689 visitor->trace(m_textToSheetCache); |
685 visitor->trace(m_sheetToTextCache); | 690 visitor->trace(m_sheetToTextCache); |
686 #endif | 691 #endif |
687 CSSFontSelectorClient::trace(visitor); | 692 CSSFontSelectorClient::trace(visitor); |
688 } | 693 } |
689 | 694 |
690 } | 695 } |
OLD | NEW |