| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|