Title: [210321] trunk/Source/WebCore
- Revision
- 210321
- Author
- [email protected]
- Date
- 2017-01-04 23:27:27 -0800 (Wed, 04 Jan 2017)
Log Message
Unreviewed. Addressing post-review comments after r21005.
Simplify cairo_glyph_t initialization as suggested by Said.
* platform/graphics/cairo/FontCairo.cpp:
(WebCore::CairoGlyphToPathTranslator::path):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (210320 => 210321)
--- trunk/Source/WebCore/ChangeLog 2017-01-05 07:03:09 UTC (rev 210320)
+++ trunk/Source/WebCore/ChangeLog 2017-01-05 07:27:27 UTC (rev 210321)
@@ -1,3 +1,12 @@
+2017-01-04 Carlos Garcia Campos <[email protected]>
+
+ Unreviewed. Addressing post-review comments after r21005.
+
+ Simplify cairo_glyph_t initialization as suggested by Said.
+
+ * platform/graphics/cairo/FontCairo.cpp:
+ (WebCore::CairoGlyphToPathTranslator::path):
+
2017-01-04 Manuel Rego Casasnovas <[email protected]>
[css-grid] Fix crash clamping grid lines
Modified: trunk/Source/WebCore/platform/graphics/cairo/FontCairo.cpp (210320 => 210321)
--- trunk/Source/WebCore/platform/graphics/cairo/FontCairo.cpp 2017-01-05 07:03:09 UTC (rev 210320)
+++ trunk/Source/WebCore/platform/graphics/cairo/FontCairo.cpp 2017-01-05 07:27:27 UTC (rev 210321)
@@ -241,9 +241,7 @@
Path path;
path.ensurePlatformPath();
- cairo_glyph_t cairoGlyph;
- cairoGlyph.index = m_glyphBuffer.glyphAt(m_index);
- cairoGlyph.x = cairoGlyph.y = 0;
+ cairo_glyph_t cairoGlyph = { m_glyphBuffer.glyphAt(m_index), 0, 0 };
cairo_set_scaled_font(path.platformPath()->context(), m_fontData->platformData().scaledFont());
cairo_glyph_path(path.platformPath()->context(), &cairoGlyph, 1);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes