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

Side by Side Diff: sky/engine/core/css/resolver/ScopedStyleResolver.h

Issue 851873002: Move @font-face logic from ScopedStyleResolver to StyleEngine. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/ScopedStyleResolver.cpp » ('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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore CascadeOrder); 62 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore CascadeOrder);
63 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa scadeOrder); 63 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa scadeOrder);
64 64
65 const RuleFeatureSet& features() const { return m_features; } 65 const RuleFeatureSet& features() const { return m_features; }
66 66
67 void updateActiveStyleSheets(); 67 void updateActiveStyleSheets();
68 68
69 const MediaQueryResultList& viewportDependentMediaQueryResults() const; 69 const MediaQueryResultList& viewportDependentMediaQueryResults() const;
70 70
71 Vector<RefPtr<CSSStyleSheet> >& authorStyleSheets() { return m_authorStyleSh eets; } 71 Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() { return m_authorStyleShe ets; }
72 const Vector<RefPtr<CSSStyleSheet> >& authorStyleSheets() const { return m_a uthorStyleSheets; } 72 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au thorStyleSheets; }
73 73
74 void addStyleSheetCandidateNode(HTMLStyleElement&); 74 void addStyleSheetCandidateNode(HTMLStyleElement&);
75 void removeStyleSheetCandidateNode(HTMLStyleElement&); 75 void removeStyleSheetCandidateNode(HTMLStyleElement&);
76 76
77 private: 77 private:
78 explicit ScopedStyleResolver(TreeScope&); 78 explicit ScopedStyleResolver(TreeScope&);
79 79
80 void appendStyleSheet(CSSStyleSheet&); 80 void appendStyleSheet(CSSStyleSheet&);
81 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); 81 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets);
82 82
83 TreeScope& m_scope; 83 TreeScope& m_scope;
84 DocumentOrderedList m_styleSheetCandidateNodes; 84 DocumentOrderedList m_styleSheetCandidateNodes;
85 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; 85 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets;
86 MediaQueryResultList m_viewportDependentMediaQueryResults; 86 MediaQueryResultList m_viewportDependentMediaQueryResults;
87 RuleFeatureSet m_features; 87 RuleFeatureSet m_features;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ 92 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/ScopedStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698