Changeset 90048 in webkit
- Timestamp:
- Jun 29, 2011 2:33:11 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r90046 r90048 1 2011-06-29 Levi Weintraub <leviw@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Switch paint to new layout types 6 https://bugs.webkit.org/show_bug.cgi?id=63645 7 8 Switch vanilla paint function over to the new layout unit abstraction. 9 10 No new tests, no functionality changes. 11 12 * rendering/RenderBlock.cpp: 13 (WebCore::RenderBlock::paint): 14 * rendering/RenderBlock.h: 15 * rendering/RenderBox.cpp: 16 (WebCore::RenderBox::paint): 17 * rendering/RenderBox.h: 18 * rendering/RenderDetailsMarker.cpp: 19 (WebCore::RenderDetailsMarker::paint): 20 * rendering/RenderDetailsMarker.h: 21 * rendering/RenderEmbeddedObject.cpp: 22 (WebCore::RenderEmbeddedObject::paint): 23 * rendering/RenderEmbeddedObject.h: 24 * rendering/RenderFrameSet.cpp: 25 (WebCore::RenderFrameSet::paint): 26 * rendering/RenderFrameSet.h: 27 * rendering/RenderImage.cpp: 28 (WebCore::RenderImage::paint): 29 * rendering/RenderImage.h: 30 * rendering/RenderInline.cpp: 31 (WebCore::RenderInline::paint): 32 * rendering/RenderInline.h: 33 * rendering/RenderLineBoxList.h: 34 * rendering/RenderListItem.cpp: 35 (WebCore::RenderListItem::paint): 36 * rendering/RenderListItem.h: 37 * rendering/RenderListMarker.cpp: 38 (WebCore::RenderListMarker::paint): 39 * rendering/RenderListMarker.h: 40 * rendering/RenderObject.h: 41 * rendering/RenderReplaced.cpp: 42 (WebCore::RenderReplaced::paint): 43 * rendering/RenderReplaced.h: 44 * rendering/RenderReplica.cpp: 45 (WebCore::RenderReplica::paint): 46 * rendering/RenderReplica.h: 47 * rendering/RenderTable.cpp: 48 (WebCore::RenderTable::paint): 49 * rendering/RenderTable.h: 50 * rendering/RenderTableCell.cpp: 51 (WebCore::RenderTableCell::paint): 52 * rendering/RenderTableCell.h: 53 * rendering/RenderTableRow.cpp: 54 (WebCore::RenderTableRow::paint): 55 * rendering/RenderTableRow.h: 56 * rendering/RenderTableSection.cpp: 57 (WebCore::RenderTableSection::paint): 58 * rendering/RenderTableSection.h: 59 * rendering/RenderTextControlSingleLine.cpp: 60 (WebCore::RenderTextControlSingleLine::paint): 61 * rendering/RenderTextControlSingleLine.h: 62 * rendering/RenderTheme.h: 63 * rendering/RenderView.cpp: 64 (WebCore::RenderView::paint): 65 * rendering/RenderView.h: 66 * rendering/RenderWidget.cpp: 67 (WebCore::RenderWidget::paint): 68 * rendering/RenderWidget.h: 69 * rendering/mathml/RenderMathMLBlock.h: 70 * rendering/mathml/RenderMathMLFraction.h: 71 * rendering/mathml/RenderMathMLRoot.h: 72 * rendering/mathml/RenderMathMLSquareRoot.h: 73 * rendering/svg/RenderSVGContainer.h: 74 * rendering/svg/RenderSVGForeignObject.h: 75 * rendering/svg/RenderSVGHiddenContainer.h: 76 * rendering/svg/RenderSVGImage.h: 77 * rendering/svg/RenderSVGPath.h: 78 * rendering/svg/RenderSVGRoot.cpp: 79 (WebCore::RenderSVGRoot::paint): 80 * rendering/svg/RenderSVGRoot.h: 81 * rendering/svg/RenderSVGText.h: 82 1 83 2011-06-29 Jian Li <jianli@chromium.org> 2 84 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r90030 r90048 2263 2263 } 2264 2264 2265 void RenderBlock::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)2266 { 2267 IntPoint adjustedPaintOffset = paintOffset + location();2265 void RenderBlock::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 2266 { 2267 LayoutPoint adjustedPaintOffset = paintOffset + location(); 2268 2268 2269 2269 PaintPhase phase = paintInfo.phase; … … 2273 2273 // paints the root's background. 2274 2274 if (!isRoot()) { 2275 IntRect overflowBox = visualOverflowRect();2275 LayoutRect overflowBox = visualOverflowRect(); 2276 2276 flipForWritingMode(overflowBox); 2277 2277 overflowBox.inflate(maximalOutlineSize(paintInfo.phase)); -
trunk/Source/WebCore/rendering/RenderBlock.h
r90030 r90048 293 293 void layoutPositionedObjects(bool relayoutChildren); 294 294 295 virtual void paint(PaintInfo&, const IntPoint&);295 virtual void paint(PaintInfo&, const LayoutPoint&); 296 296 virtual void paintObject(PaintInfo&, const LayoutPoint&); 297 297 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r89979 r90048 772 772 // --------------------- painting stuff ------------------------------- 773 773 774 void RenderBox::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)775 { 776 IntPoint adjustedPaintOffset = paintOffset + location();774 void RenderBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 775 { 776 LayoutPoint adjustedPaintOffset = paintOffset + location(); 777 777 // default implementation. Just pass paint through to the children 778 778 PaintInfo childInfo(paintInfo); -
trunk/Source/WebCore/rendering/RenderBox.h
r89983 r90048 240 240 241 241 virtual void layout(); 242 virtual void paint(PaintInfo&, const IntPoint&);242 virtual void paint(PaintInfo&, const LayoutPoint&); 243 243 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction); 244 244 -
trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp
r88250 r90048 121 121 } 122 122 123 void RenderDetailsMarker::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)123 void RenderDetailsMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 124 124 { 125 125 if (paintInfo.phase != PaintPhaseForeground || style()->visibility() != VISIBLE) { … … 128 128 } 129 129 130 IntPoint boxOrigin(paintOffset + location());131 IntRect overflowRect(visualOverflowRect());130 LayoutPoint boxOrigin(paintOffset + location()); 131 LayoutRect overflowRect(visualOverflowRect()); 132 132 overflowRect.moveBy(boxOrigin); 133 133 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); -
trunk/Source/WebCore/rendering/RenderDetailsMarker.h
r88250 r90048 41 41 virtual const char* renderName() const { return "RenderDetailsMarker"; } 42 42 virtual bool isDetailsMarker() const { return true; } 43 virtual void paint(PaintInfo&, const IntPoint&);43 virtual void paint(PaintInfo&, const LayoutPoint&); 44 44 45 45 bool isOpen() const; -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp
r89983 r90048 136 136 } 137 137 138 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)138 void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 139 139 { 140 140 if (pluginCrashedOrWasMissing()) { -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.h
r89983 r90048 58 58 59 59 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); 60 virtual void paint(PaintInfo&, const IntPoint&);60 virtual void paint(PaintInfo&, const LayoutPoint&); 61 61 62 62 #if USE(ACCELERATED_COMPOSITING) -
trunk/Source/WebCore/rendering/RenderFrameSet.cpp
r88319 r90048 119 119 } 120 120 121 void RenderFrameSet::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)121 void RenderFrameSet::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 122 122 { 123 123 if (paintInfo.phase != PaintPhaseForeground) … … 128 128 return; 129 129 130 IntPoint adjustedPaintOffset = paintOffset + location();130 LayoutPoint adjustedPaintOffset = paintOffset + location(); 131 131 132 132 int rows = frameSet()->totalRows(); 133 133 int cols = frameSet()->totalCols(); 134 int borderThickness = frameSet()->border();135 136 int yPos = 0;134 LayoutUnit borderThickness = frameSet()->border(); 135 136 LayoutUnit yPos = 0; 137 137 for (int r = 0; r < rows; r++) { 138 int xPos = 0;138 LayoutUnit xPos = 0; 139 139 for (int c = 0; c < cols; c++) { 140 140 child->paint(paintInfo, adjustedPaintOffset); 141 141 xPos += m_cols.m_sizes[c]; 142 142 if (borderThickness && m_cols.m_allowBorder[c + 1]) { 143 paintColumnBorder(paintInfo, IntRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, height()));143 paintColumnBorder(paintInfo, LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, height())); 144 144 xPos += borderThickness; 145 145 } … … 150 150 yPos += m_rows.m_sizes[r]; 151 151 if (borderThickness && m_rows.m_allowBorder[r + 1]) { 152 paintRowBorder(paintInfo, IntRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), borderThickness));152 paintRowBorder(paintInfo, LayoutRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), borderThickness)); 153 153 yPos += borderThickness; 154 154 } -
trunk/Source/WebCore/rendering/RenderFrameSet.h
r88319 r90048 98 98 virtual void layout(); 99 99 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction); 100 virtual void paint(PaintInfo&, const IntPoint&);100 virtual void paint(PaintInfo&, const LayoutPoint&); 101 101 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; 102 102 -
trunk/Source/WebCore/rendering/RenderImage.cpp
r89983 r90048 313 313 } 314 314 315 void RenderImage::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)315 void RenderImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 316 316 { 317 317 RenderReplaced::paint(paintInfo, paintOffset); -
trunk/Source/WebCore/rendering/RenderImage.h
r89983 r90048 60 60 61 61 virtual void paintIntoRect(GraphicsContext*, const IntRect&); 62 virtual void paint(PaintInfo&, const IntPoint&);62 virtual void paint(PaintInfo&, const LayoutPoint&); 63 63 64 64 bool isLogicalWidthSpecified() const; … … 77 77 virtual bool isRenderImage() const { return true; } 78 78 79 virtual void paintReplaced(PaintInfo&, const LayoutPoint&);79 virtual void paintReplaced(PaintInfo&, const IntPoint&); 80 80 81 81 virtual int minimumReplacedHeight() const; -
trunk/Source/WebCore/rendering/RenderInline.cpp
r89977 r90048 461 461 } 462 462 463 void RenderInline::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)463 void RenderInline::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 464 464 { 465 465 m_lineBoxes.paint(this, paintInfo, paintOffset); -
trunk/Source/WebCore/rendering/RenderInline.h
r89977 r90048 116 116 virtual void layout() { ASSERT_NOT_REACHED(); } // Do nothing for layout() 117 117 118 virtual void paint(PaintInfo&, const IntPoint&);118 virtual void paint(PaintInfo&, const LayoutPoint&); 119 119 120 120 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction); -
trunk/Source/WebCore/rendering/RenderLineBoxList.h
r88250 r90048 64 64 void dirtyLinesFromChangedChild(RenderObject* parent, RenderObject* child); 65 65 66 void paint(RenderBoxModelObject*, PaintInfo&, const IntPoint&) const;66 void paint(RenderBoxModelObject*, PaintInfo&, const LayoutPoint&) const; 67 67 bool hitTest(RenderBoxModelObject*, const HitTestRequest&, HitTestResult&, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction) const; 68 68 -
trunk/Source/WebCore/rendering/RenderListItem.cpp
r88250 r90048 345 345 } 346 346 347 void RenderListItem::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)347 void RenderListItem::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 348 348 { 349 349 if (!logicalHeight()) -
trunk/Source/WebCore/rendering/RenderListItem.h
r88250 r90048 58 58 59 59 virtual bool isEmpty() const; 60 virtual void paint(PaintInfo&, const IntPoint&);60 virtual void paint(PaintInfo&, const LayoutPoint&); 61 61 62 62 virtual void layout(); -
trunk/Source/WebCore/rendering/RenderListMarker.cpp
r88250 r90048 1102 1102 } 1103 1103 1104 void RenderListMarker::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)1104 void RenderListMarker::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 1105 1105 { 1106 1106 if (paintInfo.phase != PaintPhaseForeground) … … 1110 1110 return; 1111 1111 1112 IntPoint boxOrigin(paintOffset + location());1113 IntRect overflowRect(visualOverflowRect());1112 LayoutPoint boxOrigin(paintOffset + location()); 1113 LayoutRect overflowRect(visualOverflowRect()); 1114 1114 overflowRect.moveBy(boxOrigin); 1115 1115 overflowRect.inflate(maximalOutlineSize(paintInfo.phase)); … … 1118 1118 return; 1119 1119 1120 IntRect box(boxOrigin, IntSize(width(), height()));1120 LayoutRect box(boxOrigin, LayoutSize(width(), height())); 1121 1121 1122 IntRect marker = getRelativeMarkerRect();1122 LayoutRect marker = getRelativeMarkerRect(); 1123 1123 marker.moveBy(boxOrigin); 1124 1124 … … 1132 1132 context->drawImage(m_image->image(this, marker.size()).get(), style()->colorSpace(), marker); 1133 1133 if (selectionState() != SelectionNone) { 1134 IntRect selRect = localSelectionRect();1134 LayoutRect selRect = localSelectionRect(); 1135 1135 selRect.moveBy(boxOrigin); 1136 1136 context->fillRect(selRect, selectionBackgroundColor(), style()->colorSpace()); … … 1146 1146 1147 1147 if (selectionState() != SelectionNone) { 1148 IntRect selRect = localSelectionRect();1148 LayoutRect selRect = localSelectionRect(); 1149 1149 selRect.moveBy(boxOrigin); 1150 1150 context->fillRect(selRect, selectionBackgroundColor(), style()->colorSpace()); … … 1267 1267 } 1268 1268 1269 IntPoint textOrigin = IntPoint(marker.x(), marker.y() + style()->fontMetrics().ascent());1269 LayoutPoint textOrigin = LayoutPoint(marker.x(), marker.y() + style()->fontMetrics().ascent()); 1270 1270 1271 1271 if (type == Asterisks || type == Footnotes) … … 1286 1286 const UChar suffix = listMarkerSuffix(type, m_listItem->value()); 1287 1287 if (style()->isLeftToRightDirection()) { 1288 int width = font.width(textRun);1288 LayoutUnit width = font.width(textRun); 1289 1289 context->drawText(font, textRun, textOrigin); 1290 1290 UChar suffixSpace[2] = { suffix, ' ' }; … … 1293 1293 UChar spaceSuffix[2] = { ' ', suffix }; 1294 1294 TextRun spaceSuffixRun = RenderBlock::constructTextRun(this, font, spaceSuffix, 2, style()); 1295 int width = font.width(spaceSuffixRun);1295 LayoutUnit width = font.width(spaceSuffixRun); 1296 1296 context->drawText(font, spaceSuffixRun, textOrigin); 1297 1297 context->drawText(font, textRun, textOrigin + IntSize(width, 0)); -
trunk/Source/WebCore/rendering/RenderListMarker.h
r88250 r90048 51 51 virtual bool isListMarker() const { return true; } 52 52 53 virtual void paint(PaintInfo&, const IntPoint&);53 virtual void paint(PaintInfo&, const LayoutPoint&); 54 54 55 55 virtual void layout(); -
trunk/Source/WebCore/rendering/RenderObject.h
r89970 r90048 532 532 void updateImage(StyleImage*, StyleImage*); 533 533 534 virtual void paint(PaintInfo&, const IntPoint&);534 virtual void paint(PaintInfo&, const LayoutPoint&); 535 535 536 536 // Recursive function that computes the size and position of this object and all its descendants. -
trunk/Source/WebCore/rendering/RenderReplaced.cpp
r88913 r90048 95 95 } 96 96 97 void RenderReplaced::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)97 void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 98 98 { 99 99 if (!shouldPaint(paintInfo, paintOffset)) 100 100 return; 101 101 102 IntPoint adjustedPaintOffset = paintOffset + location();102 LayoutPoint adjustedPaintOffset = paintOffset + location(); 103 103 104 104 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) … … 110 110 } 111 111 112 IntRect paintRect = IntRect(adjustedPaintOffset, size());112 LayoutRect paintRect = LayoutRect(adjustedPaintOffset, size()); 113 113 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth()) 114 114 paintOutline(paintInfo.context, paintRect); … … 129 129 bool completelyClippedOut = false; 130 130 if (style()->hasBorderRadius()) { 131 IntRect borderRect = IntRect(adjustedPaintOffset, size());131 LayoutRect borderRect = LayoutRect(adjustedPaintOffset, size()); 132 132 133 133 if (borderRect.isEmpty()) … … 150 150 // surrounding content. 151 151 if (drawSelectionTint) { 152 IntRect selectionPaintingRect = localSelectionRect();152 LayoutRect selectionPaintingRect = localSelectionRect(); 153 153 selectionPaintingRect.moveBy(adjustedPaintOffset); 154 154 paintInfo.context->fillRect(selectionPaintingRect, selectionBackgroundColor(), style()->colorSpace()); -
trunk/Source/WebCore/rendering/RenderReplaced.h
r89983 r90048 53 53 void setHasIntrinsicSize() { m_hasIntrinsicSize = true; } 54 54 55 virtual void paint(PaintInfo&, const IntPoint&);55 virtual void paint(PaintInfo&, const LayoutPoint&); 56 56 bool shouldPaint(PaintInfo&, const IntPoint&); 57 57 IntRect localSelectionRect(bool checkWhetherSelected = true) const; // This is in local coordinates, but it's a physical rect (so the top left corner is physical top left). -
trunk/Source/WebCore/rendering/RenderReplica.cpp
r88250 r90048 61 61 } 62 62 63 void RenderReplica::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)63 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 64 64 { 65 65 if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask) 66 66 return; 67 67 68 IntPoint adjustedPaintOffset = paintOffset + location();68 LayoutPoint adjustedPaintOffset = paintOffset + location(); 69 69 70 70 if (paintInfo.phase == PaintPhaseForeground) -
trunk/Source/WebCore/rendering/RenderReplica.h
r88250 r90048 46 46 virtual void computePreferredLogicalWidths(); 47 47 48 virtual void paint(PaintInfo&, const IntPoint&);48 virtual void paint(PaintInfo&, const LayoutPoint&); 49 49 50 50 private: -
trunk/Source/WebCore/rendering/RenderTable.cpp
r89983 r90048 452 452 } 453 453 454 void RenderTable::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)455 { 456 IntPoint adjustedPaintOffset = paintOffset + location();454 void RenderTable::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 455 { 456 LayoutPoint adjustedPaintOffset = paintOffset + location(); 457 457 458 458 PaintPhase paintPhase = paintInfo.phase; 459 459 460 460 if (!isRoot()) { 461 IntRect overflowBox = visualOverflowRect();461 LayoutRect overflowBox = visualOverflowRect(); 462 462 flipForWritingMode(overflowBox); 463 463 overflowBox.inflate(maximalOutlineSize(paintInfo.phase)); -
trunk/Source/WebCore/rendering/RenderTable.h
r89983 r90048 215 215 virtual void removeChild(RenderObject* oldChild); 216 216 217 virtual void paint(PaintInfo&, const IntPoint&);217 virtual void paint(PaintInfo&, const LayoutPoint&); 218 218 virtual void paintObject(PaintInfo&, const LayoutPoint&); 219 219 virtual void paintBoxDecorations(PaintInfo&, const IntPoint&); 220 virtual void paintMask(PaintInfo&, const LayoutPoint&);220 virtual void paintMask(PaintInfo&, const IntPoint&); 221 221 virtual void layout(); 222 222 virtual void computePreferredLogicalWidths(); -
trunk/Source/WebCore/rendering/RenderTableCell.cpp
r89979 r90048 802 802 } 803 803 804 void RenderTableCell::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)804 void RenderTableCell::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 805 805 { 806 806 if (paintInfo.phase == PaintPhaseCollapsedTableBorders && style()->visibility() == VISIBLE) { … … 808 808 return; 809 809 810 IntPoint adjustedPaintOffset = paintOffset + location();811 int os = 2 * maximalOutlineSize(paintInfo.phase);810 LayoutPoint adjustedPaintOffset = paintOffset + location(); 811 LayoutUnit os = 2 * maximalOutlineSize(paintInfo.phase); 812 812 if (adjustedPaintOffset.y() - table()->outerBorderTop() < paintInfo.rect.maxY() + os 813 813 && adjustedPaintOffset.y() + height() + table()->outerBorderBottom() > paintInfo.rect.y() - os) 814 paintCollapsedBorder(paintInfo.context, IntRect(adjustedPaintOffset, size()));814 paintCollapsedBorder(paintInfo.context, LayoutRect(adjustedPaintOffset, size())); 815 815 return; 816 816 } -
trunk/Source/WebCore/rendering/RenderTableCell.h
r89979 r90048 95 95 virtual void layout(); 96 96 97 virtual void paint(PaintInfo&, const IntPoint&);97 virtual void paint(PaintInfo&, const LayoutPoint&); 98 98 99 99 void paintBackgroundsBehindCell(PaintInfo&, const IntPoint&, RenderObject* backgroundObject); -
trunk/Source/WebCore/rendering/RenderTableRow.cpp
r88319 r90048 209 209 } 210 210 211 void RenderTableRow::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)211 void RenderTableRow::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 212 212 { 213 213 ASSERT(hasSelfPaintingLayer()); -
trunk/Source/WebCore/rendering/RenderTableRow.h
r88319 r90048 60 60 virtual bool requiresLayer() const { return isTransparent() || hasOverflowClip() || hasTransform() || hasMask(); } 61 61 62 virtual void paint(PaintInfo&, const IntPoint&);62 virtual void paint(PaintInfo&, const LayoutPoint&); 63 63 64 64 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); -
trunk/Source/WebCore/rendering/RenderTableSection.cpp
r89983 r90048 886 886 } 887 887 888 void RenderTableSection::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)888 void RenderTableSection::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 889 889 { 890 890 // put this back in when all layout tests can handle it … … 900 900 return; 901 901 902 IntPoint adjustedPaintOffset = paintOffset + location();902 LayoutPoint adjustedPaintOffset = paintOffset + location(); 903 903 904 904 PaintPhase phase = paintInfo.phase; -
trunk/Source/WebCore/rendering/RenderTableSection.h
r89983 r90048 133 133 virtual void removeChild(RenderObject* oldChild); 134 134 135 virtual void paint(PaintInfo&, const IntPoint&);135 virtual void paint(PaintInfo&, const LayoutPoint&); 136 136 virtual void paintCell(RenderTableCell*, PaintInfo&, const IntPoint&); 137 137 virtual void paintObject(PaintInfo&, const LayoutPoint&); -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r89460 r90048 236 236 } 237 237 238 void RenderTextControlSingleLine::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)238 void RenderTextControlSingleLine::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 239 239 { 240 240 RenderTextControl::paint(paintInfo, paintOffset); 241 241 242 242 if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndicator) { 243 IntRect contentsRect = contentBoxRect();243 LayoutRect contentsRect = contentBoxRect(); 244 244 245 245 // Center vertically like the text. -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.h
r89460 r90048 62 62 63 63 virtual void subtreeHasChanged(); 64 virtual void paint(PaintInfo&, const IntPoint&);64 virtual void paint(PaintInfo&, const LayoutPoint&); 65 65 virtual void layout(); 66 66 -
trunk/Source/WebCore/rendering/RenderTheme.h
r89039 r90048 77 77 // text of a button, is always rendered by the engine itself. The boolean return value indicates 78 78 // whether the CSS border/background should also be painted. 79 bool paint(RenderObject*, const PaintInfo&, const IntRect&);79 bool paint(RenderObject*, const PaintInfo&, const LayoutRect&); 80 80 bool paintBorderOnly(RenderObject*, const PaintInfo&, const IntRect&); 81 81 bool paintDecorations(RenderObject*, const PaintInfo&, const IntRect&); -
trunk/Source/WebCore/rendering/RenderView.cpp
r89979 r90048 166 166 } 167 167 168 void RenderView::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)168 void RenderView::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 169 169 { 170 170 // If we ever require layout but receive a paint anyway, something has gone horribly wrong. -
trunk/Source/WebCore/rendering/RenderView.h
r89979 r90048 70 70 virtual void repaintRectangleInViewAndCompositedLayers(const IntRect&, bool immediate = false); 71 71 72 virtual void paint(PaintInfo&, const IntPoint&);73 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&);72 virtual void paint(PaintInfo&, const LayoutPoint&); 73 virtual void paintBoxDecorations(PaintInfo&, const IntPoint&); 74 74 75 75 enum SelectionRepaintMode { RepaintNewXOROld, RepaintNewMinusOld }; -
trunk/Source/WebCore/rendering/RenderWidget.cpp
r88934 r90048 248 248 } 249 249 250 void RenderWidget::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)250 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 251 251 { 252 252 if (!shouldPaint(paintInfo, paintOffset)) 253 253 return; 254 254 255 IntPoint adjustedPaintOffset = paintOffset + location();255 LayoutPoint adjustedPaintOffset = paintOffset + location(); 256 256 257 257 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection)) … … 264 264 265 265 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && hasOutline()) 266 paintOutline(paintInfo.context, IntRect(adjustedPaintOffset, size()));266 paintOutline(paintInfo.context, LayoutRect(adjustedPaintOffset, size())); 267 267 268 268 if (!m_frameView || paintInfo.phase != PaintPhaseForeground) … … 275 275 276 276 if (style()->hasBorderRadius()) { 277 IntRect borderRect = IntRect(adjustedPaintOffset, size());277 LayoutRect borderRect = LayoutRect(adjustedPaintOffset, size()); 278 278 279 279 if (borderRect.isEmpty()) … … 291 291 paintInfo.context->drawImage(m_substituteImage.get(), style()->colorSpace(), m_widget->frameRect()); 292 292 else { 293 IntPoint widgetLocation = m_widget->frameRect().location();294 IntPoint paintLocation(adjustedPaintOffset.x() + borderLeft() + paddingLeft(), adjustedPaintOffset.y() + borderTop() + paddingTop());295 IntRect paintRect = paintInfo.rect;296 297 IntSize widgetPaintOffset = paintLocation - widgetLocation;293 LayoutPoint widgetLocation = m_widget->frameRect().location(); 294 LayoutPoint paintLocation(adjustedPaintOffset.x() + borderLeft() + paddingLeft(), adjustedPaintOffset.y() + borderTop() + paddingTop()); 295 LayoutRect paintRect = paintInfo.rect; 296 297 LayoutSize widgetPaintOffset = paintLocation - widgetLocation; 298 298 // When painting widgets into compositing layers, tx and ty are relative to the enclosing compositing layer, 299 299 // not the root. In this case, shift the CTM and adjust the paintRect to be root-relative to fix plug-in drawing. -
trunk/Source/WebCore/rendering/RenderWidget.h
r88319 r90048 61 61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 62 62 virtual void layout(); 63 virtual void paint(PaintInfo&, const IntPoint&);63 virtual void paint(PaintInfo&, const LayoutPoint&); 64 64 65 65 private: -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
r88250 r90048 49 49 50 50 #if ENABLE(DEBUG_MATH_LAYOUT) 51 virtual void paint(PaintInfo&, const IntPoint&);51 virtual void paint(PaintInfo&, const LayoutPoint&); 52 52 #endif 53 53 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
r88250 r90048 40 40 virtual void updateFromElement(); 41 41 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const; 42 virtual void paint(PaintInfo&, const IntPoint&);42 virtual void paint(PaintInfo&, const LayoutPoint&); 43 43 protected: 44 44 virtual void layout(); -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
r88250 r90048 37 37 RenderMathMLRoot(Node* fraction); 38 38 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); 39 virtual void paint(PaintInfo&, const IntPoint&);39 virtual void paint(PaintInfo&, const LayoutPoint&); 40 40 protected: 41 41 virtual void layout(); -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.h
r88250 r90048 36 36 public: 37 37 RenderMathMLSquareRoot(Node* fraction); 38 virtual void paint(PaintInfo&, const IntPoint&);38 virtual void paint(PaintInfo&, const LayoutPoint&); 39 39 protected: 40 40 virtual void layout(); -
trunk/Source/WebCore/rendering/svg/RenderSVGContainer.h
r88250 r90048 40 40 RenderObjectChildList* children() { return &m_children; } 41 41 42 virtual void paint(PaintInfo&, const IntPoint&);42 virtual void paint(PaintInfo&, const LayoutPoint&); 43 43 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; } 44 44 -
trunk/Source/WebCore/rendering/svg/RenderSVGForeignObject.h
r89754 r90048 38 38 virtual const char* renderName() const { return "RenderSVGForeignObject"; } 39 39 40 virtual void paint(PaintInfo&, const IntPoint&);40 virtual void paint(PaintInfo&, const LayoutPoint&); 41 41 42 42 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer); -
trunk/Source/WebCore/rendering/svg/RenderSVGHiddenContainer.h
r88250 r90048 42 42 virtual bool isSVGHiddenContainer() const { return true; } 43 43 44 virtual void paint(PaintInfo&, const IntPoint&);44 virtual void paint(PaintInfo&, const LayoutPoint&); 45 45 46 46 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject*) { return IntRect(); } -
trunk/Source/WebCore/rendering/svg/RenderSVGImage.h
r88250 r90048 63 63 64 64 virtual void layout(); 65 virtual void paint(PaintInfo&, const IntPoint&);65 virtual void paint(PaintInfo&, const LayoutPoint&); 66 66 67 67 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction); -
trunk/Source/WebCore/rendering/svg/RenderSVGPath.h
r88250 r90048 61 61 62 62 virtual void layout(); 63 virtual void paint(PaintInfo&, const IntPoint&);63 virtual void paint(PaintInfo&, const LayoutPoint&); 64 64 virtual void addFocusRingRects(Vector<IntRect>&, const IntPoint&); 65 65 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r89754 r90048 263 263 } 264 264 265 void RenderSVGRoot::paint(PaintInfo& paintInfo, const IntPoint& paintOffset)265 void RenderSVGRoot::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 266 266 { 267 267 if (paintInfo.context->paintingDisabled()) … … 269 269 270 270 bool isVisible = style()->visibility() == VISIBLE; 271 IntPoint borderBoxOriginInContainer = paintOffset + parentOriginToBorderBox();271 LayoutPoint borderBoxOriginInContainer = paintOffset + parentOriginToBorderBox(); 272 272 273 273 if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground) && isVisible) … … 301 301 302 302 if (continueRendering) 303 RenderBox::paint(childPaintInfo, IntPoint());303 RenderBox::paint(childPaintInfo, LayoutPoint()); 304 304 305 305 if (childPaintInfo.phase == PaintPhaseForeground) … … 309 309 310 310 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() && isVisible) 311 paintOutline(paintInfo.context, IntRect(borderBoxOriginInContainer, size()));311 paintOutline(paintInfo.context, LayoutRect(borderBoxOriginInContainer, size())); 312 312 } 313 313 -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.h
r89754 r90048 63 63 virtual int computeReplacedLogicalHeight() const; 64 64 virtual void layout(); 65 virtual void paint(PaintInfo&, const IntPoint&);65 virtual void paint(PaintInfo&, const LayoutPoint&); 66 66 67 67 virtual void destroy(); -
trunk/Source/WebCore/rendering/svg/RenderSVGText.h
r89754 r90048 53 53 virtual bool isSVGText() const { return true; } 54 54 55 virtual void paint(PaintInfo&, const IntPoint&);55 virtual void paint(PaintInfo&, const LayoutPoint&); 56 56 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const IntPoint& pointInContainer, const IntPoint& accumulatedOffset, HitTestAction); 57 57 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction);
Note: See TracChangeset
for help on using the changeset viewer.