- 03 Feb, 2012 1 commit
-
-
alexis.menard@openbossa.org authored
https://bugs.webkit.org/show_bug.cgi?id=77491 Reviewed by Simon Fraser. Source/WebCore: The new blend function added with r105403 takes unsigned as parameters therefore we have to be careful to not overflow in case the to is less than from (animating from 400 to 0 for example). Test: animations/animation-border-overflow.html * platform/animation/AnimationUtilities.h: (WebCore::blend): LayoutTests: * animations/animation-border-overflow-expected.txt: Added. * animations/animation-border-overflow.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Jan, 2012 1 commit
-
-
alexis.menard@openbossa.org authored
https://bugs.webkit.org/show_bug.cgi?id=18294 Reviewed by Tony Chang. Source/WebCore: BorderValue stores its width on a 12 bits unsigned. This patch increase it to 27. The patch also modify the way to set the width or to get it, we now use a unsigned rather than a short. Test: fast/css/border-width-large.html * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeLength): * css/CSSStyleApplyProperty.cpp: (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): * page/animation/AnimationBase.cpp: (WebCore::blendFunc): (WebCore::AnimationBase::ensurePropertyMap): * platform/animation/AnimationUtilities.h: (WebCore::blend): * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustStyle): * rendering/style/BorderData.h: (WebCore::BorderData::borderLeftWidth): (WebCore::BorderData::borderRightWidth): (WebCore::BorderData::borderTopWidth): (WebCore::BorderData::borderBottomWidth): * rendering/style/BorderValue.h: (WebCore::BorderValue::width): * rendering/style/RenderStyle.cpp: * rendering/style/RenderStyle.h: (WebCore::RenderStyleBitfields::borderLeftWidth): (WebCore::RenderStyleBitfields::borderRightWidth): (WebCore::RenderStyleBitfields::borderTopWidth): (WebCore::RenderStyleBitfields::borderBottomWidth): (WebCore::RenderStyleBitfields::setBorderLeftWidth): (WebCore::RenderStyleBitfields::setBorderRightWidth): (WebCore::RenderStyleBitfields::setBorderTopWidth): (WebCore::RenderStyleBitfields::setBorderBottomWidth): (WebCore::RenderStyleBitfields::initialBorderWidth): (WebCore::RenderStyleBitfields::initialColumnRuleWidth): (WebCore::RenderStyleBitfields::initialOutlineWidth): LayoutTests: This test covers that setting big values to border-width will return correct values. * fast/css/border-width-large-expected.txt: Added. * fast/css/border-width-large.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Dec, 2011 1 commit
-
-
morrita@google.com authored
- Included <wtf/MathExtras.h> which defined portable version of lround(). - Add some static_cast<> to suppress warnings. * platform/animation/AnimationUtilities.h: (WebCore::blend): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Dec, 2011 1 commit
-
-
simon.fraser@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=74464 Reviewed by Dean Jackson. Lots of places in the code had copies of the animation interpolation logic "from + (to - from) * progress", in various forms. Coalesce all these into calls to a few new inline functions in a new AnimationUtilities.h header. Color and Length get their own blend fuctions in their respective headers. Covered by existing tests. * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * css/CSSGradientValue.cpp: * page/animation/AnimationBase.cpp: (WebCore::blendFunc): * platform/Length.h: (WebCore::Length::blend): * platform/animation/AnimationUtilities.h: Added. (WebCore::blend): * platform/graphics/Color.h: (WebCore::blend): * platform/graphics/transforms/PerspectiveTransformOperation.cpp: (WebCore::PerspectiveTransformOperation::blend): * platform/graphics/transforms/RotateTransformOperation.cpp: (WebCore::RotateTransformOperation::blend): * platform/graphics/transforms/ScaleTransformOperation.cpp: (WebCore::ScaleTransformOperation::blend): * platform/graphics/transforms/SkewTransformOperation.cpp: (WebCore::SkewTransformOperation::blend): * platform/graphics/transforms/TranslateTransformOperation.cpp: (WebCore::TranslateTransformOperation::blend): * svg/SVGLength.h: (WebCore::SVGLength::blend): * svg/SVGPathBlender.cpp: (WebCore::blendFloatPoint): (WebCore::SVGPathBlender::blendAnimatedDimensonalFloat): (WebCore::SVGPathBlender::blendArcToSegment): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-