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


Ignore:
Timestamp:
Nov 16, 2012, 5:32:18 AM (13 years ago)
Author:
jchaffraix@webkit.org
Message:

RenderGrid should have a function to resolve grid position
https://bugs.webkit.org/show_bug.cgi?id=102441

Reviewed by Ojan Vafai.

The code was doing this conversion implicitly inside RenderGrid::findChildLogicalPosition.
Also note that we also provided a fallback by returning LayoutPoint() (ie the (0, 0) position
on the grid) if we couldn't handle the value. The explicit conversion is needed in order to
support render areas and add a proper grid model to RenderGrid.

No expected change in behavior.

  • rendering/RenderGrid.h:
  • rendering/RenderGrid.cpp:

(WebCore::RenderGrid::resolveGridPosition):
Added this new function to handle the conversion. We re-use Length but should never see
a lot of the <length> values so I added some ASSERTs to enforce and catch that.

(WebCore::RenderGrid::findChildLogicalPosition):
Simplified the function now that it just use resolveGridPosition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r134934 r134935  
     12012-11-16  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        RenderGrid should have a function to resolve grid position
     4        https://bugs.webkit.org/show_bug.cgi?id=102441
     5
     6        Reviewed by Ojan Vafai.
     7
     8        The code was doing this conversion implicitly inside RenderGrid::findChildLogicalPosition.
     9        Also note that we also provided a fallback by returning LayoutPoint() (ie the (0, 0) position
     10        on the grid) if we couldn't handle the value. The explicit conversion is needed in order to
     11        support render areas and add a proper grid model to RenderGrid.
     12
     13        No expected change in behavior.
     14
     15        * rendering/RenderGrid.h:
     16        * rendering/RenderGrid.cpp:
     17        (WebCore::RenderGrid::resolveGridPosition):
     18        Added this new function to handle the conversion. We re-use Length but should never see
     19        a lot of the <length> values so I added some ASSERTs to enforce and catch that.
     20
     21        (WebCore::RenderGrid::findChildLogicalPosition):
     22        Simplified the function now that it just use resolveGridPosition.
     23
    1242012-11-16  Ulan Degenbaev  <ulan@chromium.org>
    225
Note: See TracChangeset for help on using the changeset viewer.