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

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: Fixed tests for mac Created 5 years, 10 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 | « Source/core/dom/StyleEngine.h ('k') | Source/core/html/HTMLOptionElement.h » ('j') | 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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) 715 void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
716 { 716 {
717 if (!document().isActive()) 717 if (!document().isActive())
718 return; 718 return;
719 719
720 if (m_resolver) 720 if (m_resolver)
721 m_resolver->invalidateMatchedPropertiesCache(); 721 m_resolver->invalidateMatchedPropertiesCache();
722 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts)); 722 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::Fonts));
723 } 723 }
724 724
725 void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSe lector)
726 {
727 m_fontSelector = fontSelector;
728 }
729
725 void StyleEngine::platformColorsChanged() 730 void StyleEngine::platformColorsChanged()
726 { 731 {
727 if (m_resolver) 732 if (m_resolver)
728 m_resolver->invalidateMatchedPropertiesCache(); 733 m_resolver->invalidateMatchedPropertiesCache();
729 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::PlatformColorChange)); 734 document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::PlatformColorChange));
730 } 735 }
731 736
732 void StyleEngine::trace(Visitor* visitor) 737 void StyleEngine::trace(Visitor* visitor)
733 { 738 {
734 #if ENABLE(OILPAN) 739 #if ENABLE(OILPAN)
735 visitor->trace(m_document); 740 visitor->trace(m_document);
736 visitor->trace(m_injectedAuthorStyleSheets); 741 visitor->trace(m_injectedAuthorStyleSheets);
737 visitor->trace(m_authorStyleSheets); 742 visitor->trace(m_authorStyleSheets);
738 visitor->trace(m_documentStyleSheetCollection); 743 visitor->trace(m_documentStyleSheetCollection);
739 visitor->trace(m_styleSheetCollectionMap); 744 visitor->trace(m_styleSheetCollectionMap);
740 visitor->trace(m_resolver); 745 visitor->trace(m_resolver);
741 visitor->trace(m_dirtyTreeScopes); 746 visitor->trace(m_dirtyTreeScopes);
742 visitor->trace(m_activeTreeScopes); 747 visitor->trace(m_activeTreeScopes);
743 visitor->trace(m_fontSelector); 748 visitor->trace(m_fontSelector);
744 visitor->trace(m_textToSheetCache); 749 visitor->trace(m_textToSheetCache);
745 visitor->trace(m_sheetToTextCache); 750 visitor->trace(m_sheetToTextCache);
746 #endif 751 #endif
747 CSSFontSelectorClient::trace(visitor); 752 CSSFontSelectorClient::trace(visitor);
748 } 753 }
749 754
750 } 755 }
OLDNEW
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/html/HTMLOptionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698