Avoid unnecessary isSVGFont() check in SimpleFontData::applyTransforms()
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 23:59:11 +0000 (23:59 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 23:59:11 +0000 (23:59 +0000)
commitc21c6dee1da648a86cd888be08c392951f5614ac
tree9c51ce10972d0927b03ef25e539c446fa50a68ad
parent30a7be5aade2c3dbbaf07aa96d0507aaf392504d
Avoid unnecessary isSVGFont() check in SimpleFontData::applyTransforms()
https://bugs.webkit.org/show_bug.cgi?id=137836

Reviewed by Andreas Kling.

Avoid unnecessary isSVGFont() check in SimpleFontData::applyTransforms().
This function is only called from WidthIterator::applyFontTransforms(),
which already makes sure to call applyTransforms() if isSVGFont()
returns false. This patch replaces the check with a simple assertion.

No new tests, no behavior change.

* platform/graphics/SimpleFontData.h:
* svg/SVGFontData.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/SimpleFontData.h
Source/WebCore/svg/SVGFontData.h