mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1040668 part 6 - Add some specifier on gfxTextRun and gfxShapedWord so that compilers are able to reason out certain optimizations. r=jfkthame
This commit is contained in:
parent
dd323bcbe4
commit
db8da6ef2c
@ -1141,7 +1141,7 @@ protected:
|
||||
* The glyph data is copied into gfxTextRuns as needed from the cache of
|
||||
* ShapedWords associated with each gfxFont instance.
|
||||
*/
|
||||
class gfxShapedWord : public gfxShapedText
|
||||
class gfxShapedWord final : public gfxShapedText
|
||||
{
|
||||
public:
|
||||
// Create a ShapedWord that can hold glyphs for aLength characters,
|
||||
|
@ -476,7 +476,7 @@ public:
|
||||
void SortGlyphRuns();
|
||||
void SanitizeGlyphRuns();
|
||||
|
||||
CompressedGlyph* GetCharacterGlyphs() {
|
||||
CompressedGlyph* GetCharacterGlyphs() final {
|
||||
NS_ASSERTION(mCharacterGlyphs, "failed to initialize mCharacterGlyphs");
|
||||
return mCharacterGlyphs;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user