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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/SegmentedFontData.h

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class PLATFORM_EXPORT SegmentedFontData : public FontData { 37 class PLATFORM_EXPORT SegmentedFontData : public FontData {
38 public: 38 public:
39 static PassRefPtr<SegmentedFontData> create() { 39 static PassRefPtr<SegmentedFontData> create() {
40 return adoptRef(new SegmentedFontData); 40 return adoptRef(new SegmentedFontData);
41 } 41 }
42 42
43 void appendFace(const PassRefPtr<FontDataForRangeSet> fontDataForRangeSet) { 43 void appendFace(const PassRefPtr<FontDataForRangeSet> fontDataForRangeSet) {
44 m_faces.append(fontDataForRangeSet); 44 m_faces.push_back(fontDataForRangeSet);
45 } 45 }
46 unsigned numFaces() const { return m_faces.size(); } 46 unsigned numFaces() const { return m_faces.size(); }
47 PassRefPtr<FontDataForRangeSet> faceAt(unsigned i) const { 47 PassRefPtr<FontDataForRangeSet> faceAt(unsigned i) const {
48 return m_faces[i]; 48 return m_faces[i];
49 } 49 }
50 bool containsCharacter(UChar32) const; 50 bool containsCharacter(UChar32) const;
51 51
52 private: 52 private:
53 SegmentedFontData() {} 53 SegmentedFontData() {}
54 54
55 const SimpleFontData* fontDataForCharacter(UChar32) const override; 55 const SimpleFontData* fontDataForCharacter(UChar32) const override;
56 56
57 bool isCustomFont() const override; 57 bool isCustomFont() const override;
58 bool isLoading() const override; 58 bool isLoading() const override;
59 bool isLoadingFallback() const override; 59 bool isLoadingFallback() const override;
60 bool isSegmented() const override; 60 bool isSegmented() const override;
61 bool shouldSkipDrawing() const override; 61 bool shouldSkipDrawing() const override;
62 62
63 Vector<RefPtr<FontDataForRangeSet>, 1> m_faces; 63 Vector<RefPtr<FontDataForRangeSet>, 1> m_faces;
64 }; 64 };
65 65
66 DEFINE_FONT_DATA_TYPE_CASTS(SegmentedFontData, true); 66 DEFINE_FONT_DATA_TYPE_CASTS(SegmentedFontData, true);
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // SegmentedFontData_h 70 #endif // SegmentedFontData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698