Changeset 196983 in webkit for trunk/Source/WebCore/ChangeLog


Ignore:
Timestamp:
Feb 23, 2016, 10:17:17 AM (10 years ago)
Author:
Manuel Rego Casasnovas
Message:

[css-grid] Avoid duplicated calls to resolution code
https://bugs.webkit.org/show_bug.cgi?id=154336

Reviewed by Sergio Villar Senin.

We were calling GridResolvedPosition::resolveGridPositionsFromStyle()
several times per item.

We can store the GridCoordinates in
RenderGrid::populateExplicitGridAndOrderIterator()
and reuse them in the placement code.
Once RenderGrid::placeItemsOnGrid() is over,
all the items will have a definite position in both axis.

No new tests, no change of behavior.

  • rendering/RenderGrid.cpp:

(WebCore::RenderGrid::insertItemIntoGrid):
(WebCore::RenderGrid::placeItemsOnGrid):
(WebCore::RenderGrid::populateExplicitGridAndOrderIterator):
(WebCore::RenderGrid::placeSpecifiedMajorAxisItemsOnGrid):
(WebCore::RenderGrid::placeAutoMajorAxisItemOnGrid):
(WebCore::RenderGrid::cachedGridCoordinate):
(WebCore::RenderGrid::cachedGridSpan):

  • rendering/RenderGrid.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r196978 r196983  
     12016-02-23  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [css-grid] Avoid duplicated calls to resolution code
     4        https://bugs.webkit.org/show_bug.cgi?id=154336
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        We were calling GridResolvedPosition::resolveGridPositionsFromStyle()
     9        several times per item.
     10
     11        We can store the GridCoordinates in
     12        RenderGrid::populateExplicitGridAndOrderIterator()
     13        and reuse them in the placement code.
     14        Once RenderGrid::placeItemsOnGrid() is over,
     15        all the items will have a definite position in both axis.
     16
     17        No new tests, no change of behavior.
     18
     19        * rendering/RenderGrid.cpp:
     20        (WebCore::RenderGrid::insertItemIntoGrid):
     21        (WebCore::RenderGrid::placeItemsOnGrid):
     22        (WebCore::RenderGrid::populateExplicitGridAndOrderIterator):
     23        (WebCore::RenderGrid::placeSpecifiedMajorAxisItemsOnGrid):
     24        (WebCore::RenderGrid::placeAutoMajorAxisItemOnGrid):
     25        (WebCore::RenderGrid::cachedGridCoordinate):
     26        (WebCore::RenderGrid::cachedGridSpan):
     27        * rendering/RenderGrid.h:
     28
    1292016-02-23  Manuel Rego Casasnovas  <rego@igalia.com>
    230
Note: See TracChangeset for help on using the changeset viewer.