12014-10-16 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2
3 Apply std::unique_ptr to FooFont classes
4 https://bugs.webkit.org/show_bug.cgi?id=137769
5
6 Reviewed by NOBODY (OOPS!).
7
8 As a step to use std::unique_ptr, this patch applies std::unique_ptr to Font classes.
9
10 No new tests, no behavior changes.
11
12 * platform/graphics/Font.cpp:
13 (WebCore::retrieveOrAddCachedFontGlyphs):
14 (WebCore::Font::createLayout):
15 * platform/graphics/SimpleFontData.cpp:
16 (WebCore::SimpleFontData::DerivedFontData::create):
17 * platform/graphics/SimpleFontData.h:
18 Remove create() factory function because public ctor and std::make_unique<> can replace it.
19 * platform/graphics/mac/ComplexTextController.cpp:
20 (WebCore::Font::createLayout):
21