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

Side by Side Diff: Source/core/svg/SVGFontData.h

Issue 631153003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 13 matching lines...) Expand all
24 #include "platform/fonts/CustomFontData.h" 24 #include "platform/fonts/CustomFontData.h"
25 #include "wtf/WeakPtr.h" 25 #include "wtf/WeakPtr.h"
26 #include "wtf/text/WTFString.h" 26 #include "wtf/text/WTFString.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class SimpleFontData; 30 class SimpleFontData;
31 class SVGFontElement; 31 class SVGFontElement;
32 class SVGFontFaceElement; 32 class SVGFontFaceElement;
33 33
34 class SVGFontData FINAL : public CustomFontData { 34 class SVGFontData final : public CustomFontData {
35 public: 35 public:
36 static PassRefPtr<SVGFontData> create(SVGFontFaceElement* element) 36 static PassRefPtr<SVGFontData> create(SVGFontFaceElement* element)
37 { 37 {
38 return adoptRef(new SVGFontData(element)); 38 return adoptRef(new SVGFontData(element));
39 } 39 }
40 40
41 virtual ~SVGFontData(); 41 virtual ~SVGFontData();
42 42
43 virtual bool isSVGFont() const OVERRIDE { return true; }; 43 virtual bool isSVGFont() const override { return true; };
44 virtual bool shouldSkipDrawing() const OVERRIDE; 44 virtual bool shouldSkipDrawing() const override;
45 virtual void initializeFontData(SimpleFontData*, float fontSize) OVERRIDE; 45 virtual void initializeFontData(SimpleFontData*, float fontSize) override;
46 virtual float widthForSVGGlyph(Glyph, float fontSize) const OVERRIDE; 46 virtual float widthForSVGGlyph(Glyph, float fontSize) const override;
47 virtual bool fillSVGGlyphPage(GlyphPage*, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData*) const OVERRIDE; 47 virtual bool fillSVGGlyphPage(GlyphPage*, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData*) const override;
48 virtual bool applySVGGlyphSelection(SimpleShaper&, GlyphData&, bool mirror, int currentCharacter, unsigned& advanceLength) const OVERRIDE; 48 virtual bool applySVGGlyphSelection(SimpleShaper&, GlyphData&, bool mirror, int currentCharacter, unsigned& advanceLength) const override;
49 49
50 SVGFontFaceElement* svgFontFaceElement() const; 50 SVGFontFaceElement* svgFontFaceElement() const;
51 51
52 float horizontalOriginX() const { return m_horizontalOriginX; } 52 float horizontalOriginX() const { return m_horizontalOriginX; }
53 float horizontalOriginY() const { return m_horizontalOriginY; } 53 float horizontalOriginY() const { return m_horizontalOriginY; }
54 float horizontalAdvanceX() const { return m_horizontalAdvanceX; } 54 float horizontalAdvanceX() const { return m_horizontalAdvanceX; }
55 55
56 float verticalOriginX() const { return m_verticalOriginX; } 56 float verticalOriginX() const { return m_verticalOriginX; }
57 float verticalOriginY() const { return m_verticalOriginY; } 57 float verticalOriginY() const { return m_verticalOriginY; }
58 float verticalAdvanceY() const { return m_verticalAdvanceY; } 58 float verticalAdvanceY() const { return m_verticalAdvanceY; }
(...skipping 22 matching lines...) Expand all
81 float m_verticalOriginY; 81 float m_verticalOriginY;
82 float m_verticalAdvanceY; 82 float m_verticalAdvanceY;
83 }; 83 };
84 84
85 DEFINE_CUSTOM_FONT_DATA_TYPE_CASTS(SVGFontData, isSVGFont()); 85 DEFINE_CUSTOM_FONT_DATA_TYPE_CASTS(SVGFontData, isSVGFont());
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif 89 #endif
90 #endif // SVGFontData_h 90 #endif // SVGFontData_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.h ('k') | Source/core/svg/SVGFontElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698