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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 if (!document().isActive()) | 602 if (!document().isActive()) |
603 return; | 603 return; |
604 | 604 |
605 if (m_resolver) | 605 if (m_resolver) |
606 m_resolver->invalidateMatchedPropertiesCache(); | 606 m_resolver->invalidateMatchedPropertiesCache(); |
607 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); | 607 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
608 } | 608 } |
609 | 609 |
610 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) | 610 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe
lector) |
611 { | 611 { |
| 612 #if !ENABLE(OILPAN) |
| 613 if (m_fontSelector) |
| 614 m_fontSelector->unregisterForInvalidationCallbacks(this); |
| 615 #endif |
612 m_fontSelector = fontSelector; | 616 m_fontSelector = fontSelector; |
| 617 if (m_fontSelector) |
| 618 m_fontSelector->registerForInvalidationCallbacks(this); |
613 } | 619 } |
614 | 620 |
615 void StyleEngine::platformColorsChanged() | 621 void StyleEngine::platformColorsChanged() |
616 { | 622 { |
617 if (m_resolver) | 623 if (m_resolver) |
618 m_resolver->invalidateMatchedPropertiesCache(); | 624 m_resolver->invalidateMatchedPropertiesCache(); |
619 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); | 625 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::PlatformColorChange)); |
620 } | 626 } |
621 | 627 |
622 void StyleEngine::classChangedForElement(const SpaceSplitString& changedClasses,
Element& element) | 628 void StyleEngine::classChangedForElement(const SpaceSplitString& changedClasses,
Element& element) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 visitor->trace(m_dirtyTreeScopes); | 723 visitor->trace(m_dirtyTreeScopes); |
718 visitor->trace(m_activeTreeScopes); | 724 visitor->trace(m_activeTreeScopes); |
719 visitor->trace(m_fontSelector); | 725 visitor->trace(m_fontSelector); |
720 visitor->trace(m_textToSheetCache); | 726 visitor->trace(m_textToSheetCache); |
721 visitor->trace(m_sheetToTextCache); | 727 visitor->trace(m_sheetToTextCache); |
722 #endif | 728 #endif |
723 CSSFontSelectorClient::trace(visitor); | 729 CSSFontSelectorClient::trace(visitor); |
724 } | 730 } |
725 | 731 |
726 } | 732 } |
OLD | NEW |