Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 1528323002: Include <algorithm> if you use functions from <algorithm>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split ui parts into a separate review Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 15 matching lines...) Expand all
26 #include "config.h" 26 #include "config.h"
27 #include "core/layout/LayoutGrid.h" 27 #include "core/layout/LayoutGrid.h"
28 28
29 #include "core/layout/LayoutView.h" 29 #include "core/layout/LayoutView.h"
30 #include "core/layout/TextAutosizer.h" 30 #include "core/layout/TextAutosizer.h"
31 #include "core/paint/GridPainter.h" 31 #include "core/paint/GridPainter.h"
32 #include "core/paint/PaintLayer.h" 32 #include "core/paint/PaintLayer.h"
33 #include "core/style/ComputedStyle.h" 33 #include "core/style/ComputedStyle.h"
34 #include "core/style/GridCoordinate.h" 34 #include "core/style/GridCoordinate.h"
35 #include "platform/LengthFunctions.h" 35 #include "platform/LengthFunctions.h"
36 #include <algorithm>
36 37
37 namespace blink { 38 namespace blink {
38 39
39 static const int infinity = -1; 40 static const int infinity = -1;
40 41
41 class GridItemWithSpan; 42 class GridItemWithSpan;
42 43
43 class GridTrack { 44 class GridTrack {
44 public: 45 public:
45 GridTrack() 46 GridTrack()
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 2058
2058 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child)); 2059 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child));
2059 } 2060 }
2060 2061
2061 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const 2062 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const
2062 { 2063 {
2063 GridPainter(*this).paintChildren(paintInfo, paintOffset); 2064 GridPainter(*this).paintChildren(paintInfo, paintOffset);
2064 } 2065 }
2065 2066
2066 } // namespace blink 2067 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698