diff options
Diffstat (limited to 'chromium/ui/gfx/font_fallback_linux.cc')
-rw-r--r-- | chromium/ui/gfx/font_fallback_linux.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/ui/gfx/font_fallback_linux.cc b/chromium/ui/gfx/font_fallback_linux.cc index a172655c886..5fcad63e26e 100644 --- a/chromium/ui/gfx/font_fallback_linux.cc +++ b/chromium/ui/gfx/font_fallback_linux.cc @@ -14,6 +14,7 @@ #include "base/files/file_path.h" #include "base/lazy_instance.h" #include "base/memory/ptr_util.h" +#include "base/memory/raw_ptr.h" #include "base/no_destructor.h" #include "base/strings/string_piece.h" #include "base/trace_event/trace_event.h" @@ -176,7 +177,7 @@ class FallbackFontEntry { FontRenderParams font_params_; // Font code points coverage. - FcCharSet* charset_; + raw_ptr<FcCharSet> charset_; }; using FallbackFontEntries = std::vector<FallbackFontEntry>; @@ -415,7 +416,7 @@ class CachedFont { FallbackFontData fallback_font_; // supported_characters_ is owned by the parent // FcFontSet and should never be freed. - FcCharSet* supported_characters_; + raw_ptr<FcCharSet> supported_characters_; }; class CachedFontSet { @@ -502,7 +503,7 @@ class CachedFontSet { } } - FcFontSet* font_set_; // Owned by this object. + raw_ptr<FcFontSet> font_set_; // Owned by this object. // CachedFont has a FcCharset* which points into the FcFontSet. // If the FcFontSet is ever destroyed, the fallback list // must be cleared first. |