Changeset 156954 in webkit for trunk/Source/WebCore/rendering/RenderBox.cpp
- Timestamp:
- Oct 5, 2013, 8:55:28 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBox.cpp
r156952 r156954 1095 1095 // --------------------- painting stuff ------------------------------- 1096 1096 1097 void RenderBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1098 { 1099 LayoutPoint adjustedPaintOffset = paintOffset + location(); 1100 // default implementation. Just pass paint through to the children 1101 PaintInfo childInfo(paintInfo); 1102 childInfo.updateSubtreePaintRootForChildren(this); 1103 for (RenderObject* child = firstChild(); child; child = child->nextSibling()) 1104 child->paint(childInfo, adjustedPaintOffset); 1105 } 1106 1097 1107 void RenderBox::paintRootBoxFillLayers(const PaintInfo& paintInfo) 1098 1108 { … … 1145 1155 void RenderBox::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1146 1156 { 1147 if (!paintInfo.shouldPaintWithinRoot( *this))1157 if (!paintInfo.shouldPaintWithinRoot(this)) 1148 1158 return; 1149 1159 … … 1366 1376 void RenderBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1367 1377 { 1368 if (!paintInfo.shouldPaintWithinRoot( *this) || style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask || paintInfo.context->paintingDisabled())1378 if (!paintInfo.shouldPaintWithinRoot(this) || style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask || paintInfo.context->paintingDisabled()) 1369 1379 return; 1370 1380
Note:
See TracChangeset
for help on using the changeset viewer.