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

Unified Diff: third_party/WebKit/Source/platform/fonts/SegmentedFontData.h

Issue 2066253002: Fix Refcount in FontDataCache for objects from FontFallbackIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
diff --git a/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h b/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
index 3e7cb7fb02c903ae510a8bde496c87a294839369..52bebcf9a8e59b9399f7a8a4a0b13b35008cf04a 100644
--- a/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
+++ b/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
@@ -39,9 +39,9 @@ public:
~SegmentedFontData() override;
- void appendFace(const FontDataForRangeSet& fontDataForRangeSet) { m_faces.append(fontDataForRangeSet); }
+ void appendFace(const PassRefPtr<FontDataForRangeSet> fontDataForRangeSet) { m_faces.append(fontDataForRangeSet); }
unsigned numFaces() const { return m_faces.size(); }
- const FontDataForRangeSet& faceAt(unsigned i) const { return m_faces[i]; }
+ const PassRefPtr<FontDataForRangeSet> faceAt(unsigned i) const { return m_faces[i]; }
bool containsCharacter(UChar32) const;
private:
@@ -55,7 +55,7 @@ private:
bool isSegmented() const override;
bool shouldSkipDrawing() const override;
- Vector<FontDataForRangeSet, 1> m_faces;
+ Vector<RefPtr<FontDataForRangeSet>, 1> m_faces;
};
DEFINE_FONT_DATA_TYPE_CASTS(SegmentedFontData, true);

Powered by Google App Engine
This is Rietveld 408576698