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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class StyleRuleFontFace; | 53 class StyleRuleFontFace; |
54 class StyleSheet; | 54 class StyleSheet; |
55 class StyleSheetContents; | 55 class StyleSheetContents; |
56 | 56 |
57 class CORE_EXPORT StyleEngine final : public NoBaseWillBeGarbageCollectedFinaliz
ed<StyleEngine>, public CSSFontSelectorClient { | 57 class CORE_EXPORT StyleEngine final : public NoBaseWillBeGarbageCollectedFinaliz
ed<StyleEngine>, public CSSFontSelectorClient { |
58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleEngine); | 58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleEngine); |
59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StyleEngine); | 59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StyleEngine); |
60 public: | 60 public: |
61 | 61 |
62 class IgnoringPendingStylesheet : public TemporaryChange<bool> { | 62 class IgnoringPendingStylesheet : public TemporaryChange<bool> { |
| 63 DISALLOW_ALLOCATION(); |
63 public: | 64 public: |
64 IgnoringPendingStylesheet(StyleEngine& engine) | 65 IgnoringPendingStylesheet(StyleEngine& engine) |
65 : TemporaryChange<bool>(engine.m_ignorePendingStylesheets, true) | 66 : TemporaryChange<bool>(engine.m_ignorePendingStylesheets, true) |
66 { | 67 { |
67 } | 68 } |
68 }; | 69 }; |
69 | 70 |
70 friend class IgnoringPendingStylesheet; | 71 friend class IgnoringPendingStylesheet; |
71 | 72 |
72 static PassOwnPtrWillBeRawPtr<StyleEngine> create(Document& document) { retu
rn adoptPtrWillBeNoop(new StyleEngine(document)); } | 73 static PassOwnPtrWillBeRawPtr<StyleEngine> create(Document& document) { retu
rn adoptPtrWillBeNoop(new StyleEngine(document)); } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 258 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
258 | 259 |
259 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te
xtToSheetCache; | 260 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te
xtToSheetCache; |
260 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 261 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
261 }; | 262 }; |
262 | 263 |
263 } | 264 } |
264 | 265 |
265 #endif | 266 #endif |
OLD | NEW |