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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 , m_gridIsDirty(true) | 257 , m_gridIsDirty(true) |
258 , m_orderIterator(this) | 258 , m_orderIterator(this) |
259 { | 259 { |
260 ASSERT(!childrenInline()); | 260 ASSERT(!childrenInline()); |
261 } | 261 } |
262 | 262 |
263 RenderGrid::~RenderGrid() | 263 RenderGrid::~RenderGrid() |
264 { | 264 { |
265 } | 265 } |
266 | 266 |
267 void RenderGrid::addChild(RenderObject* newChild, RenderObject* beforeChild) | 267 void RenderGrid::addChild(LayoutObject* newChild, LayoutObject* beforeChild) |
268 { | 268 { |
269 RenderBlock::addChild(newChild, beforeChild); | 269 RenderBlock::addChild(newChild, beforeChild); |
270 | 270 |
271 if (gridIsDirty()) | 271 if (gridIsDirty()) |
272 return; | 272 return; |
273 | 273 |
274 // The grid needs to be recomputed as it might contain auto-placed items tha
t will change their position. | 274 // The grid needs to be recomputed as it might contain auto-placed items tha
t will change their position. |
275 dirtyGrid(); | 275 dirtyGrid(); |
276 return; | 276 return; |
277 } | 277 } |
278 | 278 |
279 void RenderGrid::removeChild(RenderObject* child) | 279 void RenderGrid::removeChild(LayoutObject* child) |
280 { | 280 { |
281 RenderBlock::removeChild(child); | 281 RenderBlock::removeChild(child); |
282 | 282 |
283 if (gridIsDirty()) | 283 if (gridIsDirty()) |
284 return; | 284 return; |
285 | 285 |
286 // The grid needs to be recomputed as it might contain auto-placed items tha
t will change their position. | 286 // The grid needs to be recomputed as it might contain auto-placed items tha
t will change their position. |
287 dirtyGrid(); | 287 dirtyGrid(); |
288 return; | 288 return; |
289 } | 289 } |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 if (isOutOfFlowPositioned()) | 1730 if (isOutOfFlowPositioned()) |
1731 return "RenderGrid (positioned)"; | 1731 return "RenderGrid (positioned)"; |
1732 if (isAnonymous()) | 1732 if (isAnonymous()) |
1733 return "RenderGrid (generated)"; | 1733 return "RenderGrid (generated)"; |
1734 if (isRelPositioned()) | 1734 if (isRelPositioned()) |
1735 return "RenderGrid (relative positioned)"; | 1735 return "RenderGrid (relative positioned)"; |
1736 return "RenderGrid"; | 1736 return "RenderGrid"; |
1737 } | 1737 } |
1738 | 1738 |
1739 } // namespace blink | 1739 } // namespace blink |
OLD | NEW |