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

Side by Side Diff: Source/core/dom/StyleEngine.h

Issue 1074703002: Componentization: make core/dom visible for blink_web and blink_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/core/dom/ScriptRunner.h ('k') | Source/core/dom/Text.h » ('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 * (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 10 matching lines...) Expand all
21 * You should have received a copy of the GNU Library General Public License 21 * You should have received a copy of the GNU Library General Public License
22 * along with this library; see the file COPYING.LIB. If not, write to 22 * along with this library; see the file COPYING.LIB. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef StyleEngine_h 28 #ifndef StyleEngine_h
29 #define StyleEngine_h 29 #define StyleEngine_h
30 30
31 #include "core/CoreExport.h"
31 #include "core/css/CSSFontSelectorClient.h" 32 #include "core/css/CSSFontSelectorClient.h"
32 #include "core/css/resolver/StyleResolver.h" 33 #include "core/css/resolver/StyleResolver.h"
33 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
34 #include "core/dom/DocumentOrderedList.h" 35 #include "core/dom/DocumentOrderedList.h"
35 #include "core/dom/DocumentStyleSheetCollection.h" 36 #include "core/dom/DocumentStyleSheetCollection.h"
36 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
37 #include "wtf/FastAllocBase.h" 38 #include "wtf/FastAllocBase.h"
38 #include "wtf/ListHashSet.h" 39 #include "wtf/ListHashSet.h"
39 #include "wtf/RefPtr.h" 40 #include "wtf/RefPtr.h"
40 #include "wtf/TemporaryChange.h" 41 #include "wtf/TemporaryChange.h"
41 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
42 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class CSSFontSelector; 47 class CSSFontSelector;
47 class CSSStyleSheet; 48 class CSSStyleSheet;
48 class Node; 49 class Node;
49 class RuleFeatureSet; 50 class RuleFeatureSet;
50 class ShadowTreeStyleSheetCollection; 51 class ShadowTreeStyleSheetCollection;
51 class StyleRuleFontFace; 52 class StyleRuleFontFace;
52 class StyleSheet; 53 class StyleSheet;
53 class StyleSheetContents; 54 class StyleSheetContents;
54 55
55 class StyleEngine final : public CSSFontSelectorClient { 56 class CORE_EXPORT StyleEngine final : public CSSFontSelectorClient {
56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleEngine); 57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleEngine);
57 public: 58 public:
58 59
59 class IgnoringPendingStylesheet : public TemporaryChange<bool> { 60 class IgnoringPendingStylesheet : public TemporaryChange<bool> {
60 public: 61 public:
61 IgnoringPendingStylesheet(StyleEngine& engine) 62 IgnoringPendingStylesheet(StyleEngine& engine)
62 : TemporaryChange<bool>(engine.m_ignorePendingStylesheets, true) 63 : TemporaryChange<bool>(engine.m_ignorePendingStylesheets, true)
63 { 64 {
64 } 65 }
65 }; 66 };
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 289
289 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 290 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
290 291
291 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te xtToSheetCache; 292 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te xtToSheetCache;
292 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 293 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
293 }; 294 };
294 295
295 } 296 }
296 297
297 #endif 298 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptRunner.h ('k') | Source/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698