DescriptionRemove 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186023
Patch Set 1 #Patch Set 2 : Rebase. #Patch Set 3 : Update FontDescription when inheriting cached properties. #Patch Set 4 : Ensure font is created before taking animation snapshot. #
Total comments: 1
Messages
Total messages: 13 (4 generated)
|