Changeset 86826 in webkit


Ignore:
Timestamp:
May 19, 2011 2:19:07 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-19 Mihnea Ovidenie <mihnea@adobe.com>

Reviewed by Simon Fraser.

Gradients not horizontal using 270deg with odd div width
https://bugs.webkit.org/show_bug.cgi?id=60157

When the angle of the linear gradient is 270, the endpoint should
be computed in the same way as for 0, 90, 180 cases since tan(270)
is undefined.

  • fast/gradients/css3-linear-right-angle-gradients-expected.txt: Added.
  • fast/gradients/css3-linear-right-angle-gradients.html: Added.
  • platform/mac/fast/gradients/css3-linear-right-angle-gradients-expected.png: Added.
Location:
trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86824 r86826  
     12011-05-19  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Gradients not horizontal using 270deg with odd div width
     6        https://bugs.webkit.org/show_bug.cgi?id=60157
     7       
     8        When the angle of the linear gradient is 270, the endpoint should
     9        be computed in the same way as for 0, 90, 180 cases since tan(270)
     10        is undefined.
     11
     12        * fast/gradients/css3-linear-right-angle-gradients-expected.txt: Added.
     13        * fast/gradients/css3-linear-right-angle-gradients.html: Added.
     14        * platform/mac/fast/gradients/css3-linear-right-angle-gradients-expected.png: Added.
     15
    1162011-05-19  Yuzo Fujishima  <yuzo@google.com>
    217
  • trunk/Source/WebCore/css/CSSGradientValue.cpp

    r78449 r86826  
    494494        firstPoint.set(size.width(), 0);
    495495        secondPoint.set(0, 0);
     496        return;
     497    }
     498   
     499    if (angleDeg == 270) {
     500        firstPoint.set(0, 0);
     501        secondPoint.set(0, size.height());
    496502        return;
    497503    }
Note: See TracChangeset for help on using the changeset viewer.