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

Side by Side Diff: Source/core/rendering/RenderGrid.cpp

Issue 569683004: Factor painting code from RenderBlock into BlockPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderGrid.h ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderGrid.h ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698