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

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

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: Created 4 years, 3 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 * This file is part of the internal font implementation. 2 * This file is part of the internal font implementation.
3 * 3 *
4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2007-2008 Torch Mobile, Inc. 5 * Copyright (C) 2007-2008 Torch Mobile, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 class FontDescription; 48 class FontDescription;
49 49
50 enum FontDataVariant { AutoVariant, NormalVariant, SmallCapsVariant, EmphasisMar kVariant }; 50 enum FontDataVariant { AutoVariant, NormalVariant, SmallCapsVariant, EmphasisMar kVariant };
51 51
52 class PLATFORM_EXPORT SimpleFontData : public FontData { 52 class PLATFORM_EXPORT SimpleFontData : public FontData {
53 public: 53 public:
54 // Used to create platform fonts. 54 // Used to create platform fonts.
55 static PassRefPtr<SimpleFontData> create(const FontPlatformData& platformDat a, PassRefPtr<CustomFontData> customData = nullptr, bool isTextOrientationFallba ck = false) 55 static PassRefPtr<SimpleFontData> create(const FontPlatformData& platformDat a, PassRefPtr<CustomFontData> customData = nullptr, bool isTextOrientationFallba ck = false)
56 { 56 {
57 return adoptRef(new SimpleFontData(platformData, customData, isTextOrien tationFallback)); 57 return adoptRef(new SimpleFontData(platformData, std::move(customData), isTextOrientationFallback));
58 } 58 }
59 59
60 ~SimpleFontData() override; 60 ~SimpleFontData() override;
61 61
62 const FontPlatformData& platformData() const { return m_platformData; } 62 const FontPlatformData& platformData() const { return m_platformData; }
63 const OpenTypeVerticalData* verticalData() const { return m_verticalData.get (); } 63 const OpenTypeVerticalData* verticalData() const { return m_verticalData.get (); }
64 64
65 PassRefPtr<SimpleFontData> smallCapsFontData(const FontDescription&) const; 65 PassRefPtr<SimpleFontData> smallCapsFontData(const FontDescription&) const;
66 PassRefPtr<SimpleFontData> emphasisMarkFontData(const FontDescription&) cons t; 66 PassRefPtr<SimpleFontData> emphasisMarkFontData(const FontDescription&) cons t;
67 67
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 m_glyphToWidthMap.setMetricsForGlyph(glyph, width); 229 m_glyphToWidthMap.setMetricsForGlyph(glyph, width);
230 return width; 230 return width;
231 #endif 231 #endif
232 } 232 }
233 233
234 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false); 234 DEFINE_FONT_DATA_TYPE_CASTS(SimpleFontData, false);
235 235
236 } // namespace blink 236 } // namespace blink
237 #endif // SimpleFontData_h 237 #endif // SimpleFontData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698