|
Use glyph-ids for lookups of SVG font kerning-pairs
This CL eliminates the SVGTextMetrics::Glyph class in favor
of a simple Glyph (glyph-id). This shrinks SVGTextMetrics
objects by two pointers, and avoids the allocation of tiny
(often single-character/code-unit) strings.
It achieves this by replacing the linear kerning-pair lookup
with a table (HashMap) indexed by a key made up of the glyph id's of the two glyphs.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168007
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+197 lines, -131 lines) |
Patch |
|
M |
Source/core/rendering/svg/SVGTextLayoutEngineSpacing.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp
|
View
|
1
2
|
2 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextMetrics.h
|
View
|
1
2
|
3 chunks |
+4 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextMetrics.cpp
|
View
|
1
2
3
|
5 chunks |
+5 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextRunRenderingContext.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFontData.cpp
|
View
|
1
2
|
3 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFontElement.h
|
View
|
1
2
|
3 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFontElement.cpp
|
View
|
1
2
|
5 chunks |
+81 lines, -63 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGGlyphMap.h
|
View
|
1
2
3
4
|
7 chunks |
+71 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/platform/fonts/Font.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/fonts/Font.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/platform/fonts/WidthIterator.h
|
View
|
1
2
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/platform/text/TextRun.h
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|