| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 for (TreeScope* treeScope : m_activeTreeScopes) | 333 for (TreeScope* treeScope : m_activeTreeScopes) |
| 334 updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved); | 334 updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved); |
| 335 } else { | 335 } else { |
| 336 for (TreeScope* treeScope : m_dirtyTreeScopes) | 336 for (TreeScope* treeScope : m_dirtyTreeScopes) |
| 337 updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved); | 337 updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved); |
| 338 } | 338 } |
| 339 for (TreeScope* treeScope : treeScopesRemoved) | 339 for (TreeScope* treeScope : treeScopesRemoved) |
| 340 m_activeTreeScopes.erase(treeScope); | 340 m_activeTreeScopes.erase(treeScope); |
| 341 } | 341 } |
| 342 | 342 |
| 343 InspectorInstrumentation::activeStyleSheetsUpdated(m_document); | 343 probe::activeStyleSheetsUpdated(m_document); |
| 344 | 344 |
| 345 m_dirtyTreeScopes.clear(); | 345 m_dirtyTreeScopes.clear(); |
| 346 m_documentScopeDirty = false; | 346 m_documentScopeDirty = false; |
| 347 m_allTreeScopesDirty = false; | 347 m_allTreeScopesDirty = false; |
| 348 } | 348 } |
| 349 | 349 |
| 350 void StyleEngine::updateViewport() { | 350 void StyleEngine::updateViewport() { |
| 351 if (m_viewportResolver) | 351 if (m_viewportResolver) |
| 352 m_viewportResolver->updateViewport(documentStyleSheetCollection()); | 352 m_viewportResolver->updateViewport(documentStyleSheetCollection()); |
| 353 } | 353 } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 | 579 |
| 580 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) { | 580 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) { |
| 581 if (!document().isActive()) | 581 if (!document().isActive()) |
| 582 return; | 582 return; |
| 583 | 583 |
| 584 if (m_resolver) | 584 if (m_resolver) |
| 585 m_resolver->invalidateMatchedPropertiesCache(); | 585 m_resolver->invalidateMatchedPropertiesCache(); |
| 586 document().setNeedsStyleRecalc( | 586 document().setNeedsStyleRecalc( |
| 587 SubtreeStyleChange, | 587 SubtreeStyleChange, |
| 588 StyleChangeReasonForTracing::create(StyleChangeReason::Fonts)); | 588 StyleChangeReasonForTracing::create(StyleChangeReason::Fonts)); |
| 589 InspectorInstrumentation::fontsUpdated(m_document); | 589 probe::fontsUpdated(m_document); |
| 590 } | 590 } |
| 591 | 591 |
| 592 void StyleEngine::setFontSelector(CSSFontSelector* fontSelector) { | 592 void StyleEngine::setFontSelector(CSSFontSelector* fontSelector) { |
| 593 if (m_fontSelector) | 593 if (m_fontSelector) |
| 594 m_fontSelector->unregisterForInvalidationCallbacks(this); | 594 m_fontSelector->unregisterForInvalidationCallbacks(this); |
| 595 m_fontSelector = fontSelector; | 595 m_fontSelector = fontSelector; |
| 596 if (m_fontSelector) | 596 if (m_fontSelector) |
| 597 m_fontSelector->registerForInvalidationCallbacks(this); | 597 m_fontSelector->registerForInvalidationCallbacks(this); |
| 598 } | 598 } |
| 599 | 599 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 DEFINE_TRACE_WRAPPERS(StyleEngine) { | 1151 DEFINE_TRACE_WRAPPERS(StyleEngine) { |
| 1152 for (auto sheet : m_injectedAuthorStyleSheets) { | 1152 for (auto sheet : m_injectedAuthorStyleSheets) { |
| 1153 visitor->traceWrappers(sheet); | 1153 visitor->traceWrappers(sheet); |
| 1154 } | 1154 } |
| 1155 visitor->traceWrappers(m_documentStyleSheetCollection); | 1155 visitor->traceWrappers(m_documentStyleSheetCollection); |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 } // namespace blink | 1158 } // namespace blink |
| OLD | NEW |