FrameSvg: Do not wreck shared mask frames

Authored by zzag on Jun 6 2018, 6:38 PM.

Description

FrameSvg: Do not wreck shared mask frames

Summary:
When trying to update the maskFrame, there is a chance that it is already
shared by several instances of FrameSvg. In that case, do not wreck maskFrame
and instead act as follows:

  • deref it
  • try to lookup a matching frame in the shared frames
  • if there is the matching frame, use it
  • otherwise create a new one

Reviewers: Plasma, Frameworks, mart

Reviewed By: Plasma, mart

Subscribers: mart, kde-frameworks-devel

Tags: Frameworks

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

Details

Committed
zzagJun 27 2018, 12:36 PM
Reviewer
Plasma
Differential Revision
D13384: FrameSvg: Do not wreck shared mask frames
Parents
R242:acdaefa221cc: FrameSvg: Simplify updateSizes
Branches
Unknown
Tags
Unknown