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 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 // Skip them here to avoid painting items several times. | 1441 // Skip them here to avoid painting items several times. |
1442 RenderBox* current = (*it).first; | 1442 RenderBox* current = (*it).first; |
1443 if (current == previous) | 1443 if (current == previous) |
1444 continue; | 1444 continue; |
1445 | 1445 |
1446 paintChild(current, paintInfo, paintOffset); | 1446 paintChild(current, paintInfo, paintOffset); |
1447 previous = current; | 1447 previous = current; |
1448 } | 1448 } |
1449 } | 1449 } |
1450 | 1450 |
| 1451 void RenderGrid::paintChild(RenderBox* child, PaintInfo& paintInfo, const Layout
Point& paintOffset) |
| 1452 { |
| 1453 LayoutPoint childPoint = flipForWritingModeForChild(child, paintOffset); |
| 1454 if (!child->hasSelfPaintingLayer() && !child->isFloating()) |
| 1455 child->paint(paintInfo, childPoint); |
| 1456 } |
| 1457 |
1451 const char* RenderGrid::renderName() const | 1458 const char* RenderGrid::renderName() const |
1452 { | 1459 { |
1453 if (isFloating()) | 1460 if (isFloating()) |
1454 return "RenderGrid (floating)"; | 1461 return "RenderGrid (floating)"; |
1455 if (isOutOfFlowPositioned()) | 1462 if (isOutOfFlowPositioned()) |
1456 return "RenderGrid (positioned)"; | 1463 return "RenderGrid (positioned)"; |
1457 if (isAnonymous()) | 1464 if (isAnonymous()) |
1458 return "RenderGrid (generated)"; | 1465 return "RenderGrid (generated)"; |
1459 if (isRelPositioned()) | 1466 if (isRelPositioned()) |
1460 return "RenderGrid (relative positioned)"; | 1467 return "RenderGrid (relative positioned)"; |
1461 return "RenderGrid"; | 1468 return "RenderGrid"; |
1462 } | 1469 } |
1463 | 1470 |
1464 } // namespace blink | 1471 } // namespace blink |
OLD | NEW |