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

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

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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 10 matching lines...) Expand all
21 * You should have received a copy of the GNU Library General Public License 21 * You should have received a copy of the GNU Library General Public License
22 * along with this library; see the file COPYING.LIB. If not, write to 22 * along with this library; see the file COPYING.LIB. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef StyleEngine_h 28 #ifndef StyleEngine_h
29 #define StyleEngine_h 29 #define StyleEngine_h
30 30
31 #include "core/css/CSSFontSelector.h"
31 #include "core/css/CSSFontSelectorClient.h" 32 #include "core/css/CSSFontSelectorClient.h"
32 #include "core/css/resolver/StyleResolver.h" 33 #include "core/css/resolver/StyleResolver.h"
33 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
34 #include "core/dom/DocumentOrderedList.h" 35 #include "core/dom/DocumentOrderedList.h"
35 #include "core/dom/DocumentStyleSheetCollection.h" 36 #include "core/dom/DocumentStyleSheetCollection.h"
36 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
37 #include "wtf/FastAllocBase.h" 38 #include "wtf/FastAllocBase.h"
38 #include "wtf/ListHashSet.h" 39 #include "wtf/ListHashSet.h"
39 #include "wtf/RefPtr.h" 40 #include "wtf/RefPtr.h"
40 #include "wtf/TemporaryChange.h" 41 #include "wtf/TemporaryChange.h"
41 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
42 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class CSSFontSelector;
47 class CSSStyleSheet; 47 class CSSStyleSheet;
48 class Node; 48 class Node;
49 class RuleFeatureSet; 49 class RuleFeatureSet;
50 class ShadowTreeStyleSheetCollection; 50 class ShadowTreeStyleSheetCollection;
51 class StyleRuleFontFace; 51 class StyleRuleFontFace;
52 class StyleSheet; 52 class StyleSheet;
53 class StyleSheetContents; 53 class StyleSheetContents;
54 54
55 class StyleEngine final : public CSSFontSelectorClient { 55 class StyleEngine final : public CSSFontSelectorClient {
56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 m_resolver->appendPendingAuthorStyleSheets(); 145 m_resolver->appendPendingAuthorStyleSheets();
146 } 146 }
147 return *m_resolver.get(); 147 return *m_resolver.get();
148 } 148 }
149 149
150 bool hasResolver() const { return m_resolver.get(); } 150 bool hasResolver() const { return m_resolver.get(); }
151 void clearResolver(); 151 void clearResolver();
152 void clearMasterResolver(); 152 void clearMasterResolver();
153 153
154 CSSFontSelector* fontSelector() { return m_fontSelector.get(); } 154 CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
155 void setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSelector) { m_fontSelector = fontSelector; }
tkent 2014/12/16 05:42:39 nit: Including CSSFontSelector.h for this inline f
keishi 2014/12/16 12:21:03 Done.
156
155 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace> >&); 157 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace> >&);
156 void clearFontCache(); 158 void clearFontCache();
157 // updateGenericFontFamilySettings is used from WebSettingsImpl. 159 // updateGenericFontFamilySettings is used from WebSettingsImpl.
158 void updateGenericFontFamilySettings(); 160 void updateGenericFontFamilySettings();
159 161
160 void didDetach(); 162 void didDetach();
161 bool shouldClearResolver() const; 163 bool shouldClearResolver() const;
162 void resolverChanged(StyleResolverUpdateMode); 164 void resolverChanged(StyleResolverUpdateMode);
163 unsigned resolverAccessCount() const; 165 unsigned resolverAccessCount() const;
164 166
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 248
247 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 249 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
248 250
249 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; 251 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache;
250 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 252 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
251 }; 253 };
252 254
253 } 255 }
254 256
255 #endif 257 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698