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

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

Issue 1806653002: Shape unicode-range: font faces in only one iteration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update UnicodeRangeSetTests to RefPtrtr, rm copy constructor and test Created 4 years, 9 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 7da70d4e743b6affd93d9babb56a22c50eb0f198..3e7cb7fb02c903ae510a8bde496c87a294839369 100644
--- a/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
+++ b/third_party/WebKit/Source/platform/fonts/SegmentedFontData.h
@@ -28,7 +28,7 @@
#include "platform/PlatformExport.h"
#include "platform/fonts/FontData.h"
-#include "platform/fonts/FontDataRange.h"
+#include "platform/fonts/FontDataForRangeSet.h"
#include "platform/fonts/SimpleFontData.h"
namespace blink {
@@ -39,9 +39,9 @@ public:
~SegmentedFontData() override;
- void appendRange(const FontDataRange& range) { m_ranges.append(range); }
- unsigned numRanges() const { return m_ranges.size(); }
- const FontDataRange& rangeAt(unsigned i) const { return m_ranges[i]; }
+ void appendFace(const FontDataForRangeSet& fontDataForRangeSet) { m_faces.append(fontDataForRangeSet); }
+ unsigned numFaces() const { return m_faces.size(); }
+ const 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<FontDataRange, 1> m_ranges;
+ Vector<FontDataForRangeSet, 1> m_faces;
};
DEFINE_FONT_DATA_TYPE_CASTS(SegmentedFontData, true);

Powered by Google App Engine
This is Rietveld 408576698