Changeset 156952 in webkit for trunk/Source/WebCore/rendering/RenderBox.cpp
- Timestamp:
- Oct 5, 2013, 4:58:30 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBox.cpp
r156905 r156952 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 children1101 PaintInfo childInfo(paintInfo);1102 childInfo.updateSubtreePaintRootForChildren(this);1103 for (RenderObject* child = firstChild(); child; child = child->nextSibling())1104 child->paint(childInfo, adjustedPaintOffset);1105 }1106 1107 1097 void RenderBox::paintRootBoxFillLayers(const PaintInfo& paintInfo) 1108 1098 { … … 1155 1145 void RenderBox::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1156 1146 { 1157 if (!paintInfo.shouldPaintWithinRoot( this))1147 if (!paintInfo.shouldPaintWithinRoot(*this)) 1158 1148 return; 1159 1149 … … 1376 1366 void RenderBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1377 1367 { 1378 if (!paintInfo.shouldPaintWithinRoot( this) || style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask || paintInfo.context->paintingDisabled())1368 if (!paintInfo.shouldPaintWithinRoot(*this) || style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask || paintInfo.context->paintingDisabled()) 1379 1369 return; 1380 1370
Note:
See TracChangeset
for help on using the changeset viewer.