Changeset 207343 in webkit


Ignore:
Timestamp:
Oct 14, 2016 9:23:18 AM (8 years ago)
Author:
Manuel Rego Casasnovas
Message:

[css-grid] Changing the argument on fit-content() doesn't cause the grid to be relayout
https://bugs.webkit.org/show_bug.cgi?id=163434

Reviewed by Sergio Villar Senin.

Source/WebCore:

When fit-content() was implemented a new attribute
m_fitContentTrackBreadth was added to GridTrackSize.
However we forgot to include it in the == operator implementation,
so we were missing the changes on that value.

Now if you change the argument of a fit-content() track,
the track size is properly recomputed.

Test: fast/css-grid-layout/grid-change-fit-content-argument.html

  • rendering/style/GridTrackSize.h:

(WebCore::GridTrackSize::operator==): Check m_fitContentTrackBreadth.

LayoutTests:

  • fast/css-grid-layout/grid-change-fit-content-argument-expected.txt: Added.
  • fast/css-grid-layout/grid-change-fit-content-argument.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r207334 r207343  
     12016-10-14  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [css-grid] Changing the argument on fit-content() doesn't cause the grid to be relayout
     4        https://bugs.webkit.org/show_bug.cgi?id=163434
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        * fast/css-grid-layout/grid-change-fit-content-argument-expected.txt: Added.
     9        * fast/css-grid-layout/grid-change-fit-content-argument.html: Added.
     10
    1112016-10-14  Joseph Pecoraro  <pecoraro@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r207342 r207343  
     12016-10-14  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [css-grid] Changing the argument on fit-content() doesn't cause the grid to be relayout
     4        https://bugs.webkit.org/show_bug.cgi?id=163434
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        When fit-content() was implemented a new attribute
     9        m_fitContentTrackBreadth was added to GridTrackSize.
     10        However we forgot to include it in the == operator implementation,
     11        so we were missing the changes on that value.
     12
     13        Now if you change the argument of a fit-content() track,
     14        the track size is properly recomputed.
     15
     16        Test: fast/css-grid-layout/grid-change-fit-content-argument.html
     17
     18        * rendering/style/GridTrackSize.h:
     19        (WebCore::GridTrackSize::operator==): Check m_fitContentTrackBreadth.
     20
    1212016-10-14  Commit Queue  <commit-queue@webkit.org>
    222
  • trunk/Source/WebCore/rendering/style/GridTrackSize.h

    r207288 r207343  
    9494    bool operator==(const GridTrackSize& other) const
    9595    {
    96         return m_type == other.m_type && m_minTrackBreadth == other.m_minTrackBreadth && m_maxTrackBreadth == other.m_maxTrackBreadth;
     96        return m_type == other.m_type && m_minTrackBreadth == other.m_minTrackBreadth && m_maxTrackBreadth == other.m_maxTrackBreadth
     97            && m_fitContentTrackBreadth == other.m_fitContentTrackBreadth;
    9798    }
    9899
Note: See TracChangeset for help on using the changeset viewer.