Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: Source/core/dom/StyleEngine.cpp

Issue 304033005: Should check whether document.settings() is available or not when updating GenericFontFamilySetting… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 { 524 {
525 // We should not recreate FontSelector. Instead, clear fontFaceCache. 525 // We should not recreate FontSelector. Instead, clear fontFaceCache.
526 if (m_fontSelector) 526 if (m_fontSelector)
527 m_fontSelector->fontFaceCache()->clear(); 527 m_fontSelector->fontFaceCache()->clear();
528 if (m_resolver) 528 if (m_resolver)
529 m_resolver->invalidateMatchedPropertiesCache(); 529 m_resolver->invalidateMatchedPropertiesCache();
530 } 530 }
531 531
532 void StyleEngine::updateGenericFontFamilySettings() 532 void StyleEngine::updateGenericFontFamilySettings()
533 { 533 {
534 if (!document().isActive() || !document().settings())
dglazkov 2014/05/29 22:24:28 Just checking: is this a symptom of a larger probl
tasak 2014/05/30 02:12:05 As far as I investigated, WebSettingsImpl::setSta
535 return;
534 if (!m_fontSelector) 536 if (!m_fontSelector)
535 return; 537 return;
536 538
537 m_fontSelector->updateGenericFontFamilySettings(*m_document); 539 m_fontSelector->updateGenericFontFamilySettings(*m_document);
538 if (m_resolver) 540 if (m_resolver)
539 m_resolver->invalidateMatchedPropertiesCache(); 541 m_resolver->invalidateMatchedPropertiesCache();
540 } 542 }
541 543
542 void StyleEngine::removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember< const StyleRuleFontFace> >& fontFaceRules) 544 void StyleEngine::removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember< const StyleRuleFontFace> >& fontFaceRules)
543 { 545 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 visitor->trace(m_authorStyleSheets); 643 visitor->trace(m_authorStyleSheets);
642 visitor->trace(m_documentStyleSheetCollection); 644 visitor->trace(m_documentStyleSheetCollection);
643 visitor->trace(m_styleSheetCollectionMap); 645 visitor->trace(m_styleSheetCollectionMap);
644 visitor->trace(m_resolver); 646 visitor->trace(m_resolver);
645 visitor->trace(m_fontSelector); 647 visitor->trace(m_fontSelector);
646 visitor->trace(m_textToSheetCache); 648 visitor->trace(m_textToSheetCache);
647 visitor->trace(m_sheetToTextCache); 649 visitor->trace(m_sheetToTextCache);
648 } 650 }
649 651
650 } 652 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698