DescriptionMake style building for 'font-size' less custom.
This change adds a FontDescription::Size structure which represents a
(specified) font size in transit. The conversion from CSSValue* to
font size (now FontDescription::Size) has been moved to
StyleBuilderConverter. This reduces the dependency on RenderStyle/CSSValue
in FontBuilder.
Keyword sizes are now resolved into actual float sizes in FontBuilder::
setSize. This happens only if the FontDescription::Size has a keyword size,
but has no float value size. The idea is that if both a keyword size
and float value size is provided from the outside, it means we inherit
the "entire" Size as-is, and no re-resolving of the keyword size is
necessary.
The m_fontSizehasViewportUnits flag has been removed. StyleBuilderConverter
is now marking the relevant style directly (more or less) during conversion
instead.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182154
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebase. (Conflicts: FontBuilder::updateComputedSize) #Patch Set 3 : Rebase. #Patch Set 4 : Fix regression related to FontDescriptions with isAbsolute=true. #
Messages
Total messages: 10 (3 generated)
|