| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 568 } |
| 569 | 569 |
| 570 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 570 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 571 { | 571 { |
| 572 if (!document().isActive()) | 572 if (!document().isActive()) |
| 573 return; | 573 return; |
| 574 | 574 |
| 575 if (m_resolver) | 575 if (m_resolver) |
| 576 m_resolver->invalidateMatchedPropertiesCache(); | 576 m_resolver->invalidateMatchedPropertiesCache(); |
| 577 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); | 577 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci
ng::create(StyleChangeReason::Fonts)); |
| 578 InspectorInstrumentation::fontsUpdated(m_document); |
| 578 } | 579 } |
| 579 | 580 |
| 580 void StyleEngine::setFontSelector(CSSFontSelector* fontSelector) | 581 void StyleEngine::setFontSelector(CSSFontSelector* fontSelector) |
| 581 { | 582 { |
| 582 if (m_fontSelector) | 583 if (m_fontSelector) |
| 583 m_fontSelector->unregisterForInvalidationCallbacks(this); | 584 m_fontSelector->unregisterForInvalidationCallbacks(this); |
| 584 m_fontSelector = fontSelector; | 585 m_fontSelector = fontSelector; |
| 585 if (m_fontSelector) | 586 if (m_fontSelector) |
| 586 m_fontSelector->registerForInvalidationCallbacks(this); | 587 m_fontSelector->registerForInvalidationCallbacks(this); |
| 587 } | 588 } |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 | 829 |
| 829 DEFINE_TRACE_WRAPPERS(StyleEngine) | 830 DEFINE_TRACE_WRAPPERS(StyleEngine) |
| 830 { | 831 { |
| 831 for (auto sheet : m_injectedAuthorStyleSheets) { | 832 for (auto sheet : m_injectedAuthorStyleSheets) { |
| 832 visitor->traceWrappers(sheet); | 833 visitor->traceWrappers(sheet); |
| 833 } | 834 } |
| 834 visitor->traceWrappers(m_documentStyleSheetCollection); | 835 visitor->traceWrappers(m_documentStyleSheetCollection); |
| 835 } | 836 } |
| 836 | 837 |
| 837 } // namespace blink | 838 } // namespace blink |
| OLD | NEW |