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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 m_resolver->invalidateMatchedPropertiesCache(); | 552 m_resolver->invalidateMatchedPropertiesCache(); |
553 FontCache::fontCache()->invalidateShapeCache(); | 553 FontCache::fontCache()->invalidateShapeCache(); |
554 } | 554 } |
555 | 555 |
556 void StyleEngine::removeFontFaceRules( | 556 void StyleEngine::removeFontFaceRules( |
557 const HeapVector<Member<const StyleRuleFontFace>>& fontFaceRules) { | 557 const HeapVector<Member<const StyleRuleFontFace>>& fontFaceRules) { |
558 if (!m_fontSelector) | 558 if (!m_fontSelector) |
559 return; | 559 return; |
560 | 560 |
561 FontFaceCache* cache = m_fontSelector->fontFaceCache(); | 561 FontFaceCache* cache = m_fontSelector->fontFaceCache(); |
562 for (unsigned i = 0; i < fontFaceRules.size(); ++i) | 562 for (const auto& rule : fontFaceRules) |
563 cache->remove(fontFaceRules[i]); | 563 cache->remove(rule); |
564 if (m_resolver) | 564 if (m_resolver) |
565 m_resolver->invalidateMatchedPropertiesCache(); | 565 m_resolver->invalidateMatchedPropertiesCache(); |
566 } | 566 } |
567 | 567 |
568 void StyleEngine::markTreeScopeDirty(TreeScope& scope) { | 568 void StyleEngine::markTreeScopeDirty(TreeScope& scope) { |
569 if (scope == m_document) { | 569 if (scope == m_document) { |
570 markDocumentDirty(); | 570 markDocumentDirty(); |
571 return; | 571 return; |
572 } | 572 } |
573 | 573 |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 } | 1241 } |
1242 | 1242 |
1243 DEFINE_TRACE_WRAPPERS(StyleEngine) { | 1243 DEFINE_TRACE_WRAPPERS(StyleEngine) { |
1244 for (auto sheet : m_injectedAuthorStyleSheets) { | 1244 for (auto sheet : m_injectedAuthorStyleSheets) { |
1245 visitor->traceWrappers(sheet); | 1245 visitor->traceWrappers(sheet); |
1246 } | 1246 } |
1247 visitor->traceWrappers(m_documentStyleSheetCollection); | 1247 visitor->traceWrappers(m_documentStyleSheetCollection); |
1248 } | 1248 } |
1249 | 1249 |
1250 } // namespace blink | 1250 } // namespace blink |
OLD | NEW |