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

Changeset 175926 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 7:52:08 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r175363 - 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:
releases/WebKitGTK/webkit-2.6
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.6/LayoutTests/ChangeLog

    r175925 r175926  
     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-24  Said Abou-Hallawa  <sabouhallawa@apple.com>
    217
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog

    r175925 r175926  
     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-24  Said Abou-Hallawa  <sabouhallawa@apple.com>
    219
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/rendering/style/RenderStyle.cpp

    r173659 r175926  
    13801380        fontWordSpacing = value.value();
    13811381        break;
     1382    case Calculated:
     1383        fontWordSpacing = value.nonNanCalculatedValue(maxValueForCssLength);
     1384        break;
    13821385    default:
    13831386        ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.