DescriptionDo not correct for zoom for number line-height
When a line-height is specified as a number (for example 1.2)
StyleBuilderConverter::convertLineHeight makes a Percent type
Length to store in LayoutStyle. When getting the computed
style value for line-height, valueForLineHeight uses the
zoom-independent FontDescription::specifiedSize. Therefore
there is no need in this case to call zoomAdjustedPixelValue.
This also fixes the value shown in the computed panel in inspector.
BUG=442084
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192124
Patch Set 1 #Patch Set 2 : Fix unitless line-height #Patch Set 3 : Add test #
Messages
Total messages: 8 (3 generated)
|