Remove RenderStyle member from FontBuilder.
The FontBuilder currently operates directly on RenderStyle every time a
font property is set. As indicated by the now-removed FIXME, this
is most unclean, and makes the FontBuilder not very attractive to use in
cases where you don't wish to spam the RenderStyle with setFontDescription
calls. (Example: FontBuilder::createFontForDocument).
This patch adds a FontDescription member instead, and changes
FontDescriptionChangeScope to act as a pure mark-if-dirty class to let
functions modify m_fontDescription directly, rather than through 'scope'.
R=dglazkov@chromium.org
Review URL: https://codereview.chromium.org/714163002
git-svn-id: svn://svn.chromium.org/blink/trunk@186023 bbb929c8-8fbe-4397-9dbb-9b2b20218538
7 files changed