OLD | NEW |
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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 15 matching lines...) Expand all Loading... |
26 * Boston, MA 02110-1301, USA. | 26 * Boston, MA 02110-1301, USA. |
27 * | 27 * |
28 */ | 28 */ |
29 | 29 |
30 #ifndef StyleEngine_h | 30 #ifndef StyleEngine_h |
31 #define StyleEngine_h | 31 #define StyleEngine_h |
32 | 32 |
33 #include "bindings/core/v8/ScriptWrappable.h" | 33 #include "bindings/core/v8/ScriptWrappable.h" |
34 #include "bindings/core/v8/TraceWrapperMember.h" | 34 #include "bindings/core/v8/TraceWrapperMember.h" |
35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "core/css/ActiveStyleSheets.h" |
36 #include "core/css/CSSFontSelectorClient.h" | 37 #include "core/css/CSSFontSelectorClient.h" |
37 #include "core/css/CSSGlobalRuleSet.h" | 38 #include "core/css/CSSGlobalRuleSet.h" |
38 #include "core/css/invalidation/StyleInvalidator.h" | 39 #include "core/css/invalidation/StyleInvalidator.h" |
39 #include "core/css/resolver/StyleResolver.h" | 40 #include "core/css/resolver/StyleResolver.h" |
40 #include "core/css/resolver/StyleResolverStats.h" | 41 #include "core/css/resolver/StyleResolverStats.h" |
41 #include "core/dom/Document.h" | 42 #include "core/dom/Document.h" |
42 #include "core/dom/DocumentOrderedList.h" | 43 #include "core/dom/DocumentOrderedList.h" |
43 #include "core/dom/DocumentStyleSheetCollection.h" | 44 #include "core/dom/DocumentStyleSheetCollection.h" |
44 #include "core/dom/StyleEngineContext.h" | 45 #include "core/dom/StyleEngineContext.h" |
45 #include "platform/heap/Handle.h" | 46 #include "platform/heap/Handle.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 const HeapVector<Member<RuleSet>>&); | 241 const HeapVector<Member<RuleSet>>&); |
241 | 242 |
242 unsigned styleForElementCount() const { return m_styleForElementCount; } | 243 unsigned styleForElementCount() const { return m_styleForElementCount; } |
243 void incStyleForElementCount() { m_styleForElementCount++; } | 244 void incStyleForElementCount() { m_styleForElementCount++; } |
244 | 245 |
245 StyleResolverStats* stats() { return m_styleResolverStats.get(); } | 246 StyleResolverStats* stats() { return m_styleResolverStats.get(); } |
246 void setStatsEnabled(bool); | 247 void setStatsEnabled(bool); |
247 | 248 |
248 PassRefPtr<ComputedStyle> findSharedStyle(const ElementResolveContext&); | 249 PassRefPtr<ComputedStyle> findSharedStyle(const ElementResolveContext&); |
249 | 250 |
| 251 void applyRuleSetChanges(TreeScope&, |
| 252 const ActiveStyleSheetVector& oldStyleSheets, |
| 253 const ActiveStyleSheetVector& newStyleSheets); |
| 254 |
250 DECLARE_VIRTUAL_TRACE(); | 255 DECLARE_VIRTUAL_TRACE(); |
251 DECLARE_TRACE_WRAPPERS(); | 256 DECLARE_TRACE_WRAPPERS(); |
252 | 257 |
253 private: | 258 private: |
254 // CSSFontSelectorClient implementation. | 259 // CSSFontSelectorClient implementation. |
255 void fontsNeedUpdate(CSSFontSelector*) override; | 260 void fontsNeedUpdate(CSSFontSelector*) override; |
256 | 261 |
257 private: | 262 private: |
258 StyleEngine(Document&); | 263 StyleEngine(Document&); |
259 | 264 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 359 |
355 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 360 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
356 unsigned m_styleForElementCount = 0; | 361 unsigned m_styleForElementCount = 0; |
357 | 362 |
358 friend class StyleEngineTest; | 363 friend class StyleEngineTest; |
359 }; | 364 }; |
360 | 365 |
361 } // namespace blink | 366 } // namespace blink |
362 | 367 |
363 #endif | 368 #endif |
OLD | NEW |