| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 606 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 607 { | 607 { |
| 608 if (!document().isActive()) | 608 if (!document().isActive()) |
| 609 return; | 609 return; |
| 610 | 610 |
| 611 if (m_resolver) | 611 if (m_resolver) |
| 612 m_resolver->invalidateMatchedPropertiesCache(); | 612 m_resolver->invalidateMatchedPropertiesCache(); |
| 613 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); | 613 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
| 614 } | 614 } |
| 615 | 615 |
| 616 CSSFontSelector* StyleEngine::fontSelector() const | |
| 617 { | |
| 618 return m_fontSelector.get(); | |
| 619 } | |
| 620 | |
| 621 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) | 616 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) |
| 622 { | 617 { |
| 623 #if !ENABLE(OILPAN) | 618 #if !ENABLE(OILPAN) |
| 624 if (m_fontSelector) | 619 if (m_fontSelector) |
| 625 m_fontSelector->unregisterForInvalidationCallbacks(this); | 620 m_fontSelector->unregisterForInvalidationCallbacks(this); |
| 626 #endif | 621 #endif |
| 627 m_fontSelector = fontSelector; | 622 m_fontSelector = fontSelector; |
| 628 if (m_fontSelector) | 623 if (m_fontSelector) |
| 629 m_fontSelector->registerForInvalidationCallbacks(this); | 624 m_fontSelector->registerForInvalidationCallbacks(this); |
| 630 } | 625 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 visitor->trace(m_dirtyTreeScopes); | 723 visitor->trace(m_dirtyTreeScopes); |
| 729 visitor->trace(m_activeTreeScopes); | 724 visitor->trace(m_activeTreeScopes); |
| 730 visitor->trace(m_fontSelector); | 725 visitor->trace(m_fontSelector); |
| 731 visitor->trace(m_textToSheetCache); | 726 visitor->trace(m_textToSheetCache); |
| 732 visitor->trace(m_sheetToTextCache); | 727 visitor->trace(m_sheetToTextCache); |
| 733 #endif | 728 #endif |
| 734 CSSFontSelectorClient::trace(visitor); | 729 CSSFontSelectorClient::trace(visitor); |
| 735 } | 730 } |
| 736 | 731 |
| 737 } | 732 } |
| OLD | NEW |