Merge 142928 "Crash when selecting a HarfBuzz text run with SVG ..."
> Crash when selecting a HarfBuzz text run with SVG fonts included
> Reviewed by Tony Chang.
> There is an assert in SimpleFontData::applyTransforms that should not
> be there, as the code is valid for SVG fonts. If we get past this,
> then the HarfBuzz text run shaping code assumes that font data has a
> SkTypeface member, and SVG fonts do not. So we crash there too.
> For now, we fix the crashes. This still leaves incorrect selection
> rectangles in this situation, on all platforms, tracked in
> Test: svg/css/font-face-crash.html
> * platform/graphics/SimpleFontData.h:
> (WebCore::SimpleFontData::applyTransforms): Remove ASSERT_NOT_REACHED as the code can legally be reached for SVG fonts.
> * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
> (WebCore::HarfBuzzShaper::shapeHarfBuzzRuns): Check for SVG fonts in the text run, and abort if we find them.
> Only known to crash on Chromium Linux (without the patch), but other platforms may be affected.
> * svg/css/font-face-crash-expected.txt: Added.
> * svg/css/font-face-crash.html: Added.