Changeset 256427 in webkit
- Timestamp:
- Feb 12, 2020 12:39:51 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r256425 r256427 1 2020-02-12 Sunny He <sunny_he@apple.com> 2 3 Fix crash due to uninitialized currentStyle in CSSTransition 4 https://bugs.webkit.org/show_bug.cgi?id=205959 5 <rdar://57073673> 6 7 Reviewed by Antoine Quint. 8 9 Fix crash due to uninitialized currentStyle in CSSTransition 10 11 * legacy-animation-engine/transitions/svg-bad-scale-crash-expected.txt: Added. 12 * legacy-animation-engine/transitions/svg-bad-scale-crash.html: Added. 13 1 14 2020-02-11 Tomoki Imai <Tomoki.Imai@sony.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r256424 r256427 1 2020-02-12 Sunny He <sunny_he@apple.com> 2 3 Fix crash due to uninitialized currentStyle in CSSTransition 4 https://bugs.webkit.org/show_bug.cgi?id=205959 5 <rdar://57073673> 6 7 Reviewed by Antoine Quint. 8 9 Test: legacy-animation-engine/transitions/svg-bad-scale-crash.html 10 11 * animation/CSSTransition.cpp: 12 (WebCore::CSSTransition::create): 13 (WebCore::CSSTransition::CSSTransition): 14 * animation/CSSTransition.h: 15 1 16 2020-02-11 Peng Liu <peng.liu6@apple.com> 2 17 -
trunk/Source/WebCore/animation/CSSTransition.cpp
r255396 r256427 39 39 Ref<CSSTransition> CSSTransition::create(Element& owningElement, CSSPropertyID property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle* oldStyle, const RenderStyle& newStyle, Seconds delay, Seconds duration, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor) 40 40 { 41 auto result = adoptRef(*new CSSTransition(owningElement, property, generationTime, backingAnimation, newStyle, reversingAdjustedStartStyle, reversingShorteningFactor)); 41 ASSERT(oldStyle); 42 auto result = adoptRef(*new CSSTransition(owningElement, property, generationTime, backingAnimation, *oldStyle, newStyle, reversingAdjustedStartStyle, reversingShorteningFactor)); 42 43 result->initialize(oldStyle, newStyle); 43 44 result->setTimingProperties(delay, duration); … … 48 49 } 49 50 50 CSSTransition::CSSTransition(Element& element, CSSPropertyID property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor)51 CSSTransition::CSSTransition(Element& element, CSSPropertyID property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor) 51 52 : DeclarativeAnimation(element, backingAnimation) 52 53 , m_property(property) 53 54 , m_generationTime(generationTime) 54 55 , m_targetStyle(RenderStyle::clonePtr(targetStyle)) 56 , m_currentStyle(RenderStyle::clonePtr(oldStyle)) 55 57 , m_reversingAdjustedStartStyle(RenderStyle::clonePtr(reversingAdjustedStartStyle)) 56 58 , m_reversingShorteningFactor(reversingShorteningFactor) -
trunk/Source/WebCore/animation/CSSTransition.h
r243887 r256427 54 54 55 55 private: 56 CSSTransition(Element&, CSSPropertyID, MonotonicTime generationTime, const Animation&, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double);56 CSSTransition(Element&, CSSPropertyID, MonotonicTime generationTime, const Animation&, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double); 57 57 void setTimingProperties(Seconds delay, Seconds duration); 58 58
Note: See TracChangeset
for help on using the changeset viewer.