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

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.h

Issue 2345893004: Evacuate ComputedStyle references from the CSS*Value hierarchy (Closed)
Patch Set: Include WTFString.h in CSSValuePair.h Created 4 years, 3 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 | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CanvasFontCache_h 5 #ifndef CanvasFontCache_h
6 #define CanvasFontCache_h 6 #define CanvasFontCache_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/StylePropertySet.h" 9 #include "core/css/StylePropertySet.h"
10 #include "platform/fonts/Font.h" 10 #include "platform/fonts/Font.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "public/platform/WebThread.h" 12 #include "public/platform/WebThread.h"
13 #include "wtf/HashMap.h" 13 #include "wtf/HashMap.h"
14 #include "wtf/ListHashSet.h" 14 #include "wtf/ListHashSet.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 #include <memory> 16 #include <memory>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ComputedStyle;
20 class Document; 21 class Document;
21 class FontCachePurgePreventer; 22 class FontCachePurgePreventer;
22 23
23 class CORE_EXPORT CanvasFontCache final : public GarbageCollectedFinalized<Canva sFontCache>, public WebThread::TaskObserver { 24 class CORE_EXPORT CanvasFontCache final : public GarbageCollectedFinalized<Canva sFontCache>, public WebThread::TaskObserver {
24 public: 25 public:
25 static CanvasFontCache* create(Document& document) 26 static CanvasFontCache* create(Document& document)
26 { 27 {
27 return new CanvasFontCache(document); 28 return new CanvasFontCache(document);
28 } 29 }
29 30
(...skipping 28 matching lines...) Expand all
58 ListHashSet<String> m_fontLRUList; 59 ListHashSet<String> m_fontLRUList;
59 std::unique_ptr<FontCachePurgePreventer> m_mainCachePurgePreventer; 60 std::unique_ptr<FontCachePurgePreventer> m_mainCachePurgePreventer;
60 Member<Document> m_document; 61 Member<Document> m_document;
61 RefPtr<ComputedStyle> m_defaultFontStyle; 62 RefPtr<ComputedStyle> m_defaultFontStyle;
62 bool m_pruningScheduled; 63 bool m_pruningScheduled;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif 68 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698