[SVG -> OTF Converter] Make placeholders more robust
Created attachment 243580 [details] Patch
Comment on attachment 243580 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243580&action=review > Source/WebCore/svg/SVGToOTFFontConversion.cpp:93 > + { Perhaps ASSERT(!m_written) here? > Source/WebCore/svg/SVGToOTFFontConversion.cpp:614 > + Placeholder toCoverageTable(*this, subtableLocation); I think it would have been a little nicer if SVGToOTFFontConverter had a member function that returned a placeholder (and then the Placeholder constructor could be private and friend with that member function), so here you’d just say auto toCoverageTable = appendPlaceholder(subtableLocation);
Comment on attachment 243580 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243580&action=review >> Source/WebCore/svg/SVGToOTFFontConversion.cpp:93 >> + { > > Perhaps ASSERT(!m_written) here? Done. >> Source/WebCore/svg/SVGToOTFFontConversion.cpp:614 >> + Placeholder toCoverageTable(*this, subtableLocation); > > I think it would have been a little nicer if SVGToOTFFontConverter had a member function that returned a placeholder (and then the Placeholder constructor could be private and friend with that member function), so here you’d just say > auto toCoverageTable = appendPlaceholder(subtableLocation); Done.
Committed r177620: <http://trac.webkit.org/changeset/177620>