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

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

Issue 838313002: Move StyleResolver code out of ScopedStyleResolver. (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
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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // FIXME: This only has 5 callers and should be removed. Callers should be e xplicit about 100 // FIXME: This only has 5 callers and should be removed. Callers should be e xplicit about
101 // their dependency on Document* instead of grabbing one through StyleResolv er. 101 // their dependency on Document* instead of grabbing one through StyleResolv er.
102 Document& document() { return *m_document; } 102 Document& document() { return *m_document; }
103 103
104 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further. 104 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further.
105 // https://bugs.webkit.org/show_bug.cgi?id=108890 105 // https://bugs.webkit.org/show_bug.cgi?id=108890
106 void appendAuthorStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); 106 void appendAuthorStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&);
107 void finishAppendAuthorStyleSheets(); 107 void finishAppendAuthorStyleSheets();
108 108
109 void processScopedRules(const RuleSet& authorRules, CSSStyleSheet*, unsigned sheetIndex, ContainerNode& scope);
110
111 void lazyAppendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSS tyleSheet> >&); 109 void lazyAppendAuthorStyleSheets(unsigned firstNew, const Vector<RefPtr<CSSS tyleSheet> >&);
112 void removePendingAuthorStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); 110 void removePendingAuthorStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&);
113 void appendPendingAuthorStyleSheets(); 111 void appendPendingAuthorStyleSheets();
114 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0; } 112 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0; }
115 113
116 void styleTreeResolveScopedKeyframesRules(const Element*, Vector<RawPtr<Scop edStyleResolver>, 8>&); 114 void styleTreeResolveScopedKeyframesRules(const Element*, Vector<RawPtr<Scop edStyleResolver>, 8>&);
117 115
118 // |properties| is an array with |count| elements. 116 // |properties| is an array with |count| elements.
119 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count , RenderStyle*); 117 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count , RenderStyle*);
120 118
121 void addMediaQueryResults(const MediaQueryResultList&);
122 bool mediaQueryAffectedByViewportChange() const; 119 bool mediaQueryAffectedByViewportChange() const;
123 120
124 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something . 121 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something .
125 void invalidateMatchedPropertiesCache(); 122 void invalidateMatchedPropertiesCache();
126 123
127 void notifyResizeForViewportUnits(); 124 void notifyResizeForViewportUnits();
128 125
129 StyleSharingList& styleSharingList(); 126 StyleSharingList& styleSharingList();
130 127
131 void addToStyleSharingList(Element&); 128 void addToStyleSharingList(Element&);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 195 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
199 unsigned m_styleResolverStatsSequence; 196 unsigned m_styleResolverStatsSequence;
200 197
201 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 198 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
202 unsigned m_accessCount; 199 unsigned m_accessCount;
203 }; 200 };
204 201
205 } // namespace blink 202 } // namespace blink
206 203
207 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 204 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698