Changeset 40300 in webkit
- Timestamp:
- Jan 27, 2009 1:54:33 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r40299 r40300 1 2009-01-27 Simon Fraser <simon.fraser@apple.com> 2 3 Reviewed by Dave Hyatt 4 5 Flip the arguments of computeRectForRepaint() from 6 computeRectForRepaint(IntRect&, RenderBox* repaintContainer, bool) 7 to 8 computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool) 9 10 * rendering/RenderBox.cpp: 11 (WebCore::RenderBox::clippedOverflowRectForRepaint): 12 (WebCore::RenderBox::computeRectForRepaint): 13 * rendering/RenderBox.h: 14 * rendering/RenderForeignObject.cpp: 15 (WebCore::RenderForeignObject::computeRectForRepaint): 16 * rendering/RenderForeignObject.h: 17 * rendering/RenderInline.cpp: 18 (WebCore::RenderInline::clippedOverflowRectForRepaint): 19 * rendering/RenderObject.cpp: 20 (WebCore::RenderObject::computeRectForRepaint): 21 * rendering/RenderObject.h: 22 (WebCore::RenderObject::computeAbsoluteRepaintRect): 23 * rendering/RenderReplaced.cpp: 24 (WebCore::RenderReplaced::clippedOverflowRectForRepaint): 25 * rendering/RenderTableCell.cpp: 26 (WebCore::RenderTableCell::clippedOverflowRectForRepaint): 27 (WebCore::RenderTableCell::computeRectForRepaint): 28 * rendering/RenderTableCell.h: 29 * rendering/RenderView.cpp: 30 (WebCore::RenderView::computeRectForRepaint): 31 * rendering/RenderView.h: 32 1 33 2009-01-27 David Kilzer <ddkilzer@apple.com> 2 34 -
trunk/WebCore/rendering/RenderBox.cpp
r40288 r40300 1567 1567 } 1568 1568 } 1569 computeRectForRepaint(r , repaintContainer);1569 computeRectForRepaint(repaintContainer, r); 1570 1570 return r; 1571 1571 } 1572 1572 1573 void RenderBox::computeRectForRepaint( IntRect& rect, RenderBox* repaintContainer, bool fixed)1573 void RenderBox::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed) 1574 1574 { 1575 1575 if (RenderView* v = view()) { … … 1652 1652 rect.setLocation(topLeft); 1653 1653 1654 o->computeRectForRepaint(re ct, repaintContainer, fixed);1654 o->computeRectForRepaint(repaintContainer, rect, fixed); 1655 1655 } 1656 1656 -
trunk/WebCore/rendering/RenderBox.h
r40288 r40300 208 208 209 209 virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); 210 virtual void computeRectForRepaint( IntRect&, RenderBox* repaintContainer, bool fixed = false);210 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false); 211 211 IntSize offsetForPositionedInContainer(RenderObject*) const; 212 212 virtual FloatQuad localToContainerQuad(const FloatQuad&, RenderBox* repaintContainer, bool fixed = false) const; -
trunk/WebCore/rendering/RenderForeignObject.cpp
r40288 r40300 71 71 } 72 72 73 void RenderForeignObject::computeRectForRepaint( IntRect& rect, RenderBox* repaintContainer, bool fixed)73 void RenderForeignObject::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed) 74 74 { 75 75 TransformationMatrix transform = translationForAttributes() * localTransform(); 76 76 rect = transform.mapRect(rect); 77 77 78 RenderBlock::computeRectForRepaint(re ct, repaintContainer, fixed);78 RenderBlock::computeRectForRepaint(repaintContainer, rect, fixed); 79 79 } 80 80 -
trunk/WebCore/rendering/RenderForeignObject.h
r40288 r40300 43 43 virtual bool calculateLocalTransform(); 44 44 45 virtual void computeRectForRepaint( IntRect&, RenderBox* repaintContainer, bool fixed = false);45 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false); 46 46 virtual bool requiresLayer() const { return false; } 47 47 virtual void layout(); -
trunk/WebCore/rendering/RenderInline.cpp
r40288 r40300 441 441 } 442 442 ASSERT(repaintContainer != this); 443 cb->computeRectForRepaint(r , repaintContainer);443 cb->computeRectForRepaint(repaintContainer, r); 444 444 445 445 if (ow) { -
trunk/WebCore/rendering/RenderObject.cpp
r40288 r40300 1831 1831 } 1832 1832 1833 void RenderObject::computeRectForRepaint( IntRect& rect, RenderBox* repaintContainer, bool fixed)1833 void RenderObject::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed) 1834 1834 { 1835 1835 if (repaintContainer == this) … … 1859 1859 } 1860 1860 1861 o->computeRectForRepaint(re ct, repaintContainer, fixed);1861 o->computeRectForRepaint(repaintContainer, rect, fixed); 1862 1862 } 1863 1863 } -
trunk/WebCore/rendering/RenderObject.h
r40288 r40300 607 607 void computeAbsoluteRepaintRect(IntRect& r, bool fixed = false) 608 608 { 609 return computeRectForRepaint( r, 0, fixed);609 return computeRectForRepaint(0, r, fixed); 610 610 } 611 611 // Given a rect in the object's coordinate space, compute a rect suitable for repainting 612 612 // that rect in the coordinate space of repaintContainer. 613 virtual void computeRectForRepaint( IntRect&, RenderBox* repaintContainer, bool fixed = false);613 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false); 614 614 615 615 virtual unsigned int length() const { return 1; } -
trunk/WebCore/rendering/RenderReplaced.cpp
r40288 r40300 413 413 r.inflate(style()->outlineSize()); 414 414 } 415 computeRectForRepaint(r , repaintContainer);415 computeRectForRepaint(repaintContainer, r); 416 416 return r; 417 417 } -
trunk/WebCore/rendering/RenderTableCell.cpp
r40288 r40300 202 202 r.move(v->layoutDelta()); 203 203 } 204 computeRectForRepaint(r , repaintContainer);204 computeRectForRepaint(repaintContainer, r); 205 205 return r; 206 206 } 207 207 208 void RenderTableCell::computeRectForRepaint( IntRect& r, RenderBox* repaintContainer, bool fixed)208 void RenderTableCell::computeRectForRepaint(RenderBox* repaintContainer, IntRect& r, bool fixed) 209 209 { 210 210 if (repaintContainer == this) … … 214 214 if ((!v || !v->layoutStateEnabled()) && parent()) 215 215 r.move(-parentBox()->x(), -parentBox()->y()); // Rows are in the same coordinate space, so don't add their offset in. 216 RenderBlock::computeRectForRepaint(r , repaintContainer, fixed);216 RenderBlock::computeRectForRepaint(repaintContainer, r, fixed); 217 217 } 218 218 -
trunk/WebCore/rendering/RenderTableCell.h
r40288 r40300 96 96 97 97 virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); 98 virtual void computeRectForRepaint( IntRect&, RenderBox* repaintContainer, bool fixed = false);98 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false); 99 99 virtual FloatPoint localToAbsolute(FloatPoint localPoint = FloatPoint(), bool fixed = false, bool useTransforms = false) const; 100 100 virtual FloatPoint absoluteToLocal(FloatPoint containerPoint, bool fixed = false, bool useTransforms = false) const; -
trunk/WebCore/rendering/RenderView.cpp
r40288 r40300 241 241 } 242 242 243 void RenderView::computeRectForRepaint( IntRect& rect, RenderBox* repaintContainer, bool fixed)243 void RenderView::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rect, bool fixed) 244 244 { 245 245 // If a container was specified, and was not 0 or the RenderView, -
trunk/WebCore/rendering/RenderView.h
r40288 r40300 61 61 virtual bool hasOverhangingFloats() { return false; } 62 62 63 virtual void computeRectForRepaint( IntRect&, RenderBox* repaintContainer, bool fixed = false);63 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bool fixed = false); 64 64 virtual void repaintViewRectangle(const IntRect&, bool immediate = false); 65 65
Note: See TracChangeset
for help on using the changeset viewer.