Changeset 88198 in webkit
- Timestamp:
- Jun 6, 2011, 4:01:25 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderBlock.cpp (modified) (1 diff)
-
rendering/RenderBox.cpp (modified) (2 diffs)
-
rendering/RenderBox.h (modified) (1 diff)
-
rendering/RenderTable.cpp (modified) (1 diff)
-
rendering/RenderTableSection.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88196 r88198 1 2011-06-06 Emil A Eklund <eae@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Convert RenderBox::pushContentsClip to IntPoint 6 https://bugs.webkit.org/show_bug.cgi?id=62133 7 8 Covered by existing tests. 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::Covered by existing tests.RenderBlock::paint): 12 * rendering/RenderBox.cpp: 13 (WebCore::RenderBox::pushContentsClip): 14 * rendering/RenderBox.h: 15 * rendering/RenderTable.cpp: 16 (WebCore::RenderTable::paint): 17 * rendering/RenderTableSection.cpp: 18 (WebCore::RenderTableSection::paint): 19 1 20 2011-06-06 Levi Weintraub <leviw@chromium.org> 2 21 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r88195 r88198 2258 2258 } 2259 2259 2260 bool pushedClip = pushContentsClip(paintInfo, tx, ty);2260 bool pushedClip = pushContentsClip(paintInfo, IntPoint(tx, ty)); 2261 2261 paintObject(paintInfo, IntPoint(tx, ty)); 2262 2262 if (pushedClip) -
trunk/Source/WebCore/rendering/RenderBox.cpp
r88189 r88198 1097 1097 #endif 1098 1098 1099 bool RenderBox::pushContentsClip(PaintInfo& paintInfo, int tx, int ty)1099 bool RenderBox::pushContentsClip(PaintInfo& paintInfo, const IntPoint& accumulatedOffset) 1100 1100 { 1101 1101 if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseSelfOutline || paintInfo.phase == PaintPhaseMask) … … 1112 1112 else if (paintInfo.phase == PaintPhaseChildBlockBackground) { 1113 1113 paintInfo.phase = PaintPhaseBlockBackground; 1114 paintObject(paintInfo, IntPoint(tx, ty));1114 paintObject(paintInfo, accumulatedOffset); 1115 1115 paintInfo.phase = PaintPhaseChildBlockBackgrounds; 1116 1116 } 1117 IntRect clipRect(isControlClip ? controlClipRect( IntPoint(tx, ty)) : overflowClipRect(IntPoint(tx, ty)));1117 IntRect clipRect(isControlClip ? controlClipRect(accumulatedOffset) : overflowClipRect(accumulatedOffset)); 1118 1118 paintInfo.context->save(); 1119 1119 if (style()->hasBorderRadius()) 1120 paintInfo.context->addRoundedRectClip(style()->getRoundedBorderFor(IntRect( tx, ty, width(), height())));1120 paintInfo.context->addRoundedRectClip(style()->getRoundedBorderFor(IntRect(accumulatedOffset, size()))); 1121 1121 paintInfo.context->clip(clipRect); 1122 1122 return true; -
trunk/Source/WebCore/rendering/RenderBox.h
r88189 r88198 350 350 virtual bool hasControlClip() const { return false; } 351 351 virtual IntRect controlClipRect(const IntPoint&) const { return IntRect(); } 352 bool pushContentsClip(PaintInfo&, int tx, int ty);352 bool pushContentsClip(PaintInfo&, const IntPoint& accumulatedOffset); 353 353 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const IntPoint& accumulatedOffset); 354 354 -
trunk/Source/WebCore/rendering/RenderTable.cpp
r88189 r88198 468 468 } 469 469 470 bool pushedClip = pushContentsClip(paintInfo, tx, ty);470 bool pushedClip = pushContentsClip(paintInfo, IntPoint(tx, ty)); 471 471 paintObject(paintInfo, IntPoint(tx, ty)); 472 472 if (pushedClip) -
trunk/Source/WebCore/rendering/RenderTableSection.cpp
r88189 r88198 904 904 905 905 PaintPhase phase = paintInfo.phase; 906 bool pushedClip = pushContentsClip(paintInfo, tx, ty);906 bool pushedClip = pushContentsClip(paintInfo, IntPoint(tx, ty)); 907 907 paintObject(paintInfo, IntPoint(tx, ty)); 908 908 if (pushedClip)
Note:
See TracChangeset
for help on using the changeset viewer.