Commit 55c2cda1 authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Use pass by reference in GridItemsSorter

Use pass by reference here for efficiency.

Review URL: https://codereview.chromium.org/397723007

git-svn-id: svn://svn.chromium.org/blink/trunk@178495 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 507de36d
...@@ -1320,7 +1320,7 @@ static GridSpan dirtiedGridAreas(const Vector<LayoutUnit>& coordinates, LayoutUn ...@@ -1320,7 +1320,7 @@ static GridSpan dirtiedGridAreas(const Vector<LayoutUnit>& coordinates, LayoutUn
class GridItemsSorter { class GridItemsSorter {
public: public:
bool operator()(const std::pair<RenderBox*, size_t> firstChild, const std::pair<RenderBox*, size_t> secondChild) const bool operator()(const std::pair<RenderBox*, size_t>& firstChild, const std::pair<RenderBox*, size_t>& secondChild) const
{ {
if (firstChild.first->style()->order() != secondChild.first->style()->order()) if (firstChild.first->style()->order() != secondChild.first->style()->order())
return firstChild.first->style()->order() < secondChild.first->style()->order(); return firstChild.first->style()->order() < secondChild.first->style()->order();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment