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

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

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) 664 void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
665 { 665 {
666 if (!document().isActive()) 666 if (!document().isActive())
667 return; 667 return;
668 668
669 if (m_resolver) 669 if (m_resolver)
670 m_resolver->invalidateMatchedPropertiesCache(); 670 m_resolver->invalidateMatchedPropertiesCache();
671 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts)); 671 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts));
672 } 672 }
673 673
674 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe lector)
675 {
676 m_fontSelector = fontSelector;
677 }
678
674 void StyleEngine::trace(Visitor* visitor) 679 void StyleEngine::trace(Visitor* visitor)
675 { 680 {
676 #if ENABLE(OILPAN) 681 #if ENABLE(OILPAN)
677 visitor->trace(m_document); 682 visitor->trace(m_document);
678 visitor->trace(m_injectedAuthorStyleSheets); 683 visitor->trace(m_injectedAuthorStyleSheets);
679 visitor->trace(m_authorStyleSheets); 684 visitor->trace(m_authorStyleSheets);
680 visitor->trace(m_documentStyleSheetCollection); 685 visitor->trace(m_documentStyleSheetCollection);
681 visitor->trace(m_styleSheetCollectionMap); 686 visitor->trace(m_styleSheetCollectionMap);
682 visitor->trace(m_resolver); 687 visitor->trace(m_resolver);
683 visitor->trace(m_fontSelector); 688 visitor->trace(m_fontSelector);
684 visitor->trace(m_textToSheetCache); 689 visitor->trace(m_textToSheetCache);
685 visitor->trace(m_sheetToTextCache); 690 visitor->trace(m_sheetToTextCache);
686 #endif 691 #endif
687 CSSFontSelectorClient::trace(visitor); 692 CSSFontSelectorClient::trace(visitor);
688 } 693 }
689 694
690 } 695 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698