OLD | NEW |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 PassRefPtr<RenderStyle> styleForText(Text*); | 127 PassRefPtr<RenderStyle> styleForText(Text*); |
128 | 128 |
129 static PassRefPtr<RenderStyle> styleForDocument(Document&); | 129 static PassRefPtr<RenderStyle> styleForDocument(Document&); |
130 | 130 |
131 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 131 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about |
132 // their dependency on Document* instead of grabbing one through StyleResolv
er. | 132 // their dependency on Document* instead of grabbing one through StyleResolv
er. |
133 Document& document() { return m_document; } | 133 Document& document() { return m_document; } |
134 | 134 |
135 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte
r we factor StyleResolver further. | 135 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte
r we factor StyleResolver further. |
136 // https://bugs.webkit.org/show_bug.cgi?id=108890 | 136 // https://bugs.webkit.org/show_bug.cgi?id=108890 |
137 void appendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<RefPt
rWillBeMember<CSSStyleSheet> >&); | 137 void appendAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSSt
yleSheet> >&); |
138 void resetAuthorStyle(const ContainerNode*); | 138 void resetAuthorStyle(const ContainerNode*); |
139 void finishAppendAuthorStyleSheets(); | 139 void finishAppendAuthorStyleSheets(); |
140 | 140 |
141 void processScopedRules(const RuleSet& authorRules, CSSStyleSheet*, Containe
rNode& scope); | 141 void processScopedRules(const RuleSet& authorRules, CSSStyleSheet*, Containe
rNode& scope); |
142 | 142 |
143 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R
efPtrWillBeMember<CSSStyleSheet> >&); | 143 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R
efPtrWillBeMember<CSSStyleSheet> >&); |
144 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe
r<CSSStyleSheet> >&); | 144 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe
r<CSSStyleSheet> >&); |
145 void appendPendingAuthorStyleSheets(); | 145 void appendPendingAuthorStyleSheets(); |
146 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size(
) > 0 || m_needCollectFeatures; } | 146 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size(
) > 0 || m_needCollectFeatures; } |
147 | 147 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 327 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
328 unsigned m_styleResolverStatsSequence; | 328 unsigned m_styleResolverStatsSequence; |
329 | 329 |
330 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 330 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
331 unsigned m_accessCount; | 331 unsigned m_accessCount; |
332 }; | 332 }; |
333 | 333 |
334 } // namespace WebCore | 334 } // namespace WebCore |
335 | 335 |
336 #endif // StyleResolver_h | 336 #endif // StyleResolver_h |
OLD | NEW |