RESOLVED FIXED 159788
Modernize GlyphMetricsMap
https://bugs.webkit.org/show_bug.cgi?id=159788
Summary Modernize GlyphMetricsMap
Chris Dumez
Reported 2016-07-14 14:59:27 PDT
Modernize GlyphMetricsMap a bit.
Attachments
Patch (3.85 KB, patch)
2016-07-14 15:03 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-07-14 15:03:58 PDT
Darin Adler
Comment 2 2016-07-14 18:47:29 PDT
Comment on attachment 283689 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283689&action=review > Source/WebCore/platform/graphics/GlyphMetricsMap.h:126 > + > + auto& page = m_pages->ensure(pageNumber, [] { > + return std::make_unique<GlyphMetricsPage>(unknownMetrics()); > + }).iterator->value; > + return *page; No need for the local variable: return *m_pages->ensure(pageNumber, [] { return std::make_unique<GlyphMetricsPage>(unknownMetrics()); }).iterator->value;
WebKit Commit Bot
Comment 3 2016-07-14 19:08:34 PDT
Comment on attachment 283689 [details] Patch Clearing flags on attachment: 283689 Committed r203262: <http://trac.webkit.org/changeset/203262>
WebKit Commit Bot
Comment 4 2016-07-14 19:08:39 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.