Changeset 15121 in webkit
- Timestamp:
- Jun 30, 2006 7:51:32 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r15117 r15121 1 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com> 2 3 Reviewed by Hyatt. 4 5 - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7204 6 float inserted in fixed height block via DOM not repainted 7 8 * fast/repaint/float-move-during-layout-expected.checksum: Added. 9 * fast/repaint/float-move-during-layout-expected.png: Added. 10 * fast/repaint/float-move-during-layout-expected.txt: Added. 11 * fast/repaint/float-move-during-layout.html: Added. 12 1 13 2006-06-30 Levi Weintraub <lweintraub@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r15117 r15121 1 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com> 2 3 Reviewed by Hyatt. 4 5 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7204 6 float inserted in fixed height block via DOM not repainted 7 8 Test: fast/repaint/float-move-during-layout.html 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::RenderBlock::layoutBlockChildren): 12 (WebCore::RenderBlock::repaintOverhangingFloats): Renamed repaintFloatingDescendants() 13 to this and limited it to repainting overhanging floats. Added a boolean parameter that forces 14 all descendant overhanging floats (that don't have their own layer) to paint. 15 * rendering/RenderBlock.h: 16 * rendering/RenderBox.cpp: 17 (WebCore::RenderBox::repaintDuringLayoutIfMoved): Changed to paint all descendant 18 floats. 19 * rendering/RenderObject.cpp: 20 (WebCore::RenderObject::repaintOverhangingFloats): 21 * rendering/RenderObject.h: 22 1 23 2006-06-30 Levi Weintraub <lweintraub@apple.com> 2 24 -
trunk/WebCore/rendering/RenderBlock.cpp
r15079 r15121 1119 1119 // so they were wrong. 1120 1120 child->repaint(); 1121 child->repaint FloatingDescendants();1121 child->repaintOverhangingFloats(); 1122 1122 } 1123 1123 } … … 1184 1184 } 1185 1185 1186 void RenderBlock::repaint FloatingDescendants()1186 void RenderBlock::repaintOverhangingFloats(bool paintAllDescendants) 1187 1187 { 1188 1188 // Repaint any overhanging floats (if we know we're the one to paint them). … … 1197 1197 DeprecatedPtrListIterator<FloatingObject> it(*m_floatingObjects); 1198 1198 for ( ; (r = it.current()); ++it) { 1199 // Only repaint the object if our noPaint flag isn't set and if it isn't in 1200 // its own layer. 1201 if (!r->noPaint && !r->node->layer()) { 1199 // Only repaint the object if it is overhanging, is not in its own layer, and 1200 // is our responsibility to paint (noPaint isn't set). When paintAllDescendants is true, the latter 1201 // condition is replaced with being a descendant of us. 1202 if (r->endY > m_height && (paintAllDescendants && r->node->hasAncestor(this) || !r->noPaint) && !r->node->layer()) { 1202 1203 r->node->repaint(); 1203 r->node->repaint FloatingDescendants();1204 r->node->repaintOverhangingFloats(); 1204 1205 } 1205 1206 } -
trunk/WebCore/rendering/RenderBlock.h
r14899 r15121 108 108 109 109 virtual void repaintObjectsBeforeLayout(); 110 virtual void repaint FloatingDescendants();110 virtual void repaintOverhangingFloats(bool paintAllDescendants); 111 111 virtual void getAbsoluteRepaintRectIncludingFloats(IntRect& bounds, IntRect& fullBounds); 112 112 -
trunk/WebCore/rendering/RenderBox.cpp
r15105 r15121 934 934 m_x = oldX; m_y = oldY; 935 935 repaint(); 936 repaint FloatingDescendants();936 repaintOverhangingFloats(true); 937 937 m_x = newX; m_y = newY; 938 938 repaint(); 939 repaint FloatingDescendants();939 repaintOverhangingFloats(true); 940 940 } 941 941 } -
trunk/WebCore/rendering/RenderObject.cpp
r15038 r15121 1721 1721 } 1722 1722 1723 void RenderObject::repaint FloatingDescendants()1723 void RenderObject::repaintOverhangingFloats(bool paintAllDescendants) 1724 1724 { 1725 1725 } -
trunk/WebCore/rendering/RenderObject.h
r15079 r15121 723 723 724 724 // Called to repaint a block's floats. 725 virtual void repaint FloatingDescendants();725 virtual void repaintOverhangingFloats(bool paintAllDescendants = false); 726 726 727 727 // Called before layout to repaint all dirty children (with selfNeedsLayout() set).
Note: See TracChangeset
for help on using the changeset viewer.