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

Unified Diff: Source/core/rendering/svg/SVGTextRunRenderingContext.cpp

Issue 453203003: Introduce DEFINE_CUSTOM_FONT_DATA_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
diff --git a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
index b858cbd7014ae9a0071b0788bc6d5d11ace1df80..2fd85e157e7d9f60f8d18bb46056d108fde37498 100644
--- a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
+++ b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp
@@ -43,7 +43,7 @@ static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const Simp
ASSERT(fontData->isSVGFont());
RefPtr<CustomFontData> customFontData = fontData->customFontData();
- const SVGFontData* svgFontData = static_cast<const SVGFontData*>(customFontData.get());
+ const SVGFontData* svgFontData = toSVGFontData(customFontData);
// FIXME crbug.com/359380 : The current editing impl references the font after the svg font nodes are removed.
if (svgFontData->shouldSkipDrawing())

Powered by Google App Engine
This is Rietveld 408576698