1. 03 Oct, 2012 1 commit
    • commit-queue@webkit.org's avatar
      getComputedStyle perspective-origin is based on the wrong bounding box · 2800ee6f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98027
      
      Patch by Jussi Kukkonen <jussi.kukkonen@intel.com> on 2012-10-03
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      perspective-origin for ComputedStyleDeclaration is currently calculated using the
      wrong bounding box (sizingBox() which ends up as the contentbox).
      
      Start using borderbox for ComputedStyleDeclaration perspective-origin, similar to
      what transform-origin already does.
      
      Test: fast/css/getComputedStyle/getComputedStyle-origin-percentage.html
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      
      LayoutTests:
      
      Add test for perspective-origin calculation into existing transform-origin test.
      
      * transforms/2d/computed-style-origin-expected.txt:
      * transforms/2d/computed-style-origin.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2800ee6f
  2. 23 Aug, 2012 1 commit
    • commit-queue@webkit.org's avatar
      getComputedStyle returns wrong value for CSS3 2D transformations · eb732c17
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=94211
      
      Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-08-23
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      When computed style is calculated for CSS3 2D transformation, content
      box size is used. According to W3C specification, object's bounding
      box should be used. This patch fixes transformation matrix calculation.
      
      Layout tests getComputedStyle-transform.html and computed-style-origin.html
      were modified to test changes.
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::computedTransform):
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      (WebCore::pixelSnappedSizingBox): Removed unused method
      
      LayoutTests:
      
      This change fixes getComputedStyle-transform.html test.
      Before this change, the test doesn't do anything.
      When new transformation value is set, it immediately read
      back as an old value, thus computed style is equal to
      an old style. Moreover, expected result is never checked.
      Added new test case to computed-style-origin.html layout test.
      
      * fast/css/getComputedStyle/getComputedStyle-transform-expected.txt:
      * fast/css/getComputedStyle/getComputedStyle-transform.html:
      * transforms/2d/computed-style-origin-expected.txt:
      * transforms/2d/computed-style-origin.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb732c17
  3. 03 Nov, 2011 2 commits
  4. 15 Dec, 2008 1 commit
    • pol@apple.com's avatar
      2008-12-15 Pierre-Olivier Latour <pol@apple.com> · 7400cc15
      pol@apple.com authored
              Reviewed by Sam Weinig.
      
              Add new layout tests for transforms, animations & transitions.
              Also move a couple transform layout tests to the proper subdirectory.
      
              https://bugs.webkit.org/show_bug.cgi?id=22836
      
              * animations/combo-transform-translate+scale-expected.txt: Added.
              * animations/combo-transform-translate+scale.html: Added.
              * transforms/2d/computed-style-origin-expected.txt: Copied from LayoutTests/transforms/computed-style-origin-expected.txt.
              * transforms/2d/computed-style-origin.html: Copied from LayoutTests/transforms/computed-style-origin.html.
              * transforms/2d/transform-value-types-expected.txt: Copied from LayoutTests/transforms/transform-value-types-expected.txt.
              * transforms/2d/transform-value-types.html: Copied from LayoutTests/transforms/transform-value-types.html.
              * transforms/computed-style-origin-expected.txt: Removed.
              * transforms/computed-style-origin.html: Removed.
              * transforms/transform-value-types-expected.txt: Removed.
              * transforms/transform-value-types.html: Removed.
              * transitions/interrupt-transform-transition-expected.txt: Added.
              * transitions/interrupt-transform-transition.html: Added.
              * transitions/start-transform-transition-expected.txt: Added.
              * transitions/start-transform-transition.html: Added.
              * transitions/transition-timing-function-software-expected.txt: Added.
              * transitions/transition-timing-function-software.html: Added.
              * transitions/zero-duration-in-list-expected.txt: Added.
              * transitions/zero-duration-in-list.html: Added.
              * transitions/zero-duration-without-units-expected.txt: Added.
              * transitions/zero-duration-without-units.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7400cc15
  5. 20 Nov, 2008 1 commit
    • simon.fraser@apple.com's avatar
      2008-11-20 Simon Fraser <simon.fraser@apple.com> · 1a2c6781
      simon.fraser@apple.com authored
              Reviewed by Darin Adler
      
              https://bugs.webkit.org/show_bug.cgi?id=20368
      
              Implement getComputedStyle for animation properties. Remove individual
              computed values for transform-origin-x, transform-origin-y, and just
              return transform-origin instead. Return "none" for default animation-name,
              and fix the initial value.
      
              Tests: animations/computed-style.html
                     transforms/computed-style-origin.html
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::getDelayValue):
              (WebCore::getDurationValue):
              (WebCore::getTimingFunctionValue):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * rendering/style/RenderStyle.h:
              (WebCore::InheritedFlags::initialAnimationName):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a2c6781