Changeset 31485 in webkit


Ignore:
Timestamp:
Mar 31, 2008 3:29:48 PM (16 years ago)
Author:
mitz@apple.com
Message:

2008-03-31 Dan Bernstein <mitz@apple.com>

Reviewed by Dave Hyatt.

  • page/AnimationController.cpp: Changed the BLEND_MAYBE_INVALID_COLOR macro to not blend two invalid colors.
  • rendering/RenderStyle.cpp: (WebCore::StyleBackgroundData::StyleBackgroundData): Added missing copying of the m_color data member.
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31483 r31485  
     12008-03-31  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=18076
     6          Box disappears after CSS Transition completes
     7
     8        * page/AnimationController.cpp: Changed the BLEND_MAYBE_INVALID_COLOR
     9        macro to not blend two invalid colors.
     10        * rendering/RenderStyle.cpp:
     11        (WebCore::StyleBackgroundData::StyleBackgroundData): Added missing
     12        copying of the m_color data member.
     13
    1142008-03-31  Julien Chaffraix  <jchaffraix@webkit.org>
    215
  • trunk/WebCore/page/AnimationController.cpp

    r31160 r31485  
    334334        Color fromColor = m_fromStyle->getter(); \
    335335        Color toColor = m_toStyle->getter(); \
    336         if (!fromColor.isValid()) \
    337             fromColor = m_fromStyle->color(); \
    338         if (!toColor.isValid()) \
    339             toColor = m_toStyle->color(); \
    340         if (fromColor != toColor) {\
    341             m_finished = false; \
    342             if (!animatedStyle) \
    343                 animatedStyle = new (renderer->renderArena()) RenderStyle(*targetStyle); \
    344             animatedStyle->setter(blendFunc(fromColor, toColor, progress()));\
    345             if (m_property == prop) \
    346                 return; \
     336        if (fromColor.isValid() || toColor.isValid()) { \
     337            if (!fromColor.isValid()) \
     338                fromColor = m_fromStyle->color(); \
     339            if (!toColor.isValid()) \
     340                toColor = m_toStyle->color(); \
     341            if (fromColor != toColor) {\
     342                m_finished = false; \
     343                if (!animatedStyle) \
     344                    animatedStyle = new (renderer->renderArena()) RenderStyle(*targetStyle); \
     345                animatedStyle->setter(blendFunc(fromColor, toColor, progress()));\
     346                if (m_property == prop) \
     347                    return; \
     348            }\
    347349        }\
    348350    }\
  • trunk/WebCore/rendering/RenderStyle.cpp

    r31155 r31485  
    330330    : RefCounted<StyleBackgroundData>()
    331331    , m_background(o.m_background)
     332    , m_color(o.m_color)
    332333    , m_outline(o.m_outline)
    333334{
Note: See TracChangeset for help on using the changeset viewer.