Changeset 3421 in webkit
- Timestamp:
- Jan 23, 2003, 11:42:10 AM (22 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog-2003-10-25
r3418 r3421 1 2003-01-23 David Hyatt <hyatt@apple.com> 2 3 Fix for 3134613, bullets overlapping text on weather.com. Make 4 sure min/max widths get updated when the marker moves around. 5 6 Reviewed by john 7 8 * khtml/rendering/render_list.cpp: 9 (RenderListItem::updateMarkerLocation): 10 (RenderListItem::calcMinMaxWidth): 11 (RenderListItem::layout): 12 * khtml/rendering/render_list.h: 13 1 14 === Safari-54 === 2 15 -
trunk/WebCore/ChangeLog-2005-08-23
r3418 r3421 1 2003-01-23 David Hyatt <hyatt@apple.com> 2 3 Fix for 3134613, bullets overlapping text on weather.com. Make 4 sure min/max widths get updated when the marker moves around. 5 6 Reviewed by john 7 8 * khtml/rendering/render_list.cpp: 9 (RenderListItem::updateMarkerLocation): 10 (RenderListItem::calcMinMaxWidth): 11 (RenderListItem::layout): 12 * khtml/rendering/render_list.h: 13 1 14 === Safari-54 === 2 15 -
trunk/WebCore/khtml/rendering/render_list.cpp
r3376 r3421 214 214 } 215 215 216 void RenderListItem::layout( ) 217 { 218 KHTMLAssert( !layouted() ); 219 KHTMLAssert( minMaxKnown() ); 220 221 if ( !checkChildren() ) { 222 m_height = 0; 223 //kdDebug(0) << "empty item" << endl; 224 return; 225 } 226 216 void RenderListItem::updateMarkerLocation() 217 { 227 218 // Sanity check the location of our marker. 228 219 if (m_marker) { … … 238 229 lineBoxParent = this; 239 230 lineBoxParent->addChild(m_marker, lineBoxParent->firstChild()); 240 } 231 if (!m_marker->minMaxKnown()) 232 m_marker->calcMinMaxWidth(); 233 recalcMinMaxWidths(); 234 } 235 } 236 } 237 238 void RenderListItem::calcMinMaxWidth() 239 { 240 // Make sure our marker is in the correct location. 241 updateMarkerLocation(); 242 if (!minMaxKnown()) 243 RenderFlow::calcMinMaxWidth(); 244 } 245 246 void RenderListItem::layout( ) 247 { 248 KHTMLAssert( !layouted() ); 249 KHTMLAssert( minMaxKnown() ); 250 251 if ( !checkChildren() ) { 252 m_height = 0; 253 //kdDebug(0) << "empty item" << endl; 254 return; 241 255 } 242 256 257 updateMarkerLocation(); 243 258 RenderFlow::layout(); 244 259 } -
trunk/WebCore/khtml/rendering/render_list.h
r3376 r3421 102 102 103 103 virtual void layout( ); 104 virtual void calcMinMaxWidth(); 105 106 void updateMarkerLocation(); 104 107 105 108 void setNotInList(bool notInList) { _notInList = notInList; }
Note:
See TracChangeset
for help on using the changeset viewer.