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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) 606 void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
607 { 607 {
608 if (!document().isActive()) 608 if (!document().isActive())
609 return; 609 return;
610 610
611 if (m_resolver) 611 if (m_resolver)
612 m_resolver->invalidateMatchedPropertiesCache(); 612 m_resolver->invalidateMatchedPropertiesCache();
613 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts)); 613 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts));
614 } 614 }
615 615
616 CSSFontSelector* StyleEngine::fontSelector() const
617 {
618 return m_fontSelector.get();
619 }
620
616 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe lector) 621 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe lector)
617 { 622 {
618 #if !ENABLE(OILPAN) 623 #if !ENABLE(OILPAN)
619 if (m_fontSelector) 624 if (m_fontSelector)
620 m_fontSelector->unregisterForInvalidationCallbacks(this); 625 m_fontSelector->unregisterForInvalidationCallbacks(this);
621 #endif 626 #endif
622 m_fontSelector = fontSelector; 627 m_fontSelector = fontSelector;
623 if (m_fontSelector) 628 if (m_fontSelector)
624 m_fontSelector->registerForInvalidationCallbacks(this); 629 m_fontSelector->registerForInvalidationCallbacks(this);
625 } 630 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 visitor->trace(m_dirtyTreeScopes); 728 visitor->trace(m_dirtyTreeScopes);
724 visitor->trace(m_activeTreeScopes); 729 visitor->trace(m_activeTreeScopes);
725 visitor->trace(m_fontSelector); 730 visitor->trace(m_fontSelector);
726 visitor->trace(m_textToSheetCache); 731 visitor->trace(m_textToSheetCache);
727 visitor->trace(m_sheetToTextCache); 732 visitor->trace(m_sheetToTextCache);
728 #endif 733 #endif
729 CSSFontSelectorClient::trace(visitor); 734 CSSFontSelectorClient::trace(visitor);
730 } 735 }
731 736
732 } 737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698