⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 117748 in webkit


Ignore:
Timestamp:
May 21, 2012, 1:49:27 AM (14 years ago)
Author:
mikelawther@chromium.org
Message:

Crash in -webkit-calc
https://bugs.webkit.org/show_bug.cgi?id=86954

Reviewed by Abhishek Arya.

Source/WebCore:

Ensure that both ends of a blend are checked for being Calculated. The current
check did not cover the case where the 'from' end was Calculated and nonzero,
and the 'to' end was zero and not Calculated.

Blending doesn't work with calculated expressions and is being tracked in
bug http://webkit.org/b/86160

Tests: css3/calc/transition-crash3.html

css3/calc/transition-crash4.html

  • platform/Length.h:

(WebCore::Length::blend):

LayoutTests:

  • css3/calc/transition-crash3-expected.txt: Added.
  • css3/calc/transition-crash3.html: Added.
  • css3/calc/transition-crash4-expected.txt: Added.
  • css3/calc/transition-crash4.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117747 r117748  
     12012-05-21  Mike Lawther  <mikelawther@chromium.org>
     2
     3        Crash in -webkit-calc
     4        https://bugs.webkit.org/show_bug.cgi?id=86954
     5
     6        Reviewed by Abhishek Arya.
     7
     8        * css3/calc/transition-crash3-expected.txt: Added.
     9        * css3/calc/transition-crash3.html: Added.
     10        * css3/calc/transition-crash4-expected.txt: Added.
     11        * css3/calc/transition-crash4.html: Added.
     12
    1132012-05-21  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r117746 r117748  
     12012-05-21  Mike Lawther  <mikelawther@chromium.org>
     2
     3        Crash in -webkit-calc
     4        https://bugs.webkit.org/show_bug.cgi?id=86954
     5
     6        Reviewed by Abhishek Arya.
     7
     8        Ensure that both ends of a blend are checked for being Calculated. The current
     9        check did not cover the case where the 'from' end was Calculated and nonzero,
     10        and the 'to' end was zero and not Calculated.
     11
     12        Blending doesn't work with calculated expressions and is being tracked in
     13        bug http://webkit.org/b/86160
     14
     15        Tests: css3/calc/transition-crash3.html
     16               css3/calc/transition-crash4.html
     17
     18        * platform/Length.h:
     19        (WebCore::Length::blend):
     20
    1212012-05-21  Pavel Feldman  <pfeldman@chromium.org>
    222
  • trunk/Source/WebCore/platform/Length.h

    r116914 r117748  
    229229
    230230        // FIXME http://webkit.org/b/86160 - Blending doesn't work with calculated expressions
    231         if (type() == Calculated)
     231        if (from.type() == Calculated || type() == Calculated)
    232232            return *this;
    233233       
Note: See TracChangeset for help on using the changeset viewer.