1. 17 Jan, 2014 1 commit
    • betravis@adobe.com's avatar
      [CSS Shapes] Basic shapes' computed position should be a horizontal and vertical offset · 02b3f42a
      betravis@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127010
      
      Reviewed by Rob Buis.
      
      Source/WebCore:
      
      This patch updates the computed position values used for blending to be a horizontal
      left offset and a vertical top offset. When positions include a center, bottom, or
      right position offset, it is converted to the appropriate top/left coordinate as
      a calc expression. Serialized values still use the original bottom/right directions
      when present, and also omit the top/left keywords where possible.
      
      Updated parsing and animation tests.
      
      * css/BasicShapeFunctions.cpp:
      (WebCore::valueForCenterCoordinate): Use the simplified BasicShapeCenterCoordinate,
      which includes an offset and whether the direction is from the top/left or bottom/right.
      (WebCore::valueForBasicShape): Ditto.
      (WebCore::convertToCenterCoordinate): Ditto.
      (WebCore::basicShapeForValue): Ditto.
      (WebCore::floatValueForCenterCoordinate): Ditto.
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::blendFunc): Remove the RenderBox parameter, which is no longer needed.
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShapeCenterCoordinate::updateComputedLength): Calculate the computed
      position offset for this center coordinate.
      (WebCore::BasicShapeRectangle::blend): Remove the RenderBox parameter.
      (WebCore::DeprecatedBasicShapeCircle::blend): Ditto.
      (WebCore::BasicShapeCircle::blend): Ditto.
      (WebCore::DeprecatedBasicShapeEllipse::blend): Ditto.
      (WebCore::BasicShapeEllipse::blend): Ditto.
      (WebCore::BasicShapePolygon::blend): Ditto.
      (WebCore::BasicShapeInsetRectangle::blend): Ditto.
      (WebCore::BasicShapeInset::blend): Ditto.
      * rendering/style/BasicShapes.h:
      (WebCore::BasicShapeCenterCoordinate::BasicShapeCenterCoordinate): Simplify
      BasicShapeCenterCoordinate to contain an offset and a direction. Also add a
      computed length, which is an offset from the top/left direction.
      (WebCore::BasicShapeCenterCoordinate::direction):
      (WebCore::BasicShapeCenterCoordinate::computedLength):
      (WebCore::BasicShapeCenterCoordinate::blend):
      
      LayoutTests:
      
      Update existing parsing and animation tests. For parsing tests, top / left keywords
      are omitted whenever possible. For animation tests, animations to bottom / right
      offsets will use calc values based from the top / left direction.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape): Parse non-numerical arguments to the shape function.
      (basicShapeParametersMatch): Match non-numerical arguments to the shape function.
      * fast/shapes/parsing/parsing-shape-inside-expected.txt: Update serialized values
      to omit top / left keywords when possible.
      * fast/shapes/parsing/parsing-shape-outside-expected.txt: Update serialized values
      to omit top / left keywords when possible.
      * fast/shapes/parsing/parsing-test-utils.js: Modify shape parsing test expectations.
      * fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt: Ditto.
      * fast/shapes/shape-outside-floats/shape-outside-animation.html: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02b3f42a
  2. 11 Dec, 2013 1 commit
  3. 03 Dec, 2013 1 commit
    • rwlbuis@webkit.org's avatar
      [css shapes] layout for new ellipse syntax · 4f519ba0
      rwlbuis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124621
      
      Source/WebCore:
      
      Reviewed by Dirk Schulze.
      
      Implement support for doing layout with the new ellipse shape syntax,
      including basic animation support.
      
      Test: fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000.html
      
      * rendering/shapes/Shape.cpp:
      (WebCore::Shape::createShape): Convert new ellipse to a layout shape.
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShape::canBlend): Ignore ellipses with values that
          cannot be interpolated.
      (WebCore::BasicShapeEllipse::floatValueForRadiusInBox): Helper function to calculate
          either radiusX or radiusY, shared by clip-path and shape code paths.
      (WebCore::BasicShapeEllipse::path):
      * rendering/style/BasicShapes.h:
      
      LayoutTests:
      
      Add a new test for the new ellipse syntax. Also update existing shape-inside, animation, and clip-path tests to
      test the new ellipse syntax for clipping and shape-inside.
      
      Reviewed by Dirk Schulze.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape):
      * css3/masking/clip-path-animation-expected.txt:
      * css3/masking/clip-path-animation.html:
      * css3/masking/clip-path-ellipse.html:
      * fast/shapes/shape-inside/shape-inside-animation-expected.txt:
      * fast/shapes/shape-inside/shape-inside-animation.html:
      * fast/shapes/shape-inside/shape-inside-ellipse-padding.html:
      * fast/shapes/shape-inside/shape-inside-ellipse.html:
      * fast/shapes/shape-inside/shape-inside-empty-expected.html:
      * fast/shapes/shape-inside/shape-inside-empty.html:
      * fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt:
      * fast/shapes/shape-outside-floats/shape-outside-animation.html:
      * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f519ba0
  4. 02 Dec, 2013 1 commit
    • bjonesbe@adobe.com's avatar
      [css shapes] Layout support for new circle shape syntax · fa49c82a
      bjonesbe@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124619
      
      Reviewed by Dirk Schulze.
      
      Source/WebCore:
      
      Implement support for doing layout with the new circle shape syntax,
      inclduing basic animation support.
      
      Tests: fast/shapes/shape-outside-floats/shape-outside-floats-circle-000.html
             fast/shapes/shape-outside-floats/shape-outside-floats-circle-001.html
             fast/shapes/shape-outside-floats/shape-outside-floats-circle-002.html
             fast/shapes/shape-outside-floats/shape-outside-floats-circle-003.html
             fast/shapes/shape-outside-floats/shape-outside-floats-circle-004.html
             fast/shapes/shape-outside-floats/shape-outside-floats-circle-005.html
      
      * css/BasicShapeFunctions.cpp:
      (WebCore::floatValueForCenterCoordinate): Used by both the CSS Shapes
          layout code and the clip path code.
      * css/BasicShapeFunctions.h:
      * css/CSSBasicShapes.cpp:
      (WebCore::buildCircleString): Update to use appendLiteral, and remove
          call to reserveCapacity - if we find that it's actually slow when
          doing performance tests, we can hopefully do something smarter and
          less ugly than that.
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseShapeRadius): Fix a logic error that caused
          the radius keywords not to work properly.
      * rendering/shapes/Shape.cpp:
      (WebCore::Shape::createShape): Convert new circle to a layout shape.
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShape::canBlend): Ignore circles with values that
          cannot be interpolated.
      (WebCore::BasicShapeCircle::floatValueForRadiusInBox): Convert circle
          radius keywords to a float value.
      (WebCore::BasicShapeCircle::path):
      (WebCore::BasicShapeCircle::blend):
      * rendering/style/BasicShapes.h:
      (WebCore::BasicShapeCenterCoordinate::canBlend):
      (WebCore::BasicShapeRadius::canBlend):
      
      LayoutTests:
      
      Add a few tests for the new circle syntax. The old tests in
      LayoutTests/csswg will be removed when the old syntax is removed.
      
      Also update existing shape-inside, animation, and clip-path tests to
      test the new syntax.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape):
      * LayoutTests/animations/resources/animation-test-helpers.js:
      * LayoutTests/css3/masking/clip-path-animation-expected.txt:
      * LayoutTests/css3/masking/clip-path-animation.html:
      * LayoutTests/css3/masking/clip-path-circle-filter.html:
      * LayoutTests/css3/masking/clip-path-circle-overflow-hidden.html:
      * LayoutTests/css3/masking/clip-path-circle-overflow.html:
      * LayoutTests/css3/masking/clip-path-circle-relative-overflow.html:
      * LayoutTests/css3/masking/clip-path-circle.html:
      * LayoutTests/css3/masking/clip-path-restore.html:
      * LayoutTests/fast/shapes/parsing/parsing-shape-inside-expected.txt:
      * LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt:
      * LayoutTests/fast/shapes/parsing/parsing-test-utils.js:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-animation-expected.txt:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-animation.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-calc-crash-expected.txt:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-calc-crash.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-circle-padding.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-circle.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-dynamic-nested.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-empty-expected.html:
      * LayoutTests/fast/shapes/shape-inside/shape-inside-empty.html:
      * fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt:
      * fast/shapes/shape-outside-floats/shape-outside-animation.html:
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-000-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-000.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-001-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-001.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-002-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-002.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-003-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-003.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-004-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-004.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-005-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-circle-005.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa49c82a
  5. 28 Oct, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Methods on window.internals shouldn't pass a document. · 3e466981
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107301
      
      Patch by Afonso R. Costa Jr. <afonso.costa@samsung.com> on 2013-10-28
      Reviewed by Alexey Proskuryakov.
      
      Each 'Internals' instance is associated with a 'Document'. So, it
      is not necessary to pass a document as argument. Only nodesFromRect and
      layerTreeAsText methods were kept because, in some Layout Tests, the
      'Document' object is not the same used by Internals::contextDocument.
      
      Source/WebCore:
      
      * testing/Internals.cpp: Removed 'document' parameter.
      (WebCore::Internals::animationsAreSuspended):
      (WebCore::Internals::suspendAnimations):
      (WebCore::Internals::resumeAnimations):
      (WebCore::Internals::inspectorHighlightRects):
      (WebCore::Internals::inspectorHighlightObject):
      (WebCore::Internals::setScrollViewPosition):
      (WebCore::Internals::setPagination):
      (WebCore::Internals::configurationForViewport):
      (WebCore::Internals::paintControlTints):
      (WebCore::Internals::setDelegatesScrolling):
      (WebCore::Internals::touchPositionAdjustedToBestClickableNode):
      (WebCore::Internals::touchNodeAdjustedToBestClickableNode):
      (WebCore::Internals::touchPositionAdjustedToBestContextMenuNode):
      (WebCore::Internals::touchNodeAdjustedToBestContextMenuNode):
      (WebCore::Internals::bestZoomableAreaForTouchPoint):
      (WebCore::Internals::lastSpellCheckRequestSequence):
      (WebCore::Internals::lastSpellCheckProcessedSequence):
      (WebCore::Internals::wheelEventHandlerCount):
      (WebCore::Internals::touchEventHandlerCount):
      (WebCore::Internals::setBatteryStatus):
      (WebCore::Internals::setNetworkInformation):
      (WebCore::Internals::setDeviceProximity):
      (WebCore::Internals::hasSpellingMarker):
      (WebCore::Internals::hasAutocorrectedMarker):
      (WebCore::Internals::isOverwriteModeEnabled):
      (WebCore::Internals::toggleOverwriteModeEnabled):
      (WebCore::Internals::consoleMessageArgumentCounts):
      (WebCore::Internals::hasGrammarMarker):
      (WebCore::Internals::numberOfScrollableAreas):
      (WebCore::Internals::isPageBoxVisible):
      (WebCore::Internals::repaintRectsAsText):
      (WebCore::Internals::scrollingStateTreeAsText):
      (WebCore::Internals::mainThreadScrollingReasons):
      (WebCore::Internals::nonFastScrollableRects):
      (WebCore::Internals::garbageCollectDocumentResources):
      (WebCore::Internals::insertAuthorCSS):
      (WebCore::Internals::insertUserCSS):
      (WebCore::Internals::shortcutIconURLs):
      (WebCore::Internals::allIconURLs):
      (WebCore::Internals::setHeaderHeight):
      (WebCore::Internals::setFooterHeight):
      (WebCore::Internals::webkitWillEnterFullScreenForElement):
      (WebCore::Internals::webkitDidEnterFullScreenForElement):
      (WebCore::Internals::webkitWillExitFullScreenForElement):
      (WebCore::Internals::webkitDidExitFullScreenForElement):
      (WebCore::Internals::startTrackingRepaints):
      (WebCore::Internals::stopTrackingRepaints):
      (WebCore::Internals::getCurrentCursorInfo):
      * testing/Internals.h:
      (WebCore::Internals::setPagination):
      * testing/Internals.idl:
      
      LayoutTests:
      
      * animations/added-while-suspended.html: Removed 'document' parameter.
      * animations/play-state-suspend.html:
      * animations/stop-animation-on-suspend.html:
      * animations/suspend-resume-animation-events.html:
      * animations/suspend-resume-animation.html:
      * animations/suspend-transform-animation.html:
      * batterystatus/resources/event-after-navigation-new.html:
      * batterystatus/script-tests/add-listener-from-callback.js:
      (firstListener):
      * batterystatus/script-tests/basic-all-types-of-events.js:
      * batterystatus/script-tests/basic-operation.js:
      * batterystatus/script-tests/multiple-frames.js:
      * batterystatus/script-tests/updates.js:
      (setBatteryStatus):
      * compositing/columns/ancestor-clipped-in-paginated.html:
      * compositing/columns/clipped-in-paginated.html:
      * compositing/columns/composited-columns-vertical-rl.html:
      * compositing/columns/composited-in-paginated-rl.html:
      * compositing/columns/composited-in-paginated-writing-mode-rl.html:
      * compositing/columns/composited-in-paginated.html:
      * compositing/columns/composited-lr-paginated-repaint.html:
      * compositing/columns/composited-rl-paginated-repaint.html:
      * compositing/columns/geometry-map-paginated-assert.html:
      * compositing/columns/hittest-composited-in-paginated.html:
      * compositing/columns/rotated-in-paginated.html:
      * compositing/columns/untransformed-composited-in-paginated.html:
      * compositing/iframes/iframe-composited-scrolling.html:
      * compositing/layer-creation/fixed-position-in-view-dynamic.html:
      * compositing/layer-creation/fixed-position-no-content-scroll-reason.html:
      * compositing/layer-creation/fixed-position-out-of-view-dynamic.html:
      * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html:
      * compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html:
      * compositing/overflow/dynamic-composited-scrolling-status.html:
      * compositing/overflow/scrolling-without-painting.html:
      * compositing/overflow/updating-scrolling-content.html:
      * compositing/repaint/absolute-painted-into-composited-ancestor.html:
      * compositing/repaint/fixed-background-scroll.html:
      * compositing/repaint/invalidations-on-composited-layers.html:
      * compositing/repaint/positioned-movement.html:
      * compositing/repaint/repaint-on-layer-grouping-change.html:
      * compositing/repaint/resize-repaint.html:
      * compositing/repaint/scroll-fixed-layer-no-content.html:
      * compositing/repaint/scroll-fixed-layer-out-of-view.html:
      * editing/caret/selection-with-caret-type-progress.html:
      * editing/execCommand/overtype.html:
      * editing/selection/block-cursor-overtype-mode.html:
      * editing/spelling/design-mode-spellcheck-off.html:
      * editing/spelling/grammar-edit-word-expected.txt:
      * editing/spelling/grammar-edit-word.html:
      * editing/spelling/grammar-markers-hidpi.html:
      * editing/spelling/grammar-markers.html:
      * editing/spelling/grammar.html:
      * editing/spelling/script-tests/spellcheck-paste.js:
      (verifyMarker):
      * editing/spelling/script-tests/spelling-attribute-at-child.js:
      (childHasSpellingMarker):
      * editing/spelling/script-tests/spelling-attribute-change.js:
      (testSpellCheckingEnabled):
      * editing/spelling/script-tests/spelling-backspace-between-lines.js:
      (testWithDelete):
      (testWithForwardDelete):
      * editing/spelling/script-tests/spelling-hasspellingmarker.js:
      (hasMarked):
      * editing/spelling/spellcheck-async-mutation.html:
      * editing/spelling/spellcheck-attribute-expected.txt:
      * editing/spelling/spellcheck-attribute.html:
      * editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
      * editing/spelling/spellcheck-paste-continuous-disabled.html:
      * editing/spelling/spellcheck-paste-disabled-expected.txt:
      * editing/spelling/spellcheck-paste-disabled.html:
      * editing/spelling/spellcheck-sequencenum.html:
      * editing/spelling/spelling-attribute-change-expected.txt:
      * editing/spelling/spelling-backspace-between-lines-expected.txt:
      * editing/spelling/spelling-linebreak.html:
      * fast/box-shadow/shadow-repaint.html:
      * fast/css/webkit-mask-crash-fieldset-legend.html:
      * fast/css/webkit-mask-crash-figure.html:
      * fast/css/webkit-mask-crash-table.html:
      * fast/css/webkit-mask-crash-td-2.html:
      * fast/css/webkit-mask-crash-td.html:
      * fast/dom/icon-url-change.html:
      * fast/dom/icon-url-list-apple-touch.html:
      * fast/dom/icon-url-list.html:
      * fast/dom/icon-url-property.html:
      * fast/events/mouse-cursor-change.html:
      * fast/events/mouse-cursor-image-set.html:
      * fast/events/mouse-cursor-multiframecur.html:
      * fast/events/mouse-cursor-no-mousemove.html:
      * fast/events/mouse-cursor.html:
      * fast/events/touch/touch-handler-count-expected.txt:
      * fast/events/touch/touch-handler-count.html:
      * fast/events/touch/touch-input-element-change-documents-expected.txt:
      * fast/events/touch/touch-input-element-change-documents.html:
      * fast/multicol/hit-test-gap-between-pages-flipped.html:
      * fast/multicol/hit-test-gap-between-pages.html:
      * fast/multicol/pagination-h-horizontal-bt.html:
      * fast/multicol/pagination-h-horizontal-tb.html:
      * fast/multicol/pagination-h-vertical-lr.html:
      * fast/multicol/pagination-h-vertical-rl.html:
      * fast/multicol/pagination-v-horizontal-bt.html:
      * fast/multicol/pagination-v-horizontal-tb.html:
      * fast/multicol/pagination-v-vertical-lr.html:
      * fast/multicol/pagination-v-vertical-rl.html:
      * fast/multicol/pagination/BottomToTop-bt.html:
      * fast/multicol/pagination/BottomToTop-lr.html:
      * fast/multicol/pagination/BottomToTop-rl.html:
      * fast/multicol/pagination/BottomToTop-tb.html:
      * fast/multicol/pagination/LeftToRight-bt.html:
      * fast/multicol/pagination/LeftToRight-lr.html:
      * fast/multicol/pagination/LeftToRight-rl.html:
      * fast/multicol/pagination/LeftToRight-tb.html:
      * fast/multicol/pagination/RightToLeft-bt.html:
      * fast/multicol/pagination/RightToLeft-lr.html:
      * fast/multicol/pagination/RightToLeft-rl.html:
      * fast/multicol/pagination/RightToLeft-tb.html:
      * fast/multicol/pagination/TopToBottom-bt.html:
      * fast/multicol/pagination/TopToBottom-lr.html:
      * fast/multicol/pagination/TopToBottom-rl.html:
      * fast/multicol/pagination/TopToBottom-tb.html:
      * fast/multicol/shrink-to-column-height-for-pagination.html:
      * fast/repaint/background-shorthand-with-gradient-and-height-changes.html:
      * fast/repaint/obscured-background-no-repaint.html:
      * fast/repaint/resources/text-based-repaint.js:
      (runRepaintTest):
      * fast/scrolling/resources/scrollable-area.js:
      (end):
      * fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html:
      * fast/viewport/viewport-1.html:
      * fast/viewport/viewport-10.html:
      * fast/viewport/viewport-100.html:
      * fast/viewport/viewport-101.html:
      * fast/viewport/viewport-102.html:
      * fast/viewport/viewport-103.html:
      * fast/viewport/viewport-104.html:
      * fast/viewport/viewport-105.html:
      * fast/viewport/viewport-106.html:
      * fast/viewport/viewport-107.html:
      * fast/viewport/viewport-108.html:
      * fast/viewport/viewport-109.html:
      * fast/viewport/viewport-11.html:
      * fast/viewport/viewport-110.html:
      * fast/viewport/viewport-111.html:
      * fast/viewport/viewport-112.html:
      * fast/viewport/viewport-113.html:
      * fast/viewport/viewport-114.html:
      * fast/viewport/viewport-115.html:
      * fast/viewport/viewport-116.html:
      * fast/viewport/viewport-117.html:
      * fast/viewport/viewport-118.html:
      * fast/viewport/viewport-119.html:
      * fast/viewport/viewport-12.html:
      * fast/viewport/viewport-120.html:
      * fast/viewport/viewport-121.html:
      * fast/viewport/viewport-122.html:
      * fast/viewport/viewport-123.html:
      * fast/viewport/viewport-124.html:
      * fast/viewport/viewport-125.html:
      * fast/viewport/viewport-126.html:
      * fast/viewport/viewport-127.html:
      * fast/viewport/viewport-128.html:
      * fast/viewport/viewport-129.html:
      * fast/viewport/viewport-13.html:
      * fast/viewport/viewport-130.html:
      * fast/viewport/viewport-131.html:
      * fast/viewport/viewport-132.html:
      * fast/viewport/viewport-133.html:
      * fast/viewport/viewport-134.html:
      * fast/viewport/viewport-14.html:
      * fast/viewport/viewport-15.html:
      * fast/viewport/viewport-16.html:
      * fast/viewport/viewport-17.html:
      * fast/viewport/viewport-18.html:
      * fast/viewport/viewport-19.html:
      * fast/viewport/viewport-2.html:
      * fast/viewport/viewport-20.html:
      * fast/viewport/viewport-21.html:
      * fast/viewport/viewport-22.html:
      * fast/viewport/viewport-23.html:
      * fast/viewport/viewport-24.html:
      * fast/viewport/viewport-25.html:
      * fast/viewport/viewport-26.html:
      * fast/viewport/viewport-27.html:
      * fast/viewport/viewport-28.html:
      * fast/viewport/viewport-29.html:
      * fast/viewport/viewport-3.html:
      * fast/viewport/viewport-30.html:
      * fast/viewport/viewport-31.html:
      * fast/viewport/viewport-32.html:
      * fast/viewport/viewport-33.html:
      * fast/viewport/viewport-34.html:
      * fast/viewport/viewport-35.html:
      * fast/viewport/viewport-36.html:
      * fast/viewport/viewport-37.html:
      * fast/viewport/viewport-38.html:
      * fast/viewport/viewport-39.html:
      * fast/viewport/viewport-4.html:
      * fast/viewport/viewport-40.html:
      * fast/viewport/viewport-41.html:
      * fast/viewport/viewport-42.html:
      * fast/viewport/viewport-43.html:
      * fast/viewport/viewport-44.html:
      * fast/viewport/viewport-45.html:
      * fast/viewport/viewport-46.html:
      * fast/viewport/viewport-47.html:
      * fast/viewport/viewport-48.html:
      * fast/viewport/viewport-49.html:
      * fast/viewport/viewport-5.html:
      * fast/viewport/viewport-50.html:
      * fast/viewport/viewport-51.html:
      * fast/viewport/viewport-52.html:
      * fast/viewport/viewport-53.html:
      * fast/viewport/viewport-54.html:
      * fast/viewport/viewport-55.html:
      * fast/viewport/viewport-56.html:
      * fast/viewport/viewport-57.html:
      * fast/viewport/viewport-58.html:
      * fast/viewport/viewport-59.html:
      * fast/viewport/viewport-6.html:
      * fast/viewport/viewport-60.html:
      * fast/viewport/viewport-61.html:
      * fast/viewport/viewport-62.html:
      * fast/viewport/viewport-63.html:
      * fast/viewport/viewport-64.html:
      * fast/viewport/viewport-65.html:
      * fast/viewport/viewport-66.html:
      * fast/viewport/viewport-67.html:
      * fast/viewport/viewport-68.html:
      * fast/viewport/viewport-69.html:
      * fast/viewport/viewport-7.html:
      * fast/viewport/viewport-70.html:
      * fast/viewport/viewport-71.html:
      * fast/viewport/viewport-72.html:
      * fast/viewport/viewport-73.html:
      * fast/viewport/viewport-74.html:
      * fast/viewport/viewport-75.html:
      * fast/viewport/viewport-76.html:
      * fast/viewport/viewport-77.html:
      * fast/viewport/viewport-78.html:
      * fast/viewport/viewport-79.html:
      * fast/viewport/viewport-8.html:
      * fast/viewport/viewport-80.html:
      * fast/viewport/viewport-81.html:
      * fast/viewport/viewport-82.html:
      * fast/viewport/viewport-83.html:
      * fast/viewport/viewport-84.html:
      * fast/viewport/viewport-85.html:
      * fast/viewport/viewport-86.html:
      * fast/viewport/viewport-87.html:
      * fast/viewport/viewport-88.html:
      * fast/viewport/viewport-9.html:
      * fast/viewport/viewport-90.html:
      * fast/viewport/viewport-91.html:
      * fast/viewport/viewport-legacy-handheldfriendly.html:
      * fast/viewport/viewport-legacy-mobileoptimized-2.html:
      * fast/viewport/viewport-legacy-mobileoptimized-3.html:
      * fast/viewport/viewport-legacy-mobileoptimized.html:
      * fast/viewport/viewport-legacy-ordering-1.html:
      * fast/viewport/viewport-legacy-ordering-2.html:
      * fast/viewport/viewport-legacy-ordering-3.html:
      * fast/viewport/viewport-legacy-ordering-4.html:
      * fast/viewport/viewport-legacy-ordering-5.html:
      * fast/viewport/viewport-legacy-ordering-6.html:
      * fast/viewport/viewport-legacy-ordering-7.html:
      * fast/viewport/viewport-legacy-ordering-8.html:
      * fast/viewport/viewport-legacy-ordering-9.html:
      * fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html:
      * fast/viewport/viewport-legacy-xhtmlmp-ordering.html:
      * fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html:
      * fast/viewport/viewport-legacy-xhtmlmp.html:
      * fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html:
      * fast/viewport/viewport-limits-adjusted-for-no-user-scale.html:
      * fast/viewport/viewport-warnings-1.html:
      * fast/viewport/viewport-warnings-2.html:
      * fast/viewport/viewport-warnings-3.html:
      * fast/viewport/viewport-warnings-4.html:
      * fast/viewport/viewport-warnings-5.html:
      * fast/viewport/viewport-warnings-6.html:
      * fullscreen/video-cursor-auto-hide-expected.txt:
      * fullscreen/video-cursor-auto-hide.html:
      * http/tests/inspector-enabled/resources/console-clear-arguments-test.js:
      (dumpConsoleMessageArgumentCounts):
      * http/tests/inspector/elements-test.js:
      * networkinformation/resources/event-after-navigation-new.html:
      * networkinformation/script-tests/add-listener-from-callback.js:
      (firstListener):
      * networkinformation/script-tests/basic-all-types-of-events.js:
      * networkinformation/script-tests/basic-operation.js:
      * networkinformation/script-tests/multiple-frames.js:
      * networkinformation/script-tests/updates.js:
      (setNetworkInformation):
      * platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
      * platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html:
      * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html:
      * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html:
      * platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html:
      * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html:
      * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html:
      * platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html:
      * platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html:
      * platform/mac-wk2/tiled-drawing/fixed/four-bars.html:
      * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html:
      * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html:
      * platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html:
      * platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html:
      * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html:
      * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html:
      * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html:
      * platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html:
      * platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html:
      * platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html:
      * platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html:
      * platform/mac-wk2/tiled-drawing/slow-scrolling.html:
      * platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html:
      * platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html:
      * platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html:
      * platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt:
      * platform/mac/editing/spelling/autocorrection-blockquote-crash.html:
      * platform/mac/editing/spelling/delete-into-misspelled-word.html:
      * platform/mac/editing/spelling/editing-multiple-words-with-markers.html:
      * platform/mac/editing/spelling/editing-word-with-marker-1.html:
      * platform/mac/editing/spelling/editing-word-with-marker-2.html:
      * platform/mac/editing/spelling/move-cursor-around-misspelled-word.html:
      * platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt:
      * printing/page-format-data-expected.txt:
      * printing/page-format-data.html:
      * proximity/add-listener-from-callback.html:
      * proximity/basic-operation.html:
      * proximity/multiple-frames.html:
      * proximity/resources/event-after-navigation-new.html:
      * proximity/updates.html:
      * scrollingcoordinator/resources/non-fast-scrollable-region-testing.js:
      (runNonFastScrollableRegionTest):
      * touchadjustment/big-div.html:
      * touchadjustment/event-triggered-widgets.html:
      * touchadjustment/iframe.html:
      * touchadjustment/nested-shadow-node.html:
      * touchadjustment/resources/touchadjustment.js:
      (testTouchPoint):
      (testTouchPointContextMenu):
      (adjustTouchPoint):
      (adjustTouchPointContextMenu):
      * touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html:
      * touchadjustment/scroll-offset.html:
      * touchadjustment/search-cancel.html:
      * touchadjustment/zoom-basic.html:
      * touchadjustment/zoom-fatfinger.html:
      * transitions/created-while-suspended.html:
      * transitions/started-while-suspended.html:
      * transitions/suspend-transform-transition.html:
      * userscripts/insert-stylesheets.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e466981
  6. 04 Oct, 2013 2 commits
  7. 27 Sep, 2013 1 commit
    • dino@apple.com's avatar
      Provide 2D Matrix decomposition for animation · 3a0b736f
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=112824
      <rdar://problem/15091882>
      
      Reviewed by Eric Carlson (and Ian Henderson offline).
      
      Source/WebCore:
      
      Implement a new 2d matrix blend, which is triggered
      when animating between two affine 3d matrices. This
      is intended to be the official algorithm that gets
      put into the W3C Transforms specification.
      
      The old code is renamed with a 4 prefix (indicating
      it is a blend between 3d matrices using quaternions),
      and new methods and structures for 2d blending were added.
      
      I also took the opportunity to clean up a lot of
      bad WebKit style.
      
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::maxScaleFromTransform): Use 3d decomposition.
      * platform/graphics/transforms/PerspectiveTransformOperation.cpp:
      (WebCore::PerspectiveTransformOperation::blend): Ditto.
      * platform/graphics/transforms/RotateTransformOperation.cpp:
      (WebCore::RotateTransformOperation::blend): Ditto.
      
      * platform/graphics/transforms/TransformationMatrix.cpp:
      (WebCore::decompose2): New method to decompose an affine 3d matrix
      into X/Y scale + translate, a rotation angle, plus some extracted
      a,b,c,d fields from the affine section.
      (WebCore::decompose4): New name for the old function.
      (WebCore::TransformationMatrix::blend2): Perform linear interpolation
      between two 2d decompositions.
      (WebCore::TransformationMatrix::blend4): New name for the old function.
      (WebCore::TransformationMatrix::blend): Call blend2 or blend4 depending
      on the type of matrix.
      (WebCore::TransformationMatrix::decompose2): Calls into the decompose2
      method above.
      (WebCore::TransformationMatrix::decompose4): New name.
      (WebCore::TransformationMatrix::recompose2): Recomposes a 3d matrix from
      a 2d decomposition.
      (WebCore::TransformationMatrix::recompose4): New name.
      * platform/graphics/transforms/TransformationMatrix.h: All the changes
      for the new methods above.
      
      LayoutTests:
      
      This test was only exercising the fact that our
      software decomposition did not match our hardware
      decomposition (although that required visual inspection).
      Now that our 2d decomposition is correct, update the
      test and its expected result.
      
      * animations/transform-non-accelerated-expected.txt:
      * animations/transform-non-accelerated.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a0b736f
  8. 26 Sep, 2013 1 commit
  9. 07 Sep, 2013 1 commit
    • mark.lam@apple.com's avatar
      Change LayoutTests' a* and b* files to use pre and post js files in LayoutTests/resources. · a931ab23
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120985.
      
      Rubber stamped by Filip Pizlo.
      
      * accessibility/accessibility-node-memory-management.html:
      * accessibility/accessibility-node-reparent.html:
      * accessibility/accessibility-object-detached.html:
      * accessibility/adjacent-continuations-cause-assertion-failure.html:
      * accessibility/anonymous-render-block-in-continuation-causes-crash.html:
      * accessibility/aria-checkbox-checked.html:
      * accessibility/aria-checkbox-sends-notification.html:
      * accessibility/aria-checkbox-text.html:
      * accessibility/aria-combobox.html:
      * accessibility/aria-controls-with-tabs.html:
      * accessibility/aria-disabled.html:
      * accessibility/aria-fallback-roles.html:
      * accessibility/aria-help.html:
      * accessibility/aria-hidden-hides-all-elements.html:
      * accessibility/aria-hidden-update.html:
      * accessibility/aria-hidden-updates-alldescendants.html:
      * accessibility/aria-hidden-with-elements.html:
      * accessibility/aria-hidden.html:
      * accessibility/aria-invalid.html:
      * accessibility/aria-label.html:
      * accessibility/aria-labelledby-overrides-label.html:
      * accessibility/aria-list-and-listitem.html:
      * accessibility/aria-menubar-menuitems.html:
      * accessibility/aria-option-role.html:
      * accessibility/aria-presentational-role.html:
      * accessibility/aria-readonly.html:
      * accessibility/aria-required.html:
      * accessibility/aria-scrollbar-role.html:
      * accessibility/aria-sort.html:
      * accessibility/aria-tab-role-on-buttons.html:
      * accessibility/aria-tab-roles.html:
      * accessibility/aria-text-role.html:
      * accessibility/aria-toggle-button-with-title.html:
      * accessibility/aria-used-on-image-maps.html:
      * accessibility/button-title-uses-inner-img-alt.html:
      * accessibility/canvas-accessibilitynodeobject.html:
      * accessibility/canvas-description-and-role.html:
      * accessibility/canvas-fallback-content-2.html:
      * accessibility/canvas-fallback-content.html:
      * accessibility/color-well.html:
      * accessibility/container-node-delete-causes-crash.html:
      * accessibility/content-changed-notification-causes-crash.html:
      * accessibility/contenteditable-hidden-div.html:
      * accessibility/contenteditable-table-check-causes-crash.html:
      * accessibility/corresponding-control-deleted-crash.html:
      * accessibility/crash-adopt-node-from-new-document.html:
      * accessibility/crash-determining-aria-role-when-label-present.html:
      * accessibility/crash-with-noelement-selectbox.html:
      * accessibility/crashing-a-tag-in-map.html:
      * accessibility/deleting-iframe-destroys-axcache.html:
      * accessibility/disabled-controls-not-focusable.html:
      * accessibility/div-within-anchors-causes-crash.html:
      * accessibility/duplicate-axrenderobject-crash.html:
      * accessibility/duplicate-child-nodes.html:
      * accessibility/element-haspopup.html:
      * accessibility/ellipsis-text.html:
      * accessibility/empty-image-with-title.html:
      * accessibility/file-upload-button-with-axpress.html:
      * accessibility/first-letter-text-transform-causes-crash.html:
      * accessibility/focusable-div.html:
      * accessibility/global-aria-attributes-invalidate-presentational.html:
      * accessibility/hang-in-isignored.html:
      * accessibility/heading-level.html:
      * accessibility/heading-title-includes-links.html:
      * accessibility/hidden-legend.html:
      * accessibility/html-html-element-is-ignored.html:
      * accessibility/html5-required-attribute.html:
      * accessibility/iframe-bastardization.html:
      * accessibility/image-map-title-causes-crash.html:
      * accessibility/image-map-update-parent-crash.html:
      * accessibility/image-map1.html:
      * accessibility/img-alt-tag-only-whitespace.html:
      * accessibility/img-aria-button-alt-tag.html:
      * accessibility/img-fallsback-to-title.html:
      * accessibility/inline-continuations.html:
      * accessibility/input-file-causes-crash.html:
      * accessibility/input-image-alt.html:
      * accessibility/insert-selected-option-into-select-causes-crash.html:
      * accessibility/label-element-press.html:
      * accessibility/label-for-control-hittest.html:
      * accessibility/legend.html:
      * accessibility/link-inside-button-accessible-text.html:
      * accessibility/listbox-enabled-states.html:
      * accessibility/loading-iframe-sends-notification.html:
      * accessibility/loading-iframe-updates-axtree.html:
      * accessibility/media-controls.html:
      * accessibility/media-element.html:
      * accessibility/menu-item-crash.html:
      * accessibility/menu-list-sends-change-notification.html:
      * accessibility/meter-element.html:
      * accessibility/multiselect-list-reports-active-option.html:
      * accessibility/non-native-image-crash.html:
      * accessibility/noscript-ignored.html:
      * accessibility/notification-listeners.html:
      * accessibility/placeholder.html:
      * accessibility/platform-name.html:
      * accessibility/poorly-formed-aria-table.html:
      * accessibility/popup-button-title.html:
      * accessibility/presentational-elements-with-focus.html:
      * accessibility/press-works-on-control-types.html:
      * accessibility/radio-button-title-label.html:
      * accessibility/removed-anonymous-block-child-causes-crash.html:
      * accessibility/removed-continuation-element-causes-crash.html:
      * accessibility/render-counter-text.html:
      * accessibility/selection-states.html:
      * accessibility/spinbutton-value.html:
      * accessibility/svg-bounds.html:
      * accessibility/svg-group-element-with-title.html:
      * accessibility/svg-image.html:
      * accessibility/svg-remote-element.html:
      * accessibility/table-cell-for-column-and-row-crash.html:
      * accessibility/table-destroyed-crash.html:
      * accessibility/table-remove-cell-crash.html:
      * accessibility/table-with-empty-thead-causes-crash.html:
      * accessibility/table-with-hidden-head-section.html:
      * accessibility/table-with-mismatch-column-count-in-initial-section.html:
      * accessibility/text-role-with-aria-hidden-inside.html:
      * accessibility/textarea-insertion-point-line-number.html:
      * accessibility/textbox-role-reports-selection.html:
      * accessibility/title-ui-element-correctness.html:
      * accessibility/transformed-bounds.html:
      * accessibility/updating-attribute-in-table-causes-crash.html:
      * animations/animation-css-rule-types.html:
      * animations/animation-events-create.html:
      * animations/computed-style.html:
      * animations/keyframes-rule.html:
      * animations/script-tests/TEMPLATE.html:
      * batterystatus/add-listener-from-callback.html:
      * batterystatus/basic-all-types-of-events.html:
      * batterystatus/basic-operation.html:
      * batterystatus/event-after-navigation.html:
      * batterystatus/multiple-frames.html:
      * batterystatus/updates.html:
      * batterystatus/window-property.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a931ab23
  10. 05 Sep, 2013 1 commit
    • krit@webkit.org's avatar
      Support interpolation between cross-fade() images · 50fa7026
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119955
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      With this patch, CSS can animate from one -webkit-cross-fade
      function to another, when the input images are the same in the
      same order.
      
      * css/CSSCrossfadeValue.cpp: Added blend function.
      (WebCore::blendFunc):
      (WebCore::CSSCrossfadeValue::blend):
      (WebCore::CSSCrossfadeValue::equals):
      (WebCore::CSSCrossfadeValue::equalInputImages):
      * css/CSSCrossfadeValue.h: Added save casting functions.
      (WebCore::toCSSCrossfadeValue):
      * css/CSSValue.h:
      (WebCore::CSSValue::isCrossfadeValue):
      * page/animation/CSSPropertyAnimation.cpp: Add another condition to
          interpolate between two -webkit-cross-fade functions.
      (WebCore::blendFunc):
      
      LayoutTests:
      
      Test interpolation from one cross-fade function to another. Changed pixel test
      to a ref test.
      
      * animations/cross-fade-background-image.html:
      * animations/cross-fade-background-image-expected.html: Added.
      * platform/mac/animations/cross-fade-background-image-expected.png: Removed.
      * platform/mac/animations/cross-fade-background-image-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50fa7026
  11. 30 Aug, 2013 1 commit
    • krit@webkit.org's avatar
      Animate CSS Image filter() function · ebae578c
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119938
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      With this patch, the new introduced CSS Image function filter() can be
      animated. According to the spec, just filter functions can be
      interpolated.
      
      The patch also prepares StyleImage blending for interpolation of other
      generated images like gradients or cross-fade().
      
      http://dev.w3.org/fxtf/filters/#interpolating-filter-image
      
      Test: fast/filter-image/filter-image-animation.html
      
      * css/CSSComputedStyleDeclaration.cpp: Reuse the code that creates a
          CSSValueList from ComputeStyle logic.
      (WebCore::valueForPixel):
          For StyleRules we want to have not-adjusted length values.
      (WebCore::ComputedStyleExtractor::valueForShadow):
          Add argument to switch between adjusted and not-adjusted length.
      (WebCore::ComputedStyleExtractor::valueForFilter):
          Ditto.
      (WebCore::ComputedStyleExtractor::propertyValue):
      * css/CSSComputedStyleDeclaration.h:
      * css/CSSFilterImageValue.h: Add helper functions
          for animating filters. We need to pass the FilterOperations for
          the image generation and the CSSValueList for StyleRule.
      (WebCore::CSSFilterImageValue::filterOperations):
      (WebCore::CSSFilterImageValue::setFilterOperations):
      (WebCore::CSSFilterImageValue::cachedImage):
      * page/animation/CSSPropertyAnimation.cpp:
          Add animation code to support animations between two filter()
          function values.
      (WebCore::blendFilterOperations):
      (WebCore::blendFunc):
      (WebCore::filterBlend):
      * rendering/style/StyleGeneratedImage.h: Add helper functions.
      (WebCore::CSSFilterImageValue::imageValue):
      
      LayoutTests:
      
      Add tests to test animation between two filter() function values.
      Furthermore, extended animation-test-helpers.js to parse all kind of CSS
      image function where we support animations. CSS Image function can be
      deeply nested as well now:
      
          -wekit-filter(-webkit-cross-fade(url(a.png), url(b.png), 50%), sepia(0.5))
      
      Even the 50% can now be checked with a tolerance. If we should ever support
      animations on nested CSS Images, the new code in animation-test-helpers.js
      is prepared for it.
      
      Fixed a bunch of tests that passed by accident or needed an update to the new
      infrastructure.
      
      * animations/resources/animation-test-helpers.js:
      (parseCSSImage): For parsing of all kind of supported CSS Image functions.
          Currently supported: -webkit-cross-fade, -webkit-filter, url, none
          Still missing: linear and radial gradients (can not be animated yet).
          CSS Image functions are allowed to be nested as deep JS allows.
      (parseCrossFade): Add parsing of input CSS images.
      (parseFilterImage): Parse -webkit-filter image function as well as input images.
      (parseFilterFunctionList): Parse filter function list. We now parse the
          function name as well. Added rudimentary support for drop-shadow and url.
      (parseDeprecatedCustomFilterFunction): Special case old syntax of custom
          filter function. Shall be removed in the future.
      (compareCSSImages): Compares all kind (even deep nested) CSS images.
      (compareFilterFunctions): Now compare filter function names as well.
      (comparePropertyValue): Use new compareCSSImages function.
      * fast/filter-image/filter-image-animation-expected.txt: Added.
      * fast/filter-image/filter-image-animation.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebae578c
  12. 11 Jun, 2013 1 commit
    • sergio@webkit.org's avatar
      Autoclose braces and parentheses at the end of style sheet · 7d7118f3
      sergio@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=117414
      
      Reviewed by Andreas Kling.
      
      From Blink r150202 by <serya@chromium.org>
      
      Source/WebCore:
      
      Use closing_parenthesis and closing_brace instead of the literals
      '}' and ')'. This allows the parser to treat expressions with
      unmatched closing braces/parenthesis as if all of them were
      actually closed.
      
      Tests: animations/keyframe-autoclose-brace.html
             css3/autoclose-braces-and-parentheses.html
      
      * css/CSSGrammar.y.in:
      
      LayoutTests:
      
      * animations/keyframe-autoclose-brace-expected.txt: Added.
      * animations/keyframe-autoclose-brace.html: Added.
      * css3/autoclose-braces-and-parentheses-expected.txt: Added.
      * css3/autoclose-braces-and-parentheses.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d7118f3
  13. 10 Jun, 2013 1 commit
  14. 28 May, 2013 1 commit
    • dino@apple.com's avatar
      Animations do not restart after exiting page cache · dc08fd84
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116900
      
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      Animations are suspended as they enter the page cache, but
      were not getting correctly resumed when exiting. The cause
      was an error in r149576 which was checking a global flag for suspension
      on the AnimationController and thus not trying to resume anything.
      
      Test: animations/resume-after-page-cache.html
      
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
      (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
      
      LayoutTests:
      
      New test to make sure an animation will resume if it
      enters and leaves the page cache.
      
      * animations/resources/page-cache-helper.html: Added.
      * animations/resume-after-page-cache-expected.txt: Added.
      * animations/resume-after-page-cache.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc08fd84
  15. 04 May, 2013 1 commit
    • dino@apple.com's avatar
      Animations and Transitions should not start when globally suspended · f221e46d
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114915
      
      Reviewed by Sam Weinig.
      
      .:
      
      Export AnimationController::isSuspended().
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      When the Document's AnimationController was suspended, we still
      started new transitions and animations. Change this so that
      animations enter a paused-but-new state, where they are frozen
      until the AnimationController resumes. At that time, it is as
      if they had just appeared: any delay counts down before
      the animation starts.
      
      For transitions, the change in value must still happen, but
      it does so immediately. No transitionend event should be fired.
      This produces a slightly confusing behaviour, because any
      in-progress transitions are suspended, but any new style changes
      happen instantly. This might sound contradictory, but in general
      suspending the document is a rare (and dangerous) thing to do.
      
      Previously, the Document would call resumeAnimations as it loaded,
      effectively starting all the animations. This meant if you suspended
      animations before loading a document, it was ignored as soon as the
      load finished. Now there is a separate method startAnimationsIfNotSuspended
      which checks to see if the document is suspended as it loads.
      
      In order to handle this case, I added a new state to the Animation
      machinery: AnimationStatePausedNew. This is an animation that was created
      in the suspended state.
      
      Tests: animations/added-while-suspended.html
             transitions/started-while-suspended.html
      
      * WebCore.exp.in: Export AnimationController::isSuspended().
      
      * dom/Document.cpp:
      (WebCore::Document::implicitClose):
          resumeAnimationsForDocument() -> startAnimationsIfNotSuspended()
      
      * page/animation/AnimationBase.cpp:
      (WebCore::nameForState): New name for AnimationStatePausedNew.
      (WebCore::AnimationBase::updateStateMachine): Handle new state AnimationStatePausedNew. The
          most important change is that when go from PausedNew to Running, we jump back into
          the New state and continue from there.
      (WebCore::AnimationBase::updatePlayState): suspended -> isSuspended
      * page/animation/AnimationBase.h: New state: AnimationStatePausedNew
      (WebCore::AnimationBase::waitingToStart): Add AnimationStatePausedNew.
      (WebCore::AnimationBase::paused): Add AnimationStatePausedNew.
      (WebCore::AnimationBase::isNew): Add AnimationStatePausedNew.
      
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::AnimationControllerPrivate): Initialise m_suspended.
      (WebCore::AnimationControllerPrivate::clear): suspended -> isSuspended
      (WebCore::AnimationControllerPrivate::updateAnimations): Ditto.
      (WebCore::AnimationControllerPrivate::updateAnimationTimerForRenderer): Ditto.
      (WebCore::AnimationControllerPrivate::suspendAnimations): Update m_suspended.
      (WebCore::AnimationControllerPrivate::resumeAnimations): Ditto.
      (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
      (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
      (WebCore::AnimationControllerPrivate::startAnimationsIfNotSuspended): New method that will
          only resume animations if we were not globally suspended.
      (WebCore::AnimationController::isSuspended): New method.
      (WebCore::AnimationController::suspendAnimations): Add logging.
      (WebCore::AnimationController::resumeAnimations): Add logging.
      (WebCore::AnimationController::suspendAnimationsForDocument): Add logging.
      (WebCore::AnimationController::resumeAnimationsForDocument): Add logging.
      (WebCore::AnimationController::startAnimationsIfNotSuspended): Calls private method.
      * page/animation/AnimationController.h:
      (AnimationController): Add isSuspended() and animationsForDocumentMayStart().
      * page/animation/AnimationControllerPrivate.h:
      (WebCore::AnimationControllerPrivate::isSuspended): New method.
      (AnimationControllerPrivate): Add m_isSuspended member.
      
      * page/animation/CompositeAnimation.cpp:
      (WebCore::CompositeAnimation::CompositeAnimation): Moved from header - initialise m_isSuspended.
      (WebCore::CompositeAnimation::updateTransitions): Do not create ImplicitAnimation if suspended.
      (WebCore::CompositeAnimation::updateKeyframeAnimations): Move to AnimationStatePausedNew if suspended.
      (WebCore::CompositeAnimation::suspendAnimations): m_suspended -> m_isSuspended
      (WebCore::CompositeAnimation::resumeAnimations): Ditto.
      * page/animation/CompositeAnimation.h:
      (WebCore::CompositeAnimation::isSuspended): Renamed from suspended()
      
      * page/animation/KeyframeAnimation.cpp:
      (WebCore::KeyframeAnimation::animate): If we're in the AnimationStatePausedNew state, then
          we need to go to the first frame (to handle fill mode).
      
      * testing/Internals.cpp:
      (WebCore::Internals::animationsAreSuspended): New exposed method to reflect AnimationController.
      * testing/Internals.h: Add animationsAreSuspended.
      * testing/Internals.idl: Ditto.
      
      Source/WebKit:
      
      Export AnimationController::isSuspended
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/mac:
      
      The WebView private API cssAnimationsSuspended did not necessarily
      reflect the reality of the Frame's AnimationController value because it
      was caching rather than asking directly. While the WebCore part of this
      patch ensured loading the Document wouldn't resume all animations, it
      is still better to ask directly.
      
      * WebView/WebView.mm:
      (-[WebView cssAnimationsSuspended]): Call into AnimationController.
      (-[WebView setCSSAnimationsSuspended:]): Ditto.
      * WebView/WebViewData.h: Remove cssAnimationsSuspended boolean.
      * WebView/WebViewData.mm: Ditto.
      (-[WebViewPrivate init]):
      
      Source/WebKit/win:
      
      Export AnimationController::isSuspended
      
      * WebKit.vcproj/WebKitExports.def.in:
      
      LayoutTests:
      
      Two new tests. Add an animation or transition to
      the document when the global animation controller is suspended.
      In the animation case, nothing should happen until the
      animations are resumed. In the transition case, the style
      change should happen immediately and not fire any events.
      
      * animations/added-while-suspended-expected.txt: Added.
      * animations/added-while-suspended.html: Added.
      * animations/suspend-transform-animation.html: Make sure to resume suspended animations
          before quitting the test.
      * transitions/started-while-suspended-expected.txt: Added.
      * transitions/started-while-suspended.html: Added.
      * transitions/suspend-transform-transition.html: Make sure to resume suspended animations
          before quitting the test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f221e46d
  16. 25 Apr, 2013 1 commit
    • akling@apple.com's avatar
      CSS parser: Add error recovery while parsing @-webkit-keyframes key values. · afa57b4c
      akling@apple.com authored
      <http://webkit.org/b/115175>
      
      Source/WebCore:
      
      From Blink r148714 by <apavlov@chromium.org>:
      
      If not a percentage, "from", or "to" value is used in a key list, the rule is erroneous,
      and due to the absense of recovery, the parser skips the following, valid CSS rule.
      
      On a related note, keyframes, whose selectors contain invalid keys, should be discarded
      altogether, according to <http://www.w3.org/TR/css3-animations/#keyframes>
      
      Tests: animations/keyframes-invalid-keys.html
             fast/css/webkit-keyframes-errors.html
      
      * css/CSSGrammar.y.in:
      * css/CSSParser.cpp:
      (WebCore::CSSParser::rewriteSpecifiers):
      
      LayoutTests:
      
      From Blink r148714 by <apavlov@chromium.org>.
      
      * animations/keyframes-invalid-keys-expected.txt: Added.
      * animations/keyframes-invalid-keys.html: Added.
      * fast/css/webkit-keyframes-errors-expected.html: Added.
      * fast/css/webkit-keyframes-errors.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afa57b4c
  17. 24 Apr, 2013 1 commit
  18. 06 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      REGRESSION(r111639): delayed animation start can be postponed · 0f9d3e3c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108582
      
      Source/WebCore:
      
      Query the animation timer directly for the time it will next fire rather than
      trying to cache the interval. Previous approach was incorrect -- as time advanced
      it was possible for the interval to jump beyond the next service time.
      
      Patch by Douglas Stockwell <dstockwell@chromium.org> on 2013-03-06
      Reviewed by Darin Adler.
      
      Test: animations/animation-delay-changed.html
      
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
      (WebCore::AnimationControllerPrivate::updateAnimationTimerForRenderer):
      (WebCore::AnimationControllerPrivate::updateAnimationTimer):
      * page/animation/AnimationControllerPrivate.h:
      (AnimationControllerPrivate): Remove m_previousTimeToNextService
      
      LayoutTests:
      
      Patch by Douglas Stockwell <dstockwell@chromium.org> on 2013-03-06
      Reviewed by Darin Adler.
      
      * animations/animation-delay-changed-expected.txt: Added.
      * animations/animation-delay-changed.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f9d3e3c
  19. 07 Feb, 2013 1 commit
    • benjamin@webkit.org's avatar
      Move pauseAnimation/pauseTransition from TestRunner to Internals · 84dbb0d6
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109107
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-02-07
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Tests: animations/animation-internals-api-multiple-keyframes.html
             animations/animation-internals-api.html
      
      * testing/Internals.cpp:
      (WebCore::Internals::pauseAnimationAtTimeOnElement):
      (WebCore):
      (WebCore::Internals::pauseTransitionAtTimeOnElement):
      * testing/Internals.h:
      (Internals):
      * testing/Internals.idl:
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * WebCoreSupport/DumpRenderTreeSupportEfl.h:
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      * WebCoreSupport/DumpRenderTreeSupportGtk.h:
      (DumpRenderTreeSupportGtk):
      
      Source/WebKit/mac: 
      
      * WebView/WebFrame.mm:
      * WebView/WebFramePrivate.h:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      * WebCoreSupport/DumpRenderTreeSupportQt.h:
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
      * WebProcess/WebPage/WebFrame.cpp:
      * WebProcess/WebPage/WebFrame.h:
      (WebFrame):
      
      Tools: 
      
      * DumpRenderTree/TestRunner.cpp:
      (TestRunner::staticFunctions):
      * DumpRenderTree/TestRunner.h:
      * DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp:
      * DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
      (WebTestRunner::TestRunner::TestRunner):
      * DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
      (TestRunner):
      * DumpRenderTree/efl/TestRunnerEfl.cpp:
      * DumpRenderTree/gtk/TestRunnerGtk.cpp:
      * DumpRenderTree/mac/TestRunnerMac.mm:
      * DumpRenderTree/qt/TestRunnerQt.cpp:
      * DumpRenderTree/qt/TestRunnerQt.h:
      (TestRunner):
      * DumpRenderTree/win/TestRunnerWin.cpp:
      * DumpRenderTree/wx/TestRunnerWx.cpp:
      * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
      * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
      * WebKitTestRunner/InjectedBundle/TestRunner.h:
      
      LayoutTests: 
      
      Change the tests with the following:
      -Use the methods on Internals instead of TestRunner.
      -Adapt the calls to pass a particular element instead of an ID.
      -Remove feature detection. Having Internals implies having the feature.
      
      * animations/animation-hit-test-transform.html:
      * animations/animation-hit-test.html:
      * animations/animation-internals-api-expected.txt: Renamed from LayoutTests/animations/animation-drt-api-expected.txt.
      * animations/animation-internals-api-multiple-keyframes-expected.txt: Renamed from LayoutTests/animations/animation-drt-api-multiple-keyframes-expected.txt.
      * animations/animation-internals-api-multiple-keyframes.html: Renamed from LayoutTests/animations/animation-drt-api-multiple-keyframes.html.
      * animations/animation-internals-api.html: Renamed from LayoutTests/animations/animation-drt-api.html.
      * animations/change-keyframes-name.html:
      * animations/change-transform-style-during-animation.html:
      * animations/missing-from-to-transforms.html:
      * animations/missing-from-to.html:
      * animations/resources/animation-test-helpers.js:
      (checkExpectedValue):
      (startTest):
      * css3/calc/transitions-dependent.html:
      * fast/dom/shadow/transition-on-shadow-host-with-distributed-node.html:
      * transitions/opacity-transition-zindex.html:
      * transitions/resources/transition-test-helpers.js:
      (expected):
      * transitions/transition-drt-api-delay.html:
      * transitions/transition-drt-api.html:
      * transitions/transition-hit-test-transform.html:
      * transitions/transition-hit-test.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84dbb0d6
  20. 04 Feb, 2013 1 commit
    • benjamin@webkit.org's avatar
      Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from... · 99308baf
      benjamin@webkit.org authored
      Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
      https://bugs.webkit.org/show_bug.cgi?id=108741
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-02-04
      Reviewed by Tony Chang.
      
      .: 
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: 
      
      Move suspendAnimations and resumeAnimations to group all the animation related
      code together.
      
      Add support for numberOfActiveAnimations, similarily to the feature previously defined
      in TestRunner.
      
      * testing/Internals.cpp:
      (WebCore::Internals::numberOfActiveAnimations):
      (WebCore):
      (WebCore::Internals::suspendAnimations):
      (WebCore::Internals::resumeAnimations):
      * testing/Internals.h:
      (Internals):
      * testing/Internals.idl:
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * WebCoreSupport/DumpRenderTreeSupportEfl.h:
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      * WebCoreSupport/DumpRenderTreeSupportGtk.h:
      (DumpRenderTreeSupportGtk):
      
      Source/WebKit/mac: 
      
      * WebView/WebFrame.mm:
      * WebView/WebFramePrivate.h:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      * WebCoreSupport/DumpRenderTreeSupportQt.h:
      
      Source/WebKit/win: 
      
      * WebKit.vcproj/WebKitExports.def.in:
      
      Source/WebKit2: 
      
      Suspending and resuming application has been useless for a one. Someone just
      "forgot" WebKit2.
      
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
      * WebProcess/WebPage/WebFrame.cpp:
      * WebProcess/WebPage/WebFrame.h:
      (WebFrame):
      
      Tools: 
      
      Remove all support for suspendAnimation(), resumeAnimation() and numberOfActiveAnimations().
      
      * DumpRenderTree/TestRunner.cpp:
      (TestRunner::staticFunctions):
      * DumpRenderTree/TestRunner.h:
      (TestRunner):
      * DumpRenderTree/blackberry/TestRunnerBlackBerry.cpp:
      * DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
      (WebTestRunner::TestRunner::TestRunner):
      * DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
      (TestRunner):
      * DumpRenderTree/efl/TestRunnerEfl.cpp:
      * DumpRenderTree/gtk/TestRunnerGtk.cpp:
      * DumpRenderTree/mac/TestRunnerMac.mm:
      * DumpRenderTree/qt/TestRunnerQt.cpp:
      * DumpRenderTree/qt/TestRunnerQt.h:
      (TestRunner):
      * DumpRenderTree/win/TestRunnerWin.cpp:
      * DumpRenderTree/wx/TestRunnerWx.cpp:
      * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
      * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
      * WebKitTestRunner/InjectedBundle/TestRunner.h:
      (TestRunner):
      
      LayoutTests: 
      
      Update the tests to use WebCore Internals instead of the TestRunner.
      
      * animations/animation-controller-drt-api.html:
      * transitions/hang-with-bad-transition-list.html:
      * transitions/remove-transition-style.html:
      * transitions/repeated-firing-background-color.html:
      * transitions/zero-duration-with-non-zero-delay-end.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99308baf
  21. 03 Jan, 2013 1 commit
    • alexis@webkit.org's avatar
      Querying transition-timing-function value on the computed style does not... · 05500357
      alexis@webkit.org authored
      Querying transition-timing-function value on the computed style does not return keywords when it should.
      https://bugs.webkit.org/show_bug.cgi?id=105442
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      http://www.w3.org/TR/css3-transitions/#transition-timing-function-property
      contains a set of predefined timing functions which under the hood are
      implemented using cubic-bezier but it's an implementation detail that
      should not be exposed. It seems to be more clear to return a CSS
      keyword rather than the cubic-bezier form when querying the value of
      the property on the computed style. In fact the spec even say that for
      example the initial value is "ease" and not cubic-bezier(0.25, 0.1,
      0.25, 1.0). We could also imagine that in the future these predefined
      values could contain other values not represented by a cubic-bezier
      form. This behavior also align with the "linear" keyword which return
      "linear" rather than cubic-bezier(0.0, 0.0, 1.0, 1.0).
      
      Test: transitions/transitions-parsing.html has been updated to cover
      the new behavior as well as making sure that an explicitly set value of
      cubic-bezier(0.25, 0.1, 0.25, 1.0) does not return "ease" but the
      cubic-bezier() form.
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::createAnimationValue):
      (WebCore):
      (WebCore::getTimingFunctionValue):
      * css/CSSToStyleMap.cpp:
      (WebCore::CSSToStyleMap::mapAnimationTimingFunction):
      * platform/animation/TimingFunction.h:
      (WebCore::CubicBezierTimingFunction::create):
      (CubicBezierTimingFunction):
      (WebCore::CubicBezierTimingFunction::operator==):
      (WebCore::CubicBezierTimingFunction::timingFunctionPreset): Store the
      preset value of the timing function if it is one when creating it
      so we can use it later from the computed style.
      (WebCore::CubicBezierTimingFunction::CubicBezierTimingFunction):
      
      Source/WebKit2:
      
      Update the code to pass the animations from one process to another as
      the constructor of TimingFunction changed to take an extra parameter
      holding the type of the cubic-bezier form.
      
      * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
      (CoreIPC::encodeTimingFunction):
      (CoreIPC::decodeTimingFunction):
      
      LayoutTests:
      
      Update the tests to match the correct behavior of returning a keyword
      rather than a cubic-bezier() form when using predefined values for the
      transition-timing-function property.
      
      * animations/animation-shorthand-name-order-expected.txt:
      * animations/animation-shorthand-name-order.html:
      * animations/animation-shorthand-removed.html:
      * animations/animation-shorthand.html:
      * animations/computed-style-expected.txt:
      * animations/computed-style.html:
      * fast/css/getComputedStyle/computed-style-expected.txt:
      * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
      * svg/css/getComputedStyle-basic-expected.txt:
      * transitions/inherit-other-props-expected.txt:
      * transitions/inherit-other-props.html:
      * transitions/transitions-parsing-expected.txt:
      * transitions/transitions-parsing.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05500357
  22. 10 Dec, 2012 1 commit
    • dino@apple.com's avatar
      Remove old WebKit Animation API code · ead94b64
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=104611
      
      Reviewed by Simon Fraser.
      
      Remove the existing, unused animation API code. We'll look into
      implementing the W3C Animation API if/when it is stable.
      
      Source/WebCore:
      
      * CMakeLists.txt: Remove WebKitAnimation and WebKitAnimationList classes.
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Target.pri:
      * UseJSC.cmake:
      * UseV8.cmake:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp: Remove includes.
      * bindings/js/JSWebKitAnimationCustom.cpp: Removed.
      * bindings/js/JSWebKitAnimationListCustom.cpp: Removed.
      * dom/Element.cpp: Remove API.
      * dom/Element.h: Ditto.
      * dom/Element.idl: Ditto.
      * page/DOMWindow.idl: Ditto.
      * page/WebKitAnimation.cpp: Removed.
      * page/WebKitAnimation.h: Removed.
      * page/WebKitAnimation.idl: Removed.
      * page/WebKitAnimationList.cpp: Removed.
      * page/WebKitAnimationList.h: Removed.
      * page/WebKitAnimationList.idl: Removed.
      * page/animation/AnimationController.cpp: Remove API.
      * page/animation/AnimationController.h: Ditto.
      * page/animation/AnimationControllerPrivate.h: Ditto.
      * page/animation/CompositeAnimation.cpp: Ditto.
      * page/animation/CompositeAnimation.h: Ditto.
      
      LayoutTests:
      
      * animations/animation-api-1-expected.txt: Removed.
      * animations/animation-api-1.html: Removed.
      * fast/js/global-constructors-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ead94b64
  23. 21 Nov, 2012 1 commit
  24. 20 Nov, 2012 1 commit
    • commit-queue@webkit.org's avatar
      animations/stop-animation-on-suspend.html sometimes fails on all platforms · da0120ca
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=49182
      
      Patch by Jussi Kukkonen <jussi.kukkonen@intel.com> on 2012-11-20
      Reviewed by Antti Koivisto.
      
      stop-animation-on-suspend incorrectly assumed that animation in a subframe would start
      roughly at document load. Keep both animations (one in main frame, one in iframe) paused
      until the iframe is loaded: this way they should run synchronised enough.
      
      Also increase the tolerance of the test slightly: measuring timing like this is inherently flaky.
      
      Remove failure expectation from all TestExpectations and remove the clearly wrong expected
      result for chromium-mac.
      
      * animations/resources/stop-animation-on-suspend-subframe.html:
      * animations/stop-animation-on-suspend.html:
      * platform/chromium/TestExpectations:
      * platform/chromium-mac/animations/stop-animation-on-suspend-expected.txt:
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/mac/TestExpectations:
      * platform/qt-arm/TestExpectations:
      * platform/win/TestExpectations:
      * platform/wincairo/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da0120ca
  25. 19 Nov, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Coordinated Graphics: Remove tiles of a layer when they are off the viewport. · 8b3c3b4f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=102313
      
      Patch by Huang Dongsung <luxtella@company100.net> on 2012-11-19
      Reviewed by Noam Rosenthal.
      
      Source/WebKit2:
      
      Currently, we don't remove tiles of the layer with the special properties: a
      transform animation and non affine transform. If a page has a lot of layers with
      a transform animation, we will encounter OOM. So this patch removes the
      privilege of the layer.
      
      There are two changes.
      1. computeTransformedVisibleRect() calculates a layer transform using the
      current local transform which a transform animation applied.
      2. tiledBackingStoreVisibleRect() calculates a visible
      rect of all layers, even if the layer includes the property: a transform
      animation or non affine transform.
      
      Test: animations/animation-offscreen-to-onscreen.html
      
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
      (WebCore::CoordinatedGraphicsLayer::effectiveContentsScale):
      (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
      (WebCore::CoordinatedGraphicsLayer::hasPendingVisibleChanges):
      (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
      (WebCore::CoordinatedGraphicsLayer::selfOrAncestorHasActiveTransformAnimation):
      (WebCore):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
      (CoordinatedGraphicsLayer):
      
      LayoutTests:
      
      This test checks that a compositing layer is rendered if the layer is
      originally transformed off the viewport.
      
      * animations/animation-offscreen-to-onscreen-expected.png: Added.
      * animations/animation-offscreen-to-onscreen-expected.txt: Added.
      * animations/animation-offscreen-to-onscreen.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b3c3b4f
  26. 14 Nov, 2012 2 commits
    • krit@webkit.org's avatar
      Support animation of basic shape 'polygon' · 64a42225
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=102080
      
      Reviewed by Daniel Bates.
      
      Source/WebCore:
      
      The basic shapes 'circle', 'rectangle' and 'ellipse' are animatable with the committed
      patch http://trac.webkit.org/changeset/134352.
      This is a follow-up patch to make 'polygon' animatable as well, as long as the number
      of vertices between start and end polygon is the same.
      
      Added polygon animation test to existing test:
          fast/exclusions/shape-inside/shape-inside-animation.html
          css3/masking/clip-path-animation.html
      
      * page/animation/CSSPropertyAnimation.cpp: Forgot to add copyright with last commits.
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShape::canBlend): Polygons are allowed now.
      (WebCore::BasicShapePolygon::blend): Interpolate polygon shapes.
      
      LayoutTests:
      
      Added animation test for basic shape 'polygon' to existing test
      css3/masking/clip-path-animation.html and
      fast/exclusions/shape-inside/shape-inside-animation.html.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape):
      * css3/masking/clip-path-animation-expected.txt:
      * css3/masking/clip-path-animation.html:
      * fast/exclusions/shape-inside/shape-inside-animation-expected.txt:
      * fast/exclusions/shape-inside/shape-inside-animation.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64a42225
    • krit@webkit.org's avatar
      [CSS Exclusions] Basic shapes on 'shape-inside' should be animatable · 29d9a18b
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=102123
      
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      The '-webkit-shape-inside' propery takes a BasicShape as input like
      '-webkit-clip-path'. Follow up on http://trac.webkit.org/changeset/134352 and
      make '-webkit-shape-inside' animatable as well.
      
      Test: fast/exclusions/shape-inside/shape-inside-animation.html
      
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::blendFunc): Blend fuction for exclusion shapes. The property takes another
          input then '-webkit-clip-path'.
      (WebCore):
      (PropertyWrapperBasicShape): Add wrapper for BasicShape object. Can be reused by
          '-webkit-shape-ourside' as well.
      (WebCore::PropertyWrapperBasicShape::PropertyWrapperBasicShape):
      (WebCore::CSSPropertyAnimation::ensurePropertyMap):
      
      LayoutTests:
      
      Add new animation test for 'shape-inside', similar to 'clip-path' test.
      
      * animations/resources/animation-test-helpers.js:
      (getPropertyValue):
      (comparePropertyValue):
      * fast/exclusions/shape-inside/shape-inside-animation-expected.txt: Added.
      * fast/exclusions/shape-inside/shape-inside-animation.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29d9a18b
  27. 12 Nov, 2012 1 commit
    • krit@webkit.org's avatar
      BasicShapes 'circle', 'rectangle', 'ellipse' should be animatable with themselves · 610b396d
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101854
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      The basic shapes BasicShapeCircle, BasicShapeEllipse and BasicShapeRectangle should
      blend with themselves. This patch introduces simple interpolation of BasicShapes for
      the -webkit-clip-path property.
      
      Test: css3/masking/clip-path-animation.html
      
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::blendFunc): Added a new function that blends between two BasicShape objects.
          It skips blending on <clipPath> references, polygons and if the shapes are not of
          the same type.
      (WebCore):
      (PropertyWrapperClipPath): Added new wrapper for ClipPathShapes.
      (WebCore::PropertyWrapperClipPath::PropertyWrapperClipPath): Ditto.
      (WebCore::CSSPropertyAnimation::ensurePropertyMap): Add -webkit-clip-path to animatable
          properties.
      * rendering/style/BasicShapes.cpp:
          The blending is done by each shape itself. This is similar to FilterOperations or
          TransformOperations.
      (WebCore::BasicShapeRectangle::blend):
      (WebCore):
      (WebCore::BasicShapeCircle::blend):
      (WebCore::BasicShapeEllipse::blend):
      (WebCore::BasicShapePolygon::blend):
      * rendering/style/BasicShapes.h:
          Added new blending functions to header.
      (BasicShape):
      (BasicShapeRectangle):
      (BasicShapeCircle):
      (BasicShapeEllipse):
      (BasicShapePolygon):
      
      LayoutTests:
      
      Added an animtation test for -webkit-clip-path and tested the basic shapes.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape):
      (basicShapeParametersMatch):
      (getPropertyValue):
      (comparePropertyValue):
      * css3/masking/clip-path-animation-expected.txt: Added.
      * css3/masking/clip-path-animation.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      610b396d
  28. 29 Oct, 2012 1 commit
    • michelangelo@webkit.org's avatar
      [CSS Shaders] Implement CustomFilterArrayParameter::blend · 187c9352
      michelangelo@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96437
      
      Reviewed by Dean Jackson.
      
      Source/WebCore:
      
      This patch adds the missing code to blend values within
      an array() when using Custom Filters.
      
      Test: css3/filters/custom/custom-filter-array-blending.html
      
      * platform/graphics/filters/CustomFilterArrayParameter.h:
      (WebCore::CustomFilterArrayParameter::blend):
      
      LayoutTests:
      
      New tests to asses the correctness of CustomFilterArrayParameter::blend.
      
      * animations/resources/animation-test-helpers.js:
      (customFilterParameterMatch): A check for functions' parameters length has been added.
      * css3/filters/custom/custom-filter-array-blending-expected.txt: Added.
      * css3/filters/custom/custom-filter-array-blending.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      187c9352
  29. 18 Oct, 2012 1 commit
    • dpranke@chromium.org's avatar
      Land first batch of Chromium Mac 10.8-specific baselines. · 000a22c4
      dpranke@chromium.org authored
      Unreviewed, gardening.
      
      * animations/cross-fade-background-image-expected.png: Renamed from LayoutTests/platform/efl/animations/cross-fade-background-image-expected.png.
      * animations/cross-fade-border-image-source-expected.png: Renamed from LayoutTests/platform/efl/animations/cross-fade-border-image-source-expected.png.
      * animations/cross-fade-list-style-image-expected.png: Renamed from LayoutTests/platform/efl/animations/cross-fade-list-style-image-expected.png.
      * animations/cross-fade-webkit-mask-image-expected.png: Renamed from LayoutTests/platform/efl/animations/cross-fade-webkit-mask-image-expected.png.
      * platform/chromium-mac-lion/animations/3d/change-transform-in-end-event-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/3d/change-transform-in-end-event-expected.png.
      * platform/chromium-mac-lion/animations/3d/matrix-transform-type-animation-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/3d/matrix-transform-type-animation-expected.png.
      * platform/chromium-mac-lion/animations/3d/state-at-end-event-transform-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/3d/state-at-end-event-transform-expected.png.
      * platform/chromium-mac-lion/animations/cross-fade-background-image-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/cross-fade-background-image-expected.png.
      * platform/chromium-mac-lion/animations/cross-fade-border-image-source-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/cross-fade-border-image-source-expected.png.
      * platform/chromium-mac-lion/animations/cross-fade-list-style-image-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/cross-fade-list-style-image-expected.png.
      * platform/chromium-mac-lion/animations/cross-fade-webkit-mask-image-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/cross-fade-webkit-mask-image-expected.png.
      * platform/chromium-mac-lion/animations/state-at-end-event-expected.png: Copied from LayoutTests/platform/chromium-mac/animations/state-at-end-event-expected.png.
      * platform/chromium-mac-lion/compositing/animation/state-at-end-event-transform-layer-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/animation/state-at-end-event-transform-layer-expected.png.
      * platform/chromium-mac-lion/compositing/color-matching/pdf-image-match-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/color-matching/pdf-image-match-expected.png.
      * platform/chromium-mac-lion/compositing/compositing-visible-descendant-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/compositing-visible-descendant-expected.png.
      * platform/chromium-mac-lion/compositing/generated-content-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/generated-content-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/abs-position-inside-opacity-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/abs-position-inside-opacity-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/composited-html-size-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/composited-html-size-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-in-composited-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-in-composited-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-composited-page-scale-down-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-composited-page-scale-down-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-composited-page-scale-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-composited-page-scale-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-iframe-composited-page-scale-down-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-iframe-composited-page-scale-down-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-iframe-composited-page-scale-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-iframe-composited-page-scale-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-transform-composited-page-scale-down-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-transform-composited-page-scale-down-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/fixed-position-transform-composited-page-scale-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/fixed-position-transform-composited-page-scale-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/layer-due-to-layer-children-deep-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/layer-due-to-layer-children-deep-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/layer-due-to-layer-children-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/layer-due-to-layer-children-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/outline-change-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/outline-change-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/partial-layout-update-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/partial-layout-update-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/root-layer-update-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/root-layer-update-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/video-fixed-scrolling-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/video-fixed-scrolling-expected.png.
      * platform/chromium-mac-lion/compositing/geometry/video-opacity-overlay-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/geometry/video-opacity-overlay-expected.png.
      * platform/chromium-mac-lion/compositing/iframes/composited-iframe-alignment-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/iframes/composited-iframe-alignment-expected.png.
      * platform/chromium-mac-lion/compositing/iframes/iframe-copy-on-scroll-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/iframes/iframe-copy-on-scroll-expected.png.
      * platform/chromium-mac-lion/compositing/images/direct-image-background-color-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/images/direct-image-background-color-expected.png.
      * platform/chromium-mac-lion/compositing/layers-inside-overflow-scroll-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/layers-inside-overflow-scroll-expected.png.
      * platform/chromium-mac-lion/compositing/masks/direct-image-mask-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/masks/direct-image-mask-expected.png.
      * platform/chromium-mac-lion/compositing/masks/masked-ancestor-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/masks/masked-ancestor-expected.png.
      * platform/chromium-mac-lion/compositing/masks/multiple-masks-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/masks/multiple-masks-expected.png.
      * platform/chromium-mac-lion/compositing/masks/simple-composited-mask-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/masks/simple-composited-mask-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/ancestor-overflow-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/ancestor-overflow-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/fixed-position-ancestor-clip-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/fixed-position-ancestor-clip-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/nested-scrolling-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/nested-scrolling-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/overflow-compositing-descendant-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/overflow-compositing-descendant-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/overflow-positioning-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/overflow-positioning-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/overflow-scroll-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/overflow-scroll-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/parent-overflow-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/parent-overflow-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/remove-overflow-crash2-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/remove-overflow-crash2-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/scroll-ancestor-update-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/scroll-ancestor-update-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/scrollbar-painting-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/scrollbar-painting-expected.png.
      * platform/chromium-mac-lion/compositing/overflow/theme-affects-visual-overflow-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/overflow/theme-affects-visual-overflow-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/animation-inside-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/animation-inside-reflection-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/compositing-change-inside-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/compositing-change-inside-reflection-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/deeply-nested-reflections-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/deeply-nested-reflections-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/load-video-in-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/load-video-in-reflection-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/masked-reflection-on-composited-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/masked-reflection-on-composited-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-anchor-point-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-anchor-point-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-animated-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-animated-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-mask-change-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-mask-change-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-on-overflow-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-on-overflow-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-opacity-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-opacity-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-size-change-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-size-change-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-transformed-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-transformed-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-transformed2-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-transformed2-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/nested-reflection-transition-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/nested-reflection-transition-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/reflection-in-composited-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/reflection-in-composited-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/reflection-on-composited-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/reflection-on-composited-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/reflection-ordering-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/reflection-ordering-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/reflection-positioning-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/reflection-positioning-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/reflection-positioning2-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/reflection-positioning2-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/simple-composited-reflections-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/simple-composited-reflections-expected.png.
      * platform/chromium-mac-lion/compositing/reflections/transform-inside-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/reflections/transform-inside-reflection-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/become-overlay-composited-layer-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/become-overlay-composited-layer-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/composited-document-element-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/composited-document-element-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/layer-repaint-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/layer-repaint-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/layer-repaint-rects-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/layer-repaint-rects-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/opacity-between-absolute-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/opacity-between-absolute-expected.png.
      * platform/chromium-mac-lion/compositing/repaint/opacity-between-absolute2-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/repaint/opacity-between-absolute2-expected.png.
      * platform/chromium-mac-lion/compositing/self-painting-layers-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/self-painting-layers-expected.png.
      * platform/chromium-mac-lion/compositing/sibling-positioning-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/sibling-positioning-expected.png.
      * platform/chromium-mac-lion/compositing/text-on-large-layer-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/text-on-large-layer-expected.png.
      * platform/chromium-mac-lion/compositing/transitions/scale-transition-no-start-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/transitions/scale-transition-no-start-expected.png.
      * platform/chromium-mac-lion/compositing/transitions/singular-scale-transition-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/transitions/singular-scale-transition-expected.png.
      * platform/chromium-mac-lion/compositing/video/video-controls-layer-creation-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/video/video-controls-layer-creation-expected.png.
      * platform/chromium-mac-lion/compositing/webgl/webgl-background-color-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/webgl/webgl-background-color-expected.png.
      * platform/chromium-mac-lion/compositing/webgl/webgl-reflection-expected.png: Copied from LayoutTests/platform/chromium-mac/compositing/webgl/webgl-reflection-expected.png.
      * platform/chromium-mac/animations/3d/change-transform-in-end-event-expected.png:
      * platform/chromium-mac/animations/3d/matrix-transform-type-animation-expected.png:
      * platform/chromium-mac/animations/3d/state-at-end-event-transform-expected.png:
      * platform/chromium-mac/animations/cross-fade-background-image-expected.png:
      * platform/chromium-mac/animations/cross-fade-border-image-source-expected.png:
      * platform/chromium-mac/animations/cross-fade-list-style-image-expected.png:
      * platform/chromium-mac/animations/cross-fade-webkit-mask-image-expected.png:
      * platform/chromium-mac/animations/state-at-end-event-expected.png:
      * platform/chromium-mac/compositing/animation/state-at-end-event-transform-layer-expected.png:
      * platform/chromium-mac/compositing/color-matching/pdf-image-match-expected.png:
      * platform/chromium-mac/compositing/compositing-visible-descendant-expected.png:
      * platform/chromium-mac/compositing/generated-content-expected.png:
      * platform/chromium-mac/compositing/geometry/abs-position-inside-opacity-expected.png:
      * platform/chromium-mac/compositing/geometry/composited-html-size-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-in-composited-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-composited-page-scale-down-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-composited-page-scale-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-iframe-composited-page-scale-down-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-iframe-composited-page-scale-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-transform-composited-page-scale-down-expected.png:
      * platform/chromium-mac/compositing/geometry/fixed-position-transform-composited-page-scale-expected.png:
      * platform/chromium-mac/compositing/geometry/layer-due-to-layer-children-deep-expected.png:
      * platform/chromium-mac/compositing/geometry/layer-due-to-layer-children-expected.png:
      * platform/chromium-mac/compositing/geometry/outline-change-expected.png:
      * platform/chromium-mac/compositing/geometry/partial-layout-update-expected.png:
      * platform/chromium-mac/compositing/geometry/root-layer-update-expected.png:
      * platform/chromium-mac/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.png:
      * platform/chromium-mac/compositing/geometry/video-fixed-scrolling-expected.png:
      * platform/chromium-mac/compositing/geometry/video-opacity-overlay-expected.png:
      * platform/chromium-mac/compositing/iframes/composited-iframe-alignment-expected.png:
      * platform/chromium-mac/compositing/iframes/iframe-copy-on-scroll-expected.png:
      * platform/chromium-mac/compositing/images/direct-image-background-color-expected.png:
      * platform/chromium-mac/compositing/layers-inside-overflow-scroll-expected.png:
      * platform/chromium-mac/compositing/masks/direct-image-mask-expected.png:
      * platform/chromium-mac/compositing/masks/masked-ancestor-expected.png:
      * platform/chromium-mac/compositing/masks/multiple-masks-expected.png:
      * platform/chromium-mac/compositing/masks/simple-composited-mask-expected.png:
      * platform/chromium-mac/compositing/overflow/ancestor-overflow-expected.png:
      * platform/chromium-mac/compositing/overflow/fixed-position-ancestor-clip-expected.png:
      * platform/chromium-mac/compositing/overflow/nested-scrolling-expected.png:
      * platform/chromium-mac/compositing/overflow/overflow-compositing-descendant-expected.png:
      * platform/chromium-mac/compositing/overflow/overflow-positioning-expected.png:
      * platform/chromium-mac/compositing/overflow/overflow-scroll-expected.png:
      * platform/chromium-mac/compositing/overflow/parent-overflow-expected.png:
      * platform/chromium-mac/compositing/overflow/remove-overflow-crash2-expected.png:
      * platform/chromium-mac/compositing/overflow/scroll-ancestor-update-expected.png:
      * platform/chromium-mac/compositing/overflow/scrollbar-painting-expected.png:
      * platform/chromium-mac/compositing/overflow/theme-affects-visual-overflow-expected.png:
      * platform/chromium-mac/compositing/reflections/animation-inside-reflection-expected.png:
      * platform/chromium-mac/compositing/reflections/compositing-change-inside-reflection-expected.png:
      * platform/chromium-mac/compositing/reflections/deeply-nested-reflections-expected.png:
      * platform/chromium-mac/compositing/reflections/load-video-in-reflection-expected.png:
      * platform/chromium-mac/compositing/reflections/masked-reflection-on-composited-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-anchor-point-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-animated-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-mask-change-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-on-overflow-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-opacity-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-size-change-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-transformed-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-transformed2-expected.png:
      * platform/chromium-mac/compositing/reflections/nested-reflection-transition-expected.png:
      * platform/chromium-mac/compositing/reflections/reflection-in-composited-expected.png:
      * platform/chromium-mac/compositing/reflections/reflection-on-composited-expected.png:
      * platform/chromium-mac/compositing/reflections/reflection-ordering-expected.png:
      * platform/chromium-mac/compositing/reflections/reflection-positioning-expected.png:
      * platform/chromium-mac/compositing/reflections/reflection-positioning2-expected.png:
      * platform/chromium-mac/compositing/reflections/simple-composited-reflections-expected.png:
      * platform/chromium-mac/compositing/reflections/transform-inside-reflection-expected.png:
      * platform/chromium-mac/compositing/repaint/become-overlay-composited-layer-expected.png:
      * platform/chromium-mac/compositing/repaint/composited-document-element-expected.png:
      * platform/chromium-mac/compositing/repaint/layer-repaint-expected.png:
      * platform/chromium-mac/compositing/repaint/layer-repaint-rects-expected.png:
      * platform/chromium-mac/compositing/repaint/opacity-between-absolute-expected.png:
      * platform/chromium-mac/compositing/repaint/opacity-between-absolute2-expected.png:
      * platform/chromium-mac/compositing/self-painting-layers-expected.png:
      * platform/chromium-mac/compositing/sibling-positioning-expected.png:
      * platform/chromium-mac/compositing/text-on-large-layer-expected.png:
      * platform/chromium-mac/compositing/transitions/scale-transition-no-start-expected.png:
      * platform/chromium-mac/compositing/transitions/singular-scale-transition-expected.png:
      * platform/chromium-mac/compositing/video/video-controls-layer-creation-expected.png:
      * platform/chromium-mac/compositing/webgl/webgl-background-color-expected.png:
      * platform/chromium-mac/compositing/webgl/webgl-reflection-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      000a22c4
  30. 01 Oct, 2012 1 commit
  31. 12 Sep, 2012 1 commit
    • achicu@adobe.com's avatar
      [CSS Shaders] Implement transform parameter animations for CSS Custom Filters · 02f8d69f
      achicu@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=94980
      
      Reviewed by Dean Jackson.
      
      Based on patch from Joshua Netterfield <jnetterfield@rim.com>.
      
      Source/WebCore:
      
      According to Section 39.2 of Filter Effects 1.0 Editor's draft
      (https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html), animations
      of transforms should be handled following the CSS3 transform interpolation
      rules. This patch implements this functionality.
      
      Test: css3/filters/custom/custom-filter-transforms-animation.html
      
      * page/animation/CSSPropertyAnimation.cpp:
      (WebCore::blendFunc):
      (WebCore):
      * platform/graphics/filters/CustomFilterNumberParameter.h:
      (WebCore::CustomFilterNumberParameter::blend):
      * platform/graphics/filters/CustomFilterOperation.cpp:
      (WebCore::blendCustomFilterParameters):
      (WebCore::CustomFilterOperation::blend):
      * platform/graphics/filters/CustomFilterOperation.h:
      (WebCore):
      (WebCore::CustomFilterOperation::blendingNeedsRendererSize): Some filters need the box size, so that they could compute
      Transforms. Right now only the CustomFilterOperation needs that, but I've implemented using this generic function.
      (CustomFilterOperation):
      * platform/graphics/filters/CustomFilterParameter.h:
      (CustomFilterParameter):
      * platform/graphics/filters/CustomFilterTransformParameter.h:
      (CustomFilterTransformParameter):
      (WebCore::CustomFilterTransformParameter::blend):
      * platform/graphics/filters/FilterOperation.h:
      (WebCore::FilterOperation::FilterOperation::blend):
      (FilterOperation):
      (WebCore::FilterOperation::FilterOperation::blendingNeedsRendererSize):
      * platform/graphics/transforms/TransformOperations.cpp: Extracted the blending functions from CSSPropertyAnimation.cpp
      so that they could be reused from other classes.
      (WebCore::TransformOperations::blendByMatchingOperations):
      (WebCore):
      (WebCore::TransformOperations::blendByUsingMatrixInterpolation): Used when the TransformOperations do not match.
      (WebCore::TransformOperations::blend): Uses when the caller doesn't know whether the TransformOperations match or not.
      * platform/graphics/transforms/TransformOperations.h:
      (TransformOperations):
      
      LayoutTests:
      
      Added test transform animations in css3/filters/custom/custom-filter-transform-animation.html.
      
      * animations/resources/animation-test-helpers.js:
      (customFilterParameterMatch): Extracted the parameter matching from filterParametersMatch and added function parameters matching.
      This should work for all functions that have number parameters, ie. arrays, mat4 functions.
      
      (filterParametersMatch):
      * css3/filters/custom/custom-filter-transforms-animation-expected.txt: Added.
      * css3/filters/custom/custom-filter-transforms-animation.html: Added.
      * css3/filters/resources/custom-filter-parser.js: Fixed function parsing.
      (TokenStream.prototype.skip):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02f8d69f
  32. 27 Aug, 2012 1 commit
    • jchaffraix@webkit.org's avatar
      Even more unreviewed rebaselining after r126683. · f0723ca0
      jchaffraix@webkit.org authored
      * platform/chromium/TestExpectations:
      Rebaselined 30 tests (see the new common baselines below).
      
      * animations/cross-fade-border-image-source-expected.txt: Renamed from LayoutTests/platform/efl/animations/cross-fade-border-image-source-expected.txt.
      * css1/box_properties/border_bottom-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_bottom-expected.txt.
      * css1/box_properties/border_bottom_inline-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_bottom_inline-expected.txt.
      * css1/box_properties/border_left-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_left-expected.txt.
      * css1/box_properties/border_left_inline-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_left_inline-expected.txt.
      * css1/box_properties/border_right-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_right-expected.txt.
      * css1/box_properties/border_right_inline-expected.txt: Renamed from LayoutTests/platform/efl/css1/box_properties/border_right_inline-expected.txt.
      * css1/units/length_units-expected.txt: Renamed from LayoutTests/platform/efl/css1/units/length_units-expected.txt.
      * css2.1/20110323/absolute-replaced-height-036-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/absolute-replaced-height-036-expected.txt.
      * css2.1/20110323/block-non-replaced-height-007-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-007-expected.txt.
      * css2.1/20110323/block-non-replaced-height-008-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-008-expected.txt.
      * css2.1/20110323/block-non-replaced-height-009-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-009-expected.txt.
      * css2.1/20110323/block-non-replaced-height-010-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-010-expected.txt.
      * css2.1/20110323/block-non-replaced-width-001-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-width-001-expected.txt.
      * css2.1/20110323/block-non-replaced-width-002-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-width-002-expected.txt.
      * css2.1/20110323/block-non-replaced-width-003-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-width-003-expected.txt.
      * css2.1/20110323/block-non-replaced-width-004-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-width-004-expected.txt.
      * css2.1/20110323/block-non-replaced-width-008-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-width-008-expected.txt.
      * css2.1/20110323/margin-applies-to-008-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/margin-applies-to-008-expected.txt.
      * css2.1/20110323/width-non-replaced-inline-001-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/width-non-replaced-inline-001-expected.txt.
      * css2.1/t040302-c61-phys-len-00-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t040302-c61-phys-len-00-b-expected.txt.
      * css2.1/t0804-c5507-padn-r-02-f-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0804-c5507-padn-r-02-f-expected.txt.
      * css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt.
      * css2.1/t0804-c5509-padn-l-02-f-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0804-c5509-padn-l-02-f-expected.txt.
      * css2.1/t0805-c5519-brdr-r-02-e-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5519-brdr-r-02-e-expected.txt.
      * css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt.
      * css2.1/t0805-c5520-brdr-b-00-a-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5520-brdr-b-00-a-expected.txt.
      * css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt.
      * css2.1/t0805-c5521-brdr-l-02-e-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5521-brdr-l-02-e-expected.txt.
      Common baselines for the tests.
      
      * platform/gtk/animations/cross-fade-border-image-source-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_bottom-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_bottom_inline-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_left-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_left_inline-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_right-expected.txt: Removed.
      * platform/gtk/css1/box_properties/border_right_inline-expected.txt: Removed.
      * platform/gtk/css1/units/length_units-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/absolute-replaced-height-036-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-height-007-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-height-008-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-height-009-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-height-010-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-width-001-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-width-002-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-width-003-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-width-004-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/block-non-replaced-width-008-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/margin-applies-to-008-expected.txt: Removed.
      * platform/gtk/css2.1/20110323/width-non-replaced-inline-001-expected.txt: Removed.
      * platform/gtk/css2.1/t040302-c61-phys-len-00-b-expected.txt: Removed.
      * platform/gtk/css2.1/t0804-c5507-padn-r-02-f-expected.txt: Removed.
      * platform/gtk/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt: Removed.
      * platform/gtk/css2.1/t0804-c5509-padn-l-02-f-expected.txt: Removed.
      * platform/gtk/css2.1/t0805-c5519-brdr-r-02-e-expected.txt: Removed.
      * platform/gtk/css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt: Removed.
      * platform/gtk/css2.1/t0805-c5520-brdr-b-00-a-expected.txt: Removed.
      * platform/gtk/css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt: Removed.
      * platform/gtk/css2.1/t0805-c5521-brdr-l-02-e-expected.txt: Removed.
      * platform/mac-lion/animations/cross-fade-border-image-source-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_bottom-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_bottom_inline-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_left-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_left_inline-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_right-expected.txt: Removed.
      * platform/mac-lion/css1/box_properties/border_right_inline-expected.txt: Removed.
      * platform/mac-lion/css1/units/length_units-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/absolute-replaced-height-036-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-height-007-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-height-008-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-height-009-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-height-010-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-width-001-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-width-002-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-width-003-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-width-004-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/block-non-replaced-width-008-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/margin-applies-to-008-expected.txt: Removed.
      * platform/mac-lion/css2.1/20110323/width-non-replaced-inline-001-expected.txt: Removed.
      * platform/mac-lion/css2.1/t040302-c61-phys-len-00-b-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0804-c5507-padn-r-02-f-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0804-c5509-padn-l-02-f-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0805-c5519-brdr-r-02-e-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0805-c5520-brdr-b-00-a-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt: Removed.
      * platform/mac-lion/css2.1/t0805-c5521-brdr-l-02-e-expected.txt: Removed.
      Removed those baselines as they are properly covered by the fallbacks.
      
      * platform/chromium-linux-x86/fast/css/line-height-determined-by-primary-font-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/css/line-height-determined-by-primary-font-expected.txt.
      * platform/chromium-linux/fast/css/line-height-determined-by-primary-font-expected.txt:
      * platform/chromium-mac-snowleopard/fast/css/line-height-determined-by-primary-font-expected.txt: Added.
      * platform/chromium-mac/fast/css/line-height-determined-by-primary-font-expected.txt: Added.
      * platform/chromium-win-xp/fast/css/line-height-determined-by-primary-font-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/css/line-height-determined-by-primary-font-expected.txt.
      * platform/chromium-win/animations/cross-fade-border-image-source-expected.txt:
      * platform/chromium-win/css1/box_properties/border_bottom-expected.txt:
      * platform/chromium-win/css1/box_properties/border_bottom_inline-expected.txt:
      * platform/chromium-win/css1/box_properties/border_left-expected.txt:
      * platform/chromium-win/css1/box_properties/border_left_inline-expected.txt:
      * platform/chromium-win/css1/box_properties/border_right-expected.txt:
      * platform/chromium-win/css1/box_properties/border_right_inline-expected.txt:
      * platform/chromium-win/css1/units/length_units-expected.txt:
      * platform/chromium-win/css2.1/20110323/absolute-replaced-height-036-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-height-007-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-height-008-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-height-009-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-height-010-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-width-001-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-width-002-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-width-003-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-width-004-expected.txt:
      * platform/chromium-win/css2.1/20110323/block-non-replaced-width-008-expected.txt:
      * platform/chromium-win/css2.1/20110323/margin-applies-to-008-expected.txt:
      * platform/chromium-win/css2.1/20110323/width-non-replaced-inline-001-expected.txt:
      * platform/chromium-win/css2.1/t040302-c61-phys-len-00-b-expected.txt:
      * platform/chromium-win/css2.1/t0804-c5507-padn-r-02-f-expected.txt:
      * platform/chromium-win/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt:
      * platform/chromium-win/css2.1/t0804-c5509-padn-l-02-f-expected.txt:
      * platform/chromium-win/css2.1/t0805-c5519-brdr-r-02-e-expected.txt:
      * platform/chromium-win/css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt:
      * platform/chromium-win/css2.1/t0805-c5520-brdr-b-00-a-expected.txt:
      * platform/chromium-win/css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt:
      * platform/chromium-win/css2.1/t0805-c5521-brdr-l-02-e-expected.txt:
      * platform/chromium-win/fast/css/line-height-determined-by-primary-font-expected.txt:
      Updated Chromium baselines as after r126683 the top border is always dumped.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0723ca0
  33. 23 Jul, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Source/WebCore: When using TextureMapper, WebKit does not retain final value... · 9ed83bed
      commit-queue@webkit.org authored
      Source/WebCore: When using TextureMapper, WebKit does not retain final value of opacity in animations, unless it is specified on the last key frame.
      https://bugs.webkit.org/show_bug.cgi?id=91322
      
      Patch by Hanyee Kim <choco@company100.net> on 2012-07-23
      Reviewed by Noam Rosenthal.
      
      When -webkit-fill-mode is forwards, GraphicsLayerAnimation::apply does not apply
      the property values defined in the last executing keyframe after the final iteration of animation.
      
      This patch does not return right after the end of animation, but it keeps applying
      the property values defined in the last executing keyframe.
      Add normalizedAnimationValueForFillsForwards function that returns a normalized value of the
      last executing keyframe.
      
      Link to CSS Animations spec: http://www.w3.org/TR/css3-animations/#animation-fill-mode-property
      
      Test: animations/fill-mode-forwards2.html
      
      * platform/graphics/GraphicsLayerAnimation.cpp:
      (WebCore::normalizedAnimationValueForFillsForwards):
      (WebCore):
      (WebCore::GraphicsLayerAnimation::apply):
      
      LayoutTests: WebKit does not retain final value of opacity in animations, unless it is specified on the last key frame
      https://bugs.webkit.org/show_bug.cgi?id=91322
      
      Patch by Hanyee Kim <choco@company100.net> on 2012-07-23
      Reviewed by Noam Rosenthal.
      
      Added a test to check if the opacity has the right value after animation.
      
      * animations/fill-mode-forwards2-expected.txt: Added.
      * animations/fill-mode-forwards2.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ed83bed
  34. 11 Jul, 2012 1 commit
  35. 10 Jul, 2012 1 commit
  36. 18 Jun, 2012 1 commit
    • igor.o@sisa.samsung.com's avatar
      Unreviewed, rolling out r120119. · 63c6af39
      igor.o@sisa.samsung.com authored
      http://trac.webkit.org/changeset/120119
      
      Multiple regressions on ClusterFuzz
      
      * page/animation/AnimationBase.cpp:
      (WebCore::AnimationBase::updateStateMachine):
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::updateAnimations):
      (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
      (WebCore::AnimationControllerPrivate::pauseTransitionAtTime):
      (WebCore::AnimationController::cancelAnimations):
      (WebCore::AnimationController::updateAnimations):
      * page/animation/ImplicitAnimation.cpp:
      (WebCore::ImplicitAnimation::pauseAnimation):
      (WebCore::ImplicitAnimation::sendTransitionEvent):
      * page/animation/KeyframeAnimation.cpp:
      (WebCore::KeyframeAnimation::KeyframeAnimation):
      (WebCore::KeyframeAnimation::pauseAnimation):
      (WebCore::KeyframeAnimation::endAnimation):
      (WebCore::KeyframeAnimation::sendAnimationEvent):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::updateFirstLetterStyle):
      (WebCore::RenderBlock::createFirstLetterRenderer):
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::clippedOverflowRectForRepaint):
      * rendering/RenderObject.cpp:
      * rendering/RenderObject.h:
      (RenderObject):
      
      LayoutTests:
      
      * animations/first-letter-animation-expected.txt: Removed.
      * animations/first-letter-animation.html: Removed.
      * animations/first-letter-play-state-expected.txt: Removed.
      * animations/first-letter-play-state.html: Removed.
      * platform/chromium/TestExpectations:
      * platform/efl/TestExpectations:
      * transitions/first-letter-color-transition-expected.txt: Removed.
      * transitions/first-letter-color-transition.html: Removed.
      * transitions/first-letter-transition-expected.txt: Removed.
       * transitions/first-letter-transition.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63c6af39
  37. 12 Jun, 2012 1 commit
    • igor.o@sisa.samsung.com's avatar
      Apply animations and transitions for first-letter element · 75de2bbc
      igor.o@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=85253
      
      Source/WebCore:
      
      Add animations and transitions support for the first-letter
      pseudo element.
      Instead of calling RenderOject::node() in the animations code,
      now we need to call RenderObject::styledGeneratingNode() because
      pseudo elements does not have a Node associated with the
      RenderObject.
      
      Initial patch by Simon Fraser
      
      Reviewed by Simon Fraser.
      
      Tests: animations/first-letter-animation.html
             animations/first-letter-play-state.html
             transitions/first-letter-color-transition.html
             transitions/first-letter-transition.html
      
      * page/animation/AnimationBase.cpp:
      (WebCore::AnimationBase::updateStateMachine):
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::updateAnimations):
      (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
      (WebCore::AnimationControllerPrivate::pauseTransitionAtTime):
      (WebCore::AnimationController::cancelAnimations):
      (WebCore::AnimationController::updateAnimations):
      * page/animation/ImplicitAnimation.cpp:
      (WebCore::ImplicitAnimation::pauseAnimation):
      (WebCore::ImplicitAnimation::sendTransitionEvent):
      * page/animation/KeyframeAnimation.cpp:
      (WebCore::KeyframeAnimation::KeyframeAnimation):
      (WebCore::KeyframeAnimation::pauseAnimation):
      (WebCore::KeyframeAnimation::endAnimation):
      (WebCore::KeyframeAnimation::sendAnimationEvent):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::updateFirstLetterStyle):
      (WebCore::RenderBlock::createFirstLetterRenderer):
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::clippedOverflowRectForRepaint):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::setAnimatableStyle):
      (WebCore::RenderObject::styledGeneratingNode):
      (WebCore):
      * rendering/RenderObject.h:
      (RenderObject):
      
      LayoutTests:
      
      Reviewed by Simon Fraser.
      
      * animations/first-letter-animation-expected.txt: Added.
      * animations/first-letter-animation.html: Added.
      * animations/first-letter-play-state-expected.txt: Added.
      * animations/first-letter-play-state.html: Added.
      * transitions/first-letter-color-transition-expected.txt: Added.
      * transitions/first-letter-color-transition.html: Added.
      * transitions/first-letter-transition-expected.txt: Added.
      * transitions/first-letter-transition.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75de2bbc
  38. 11 Jun, 2012 1 commit
    • rniwa@webkit.org's avatar
      Use testRunner instead of layoutTestController in animations tests · ad35b686
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88757
      
      Reviewed by Tony Chang.
      
      * animations/3d/change-transform-in-end-event.html:
      * animations/3d/replace-filling-transform.html:
      * animations/3d/state-at-end-event-transform.html:
      * animations/3d/transform-origin-vs-functions.html:
      * animations/animation-add-events-in-handler.html:
      * animations/animation-border-overflow.html:
      * animations/animation-controller-drt-api.html:
      * animations/animation-direction-reverse-fill-mode-hardware.html:
      * animations/animation-direction-reverse-fill-mode.html:
      * animations/animation-drt-api-multiple-keyframes.html:
      * animations/animation-drt-api.html:
      * animations/animation-end-event-destroy-renderer.html:
      * animations/animation-end-event-short-iterations.html:
      * animations/animation-hit-test-transform.html:
      * animations/animation-hit-test.html:
      * animations/animation-iteration-event-destroy-renderer.html:
      * animations/animation-matrix-negative-scale-unmatrix.html:
      * animations/animation-on-inline-crash.html:
      * animations/animation-shorthand-overriding.html:
      * animations/animation-shorthand-removed.html:
      * animations/animation-shorthand.html:
      * animations/animation-start-event-destroy-renderer.html:
      * animations/animation-welcome-safari.html:
      * animations/body-removal-crash.html:
      * animations/change-keyframes-name.html:
      * animations/change-transform-style-during-animation.html:
      * animations/combo-transform-translate+scale.html:
      * animations/empty-keyframes.html:
      * animations/fill-mode-forwards.html:
      * animations/fill-mode-iteration-count-non-integer.html:
      * animations/fill-mode-missing-from-to-keyframes.html:
      * animations/fill-mode-multiple-keyframes.html:
      * animations/fill-mode-removed.html:
      * animations/fill-mode-reverse.html:
      * animations/fill-mode-transform.html:
      * animations/fill-mode.html:
      * animations/fill-unset-properties.html:
      * animations/font-size-using-ems.html-disabled:
      * animations/import-crash.html:
      * animations/keyframe-timing-functions-transform.html:
      * animations/keyframe-timing-functions2.html:
      * animations/keyframes-iteration-count-non-integer.html:
      * animations/longhand-timing-function.html:
      * animations/missing-from-to-transforms.html:
      * animations/missing-from-to.html:
      * animations/pause-crash.html:
      * animations/resources/animation-test-helpers.js:
      (checkExpectedValue):
      (endTest):
      * animations/state-at-end-event.html:
      * animations/suspend-resume-animation-events.html:
      * animations/suspend-transform-animation.html:
      * animations/transition-and-animation-3.html:
      * animations/unanimated-style.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad35b686