mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 23:19:31 +02:00
TurboPower_ipro: Fix relative font size.
git-svn-id: trunk@58895 -
This commit is contained in:
parent
b65618119a
commit
2a57c469be
@ -7682,7 +7682,6 @@ begin
|
|||||||
LoadAndApplyCSSProps;
|
LoadAndApplyCSSProps;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
NextToken;
|
NextToken;
|
||||||
ParseBodyText(Body, EndTokens + [IpHtmlTagBODYend]);
|
ParseBodyText(Body, EndTokens + [IpHtmlTagBODYend]);
|
||||||
EnsureClosure(IpHtmlTagBODYend, EndTokens);
|
EnsureClosure(IpHtmlTagBODYend, EndTokens);
|
||||||
@ -12864,6 +12863,9 @@ function TIpHtmlNodeCore.GetFontSizeFromCSS(CurrentFontSize:Integer;
|
|||||||
else
|
else
|
||||||
if (FParentNode is TIpHtmlNodeGenInline) then
|
if (FParentNode is TIpHtmlNodeGenInline) then
|
||||||
result := TIpHtmlNodeGenInline(FparentNode).Props.FontSize
|
result := TIpHtmlNodeGenInline(FparentNode).Props.FontSize
|
||||||
|
else
|
||||||
|
if (FParentNode is TIpHtmlNodeHtml) or (FParentNode = nil) then
|
||||||
|
Result := 14
|
||||||
else
|
else
|
||||||
result := CurrentFontSize;
|
result := CurrentFontSize;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user