[FrameSvg] Optimize updateSizes

Authored by broulik on Oct 16 2017, 9:38 AM.

Description

[FrameSvg] Optimize updateSizes

frame->fooHeight is the same as frame->fooFixedHeight if the border is enabled, we only meddle
with margins, not heights. Thus we can just do the lookup once and re-use the value.

Also store the hintFooMargin instead of doing the same exact lookup once for fixed
and once for non-fixed margins.

Differential Revision: https://phabricator.kde.org/D8135

Details

Committed
broulikOct 16 2017, 9:38 AM
Differential Revision
D8135: [FrameSvg] Optimize updateSizes
Parents
R242:ecd00a565a99: Don't position a Dialog if it's of type OSD
Branches
Unknown
Tags
Unknown