URLBar: don't animate shadow paths during animation

This commit is contained in:
James Magahern
2020-09-30 18:34:03 -07:00
parent fab8ccecbd
commit af296d7430

View File

@@ -181,8 +181,12 @@ class URLBar: ReliefButton
override func layoutSubviews() {
super.layoutSubviews()
backgroundView.frame = bounds
shadowView.frame = bounds
if let animationKeys = self.layer.animationKeys(), animationKeys.count > 0 {
// Kill the shadowPath while animating, since we cannot animate shadow paths apparently.
shadowView.layer.shadowPath = nil
}
progressIndicatorView.frame = backgroundView.bounds
// Document button