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

Changeset 175363 in webkit


Ignore:
Timestamp:
Oct 29, 2014, 8:27:24 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

ASSERTION NOT REACHED because RenderStyle::setWordSpacing() does not handle a Length value of type 'Calculated'.
https://bugs.webkit.org/show_bug.cgi?id=138054.

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2014-10-29
Reviewed by Zalan Bujtas.

Source/WebCore:

A Length of type 'Calculated' can be generated from blending two lengths of
different types. Setting the wordSpacing of the render style should be handled
correctly when the type of the new value is 'Calculated'.

Tests: css3/calculated-word-spacing.html.

Add a case for setting the render style wordSpacing to a <length> of type 'Calculated'.

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::setWordSpacing):

LayoutTests:

Ensure the render style's wordSpacing can be set correctly when the type of
the new value is 'Calculated'. The 'Calculated' Length value can result from
blending two Length values of different types. And these two Length values
are defined in two consecutive css animation key frames.

  • css3/calculated-word-spacing-expected.txt: Added.
  • css3/calculated-word-spacing.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r175356 r175363  
     12014-10-29  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        ASSERTION NOT REACHED because RenderStyle::setWordSpacing() does not handle a Length value of type 'Calculated'.
     4        https://bugs.webkit.org/show_bug.cgi?id=138054.
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Ensure the render style's wordSpacing can be set correctly when the type of
     9        the new value is 'Calculated'. The 'Calculated' Length value can result from
     10        blending two Length values of different types. And these two Length values
     11        are defined in two consecutive css animation key frames.
     12       
     13        * css3/calculated-word-spacing-expected.txt: Added.
     14        * css3/calculated-word-spacing.html: Added.
     15
    1162014-10-29  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r175361 r175363  
     12014-10-29  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        ASSERTION NOT REACHED because RenderStyle::setWordSpacing() does not handle a Length value of type 'Calculated'.
     4        https://bugs.webkit.org/show_bug.cgi?id=138054.
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        A Length of type 'Calculated' can be generated from blending two lengths of
     9        different types. Setting the wordSpacing of the render style should be handled
     10        correctly when the type of the new value is 'Calculated'.
     11
     12        Tests: css3/calculated-word-spacing.html.
     13
     14        Add a case for setting the render style wordSpacing to a <length> of type 'Calculated'.
     15        * rendering/style/RenderStyle.cpp:
     16        (WebCore::RenderStyle::setWordSpacing):
     17
    1182014-10-29  Hunseop Jeong  <hs85.jeong@samsung.com>
    219
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r174801 r175363  
    13821382        fontWordSpacing = value.value();
    13831383        break;
     1384    case Calculated:
     1385        fontWordSpacing = value.nonNanCalculatedValue(maxValueForCssLength);
     1386        break;
    13841387    default:
    13851388        ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.