Bug 133213 - [CSS Grid Layout] Use gridRowCount() and gridColumnCount() when possible
Summary: [CSS Grid Layout] Use gridRowCount() and gridColumnCount() when possible
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Manuel Rego Casasnovas
Depends on:
Blocks: 60731
  Show dependency treegraph
Reported: 2014-05-23 05:09 PDT by Manuel Rego Casasnovas
Modified: 2014-05-23 13:31 PDT (History)
6 users (show)

See Also:

Patch (2.75 KB, patch)
2014-05-23 05:19 PDT, Manuel Rego Casasnovas
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rego Casasnovas 2014-05-23 05:09:52 PDT
We're not being consistent in RenderGrid code and sometimes we use m_grid.size() and other gridRowCount() (and the same for columns).

This is a simple patch to use gridRowCount() and gridColumnCount() always when it's possible. Which will make the code more descriptive and easier to understand.

BTW, a similar patch has already landed in Blink: https://codereview.chromium.org/235713003/
Comment 1 Manuel Rego Casasnovas 2014-05-23 05:19:32 PDT
Created attachment 231958 [details]
Comment 2 Sergio Villar Senin 2014-05-23 08:13:01 PDT
Comment on attachment 231958 [details]

Nice cleanup
Comment 3 WebKit Commit Bot 2014-05-23 13:31:51 PDT
Comment on attachment 231958 [details]

Clearing flags on attachment: 231958

Committed r169277: <http://trac.webkit.org/changeset/169277>
Comment 4 WebKit Commit Bot 2014-05-23 13:31:54 PDT
All reviewed patches have been landed.  Closing bug.