diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h b/chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h index 70f148b460e..76cd7105c29 100644 --- a/chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h +++ b/chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.h @@ -28,9 +28,11 @@ class CORE_EXPORT CanvasFontCache final public: static CanvasFontCache* Create(Document& document) { - return new CanvasFontCache(document); + return MakeGarbageCollected<CanvasFontCache>(document); } + explicit CanvasFontCache(Document&); + MutableCSSPropertyValueSet* ParseFont(const String&); void PruneAll(); unsigned size(); @@ -44,8 +46,8 @@ class CORE_EXPORT CanvasFontCache final bool GetFontUsingDefaultStyle(const String&, Font&); // TaskObserver implementation - void DidProcessTask() override; - void WillProcessTask() override {} + void DidProcessTask(const base::PendingTask&) override; + void WillProcessTask(const base::PendingTask&) override {} // For testing bool IsInCache(const String&); @@ -53,7 +55,6 @@ class CORE_EXPORT CanvasFontCache final ~CanvasFontCache() override; private: - explicit CanvasFontCache(Document&); void Dispose(); void SchedulePruningIfNeeded(); typedef HeapHashMap<String, Member<MutableCSSPropertyValueSet>> |